In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure Apache 2.2.4 +PHP5.2.3+MySQL5.0.45+openssl0.98e on RedHat AS4", the explanation in this article is simple and clear, easy to learn and understand, please follow the ideas of Xiaobian slowly, together to study and learn "how to install and configure Apache 2.2.4 +PHP5.2.3+MySQL5.0.45+openssl0.98e on RedHat AS4"!
System Environment: Redhat AS4 Required Package: mysql-5.0.41.tar.gz
zlib-1.2.3.tar.gz openssl-0.9.8e.tar.gz httpd-2.2.4.tar.gz libpng-1.2.14.tar.gz freetype-2.1.10.tar.gz jpegsrc.v6b.tar.gz libxml2-2.6.19.tar.gz gd-2.0.33.tar.gz php-5.2.1.tar.gz
All packages used are uploaded to the server/root/web directory 1.1. Install mysql-5.0.45
Uninstall mysql rpm -qa that comes with the system| grep mysql rpm -e –nodeps mysql
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-5.0.41.tar.gz
cd mysql-5.0.45
#./ configure –prefix=/usr/local/mysql –enable-thread-safe-client –enable-local-infile –with-charset=gbk –with-extra-charset=all –with-low-memory
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cd /usr/local/mysql
#chown -R mysql .
#chgrp -R mysql .
#bin/mysql_install_db –user=mysql
#chown -R root .
#chown -R mysql var
#bin/mysqld_safe –user=mysql &
#cd /root/web/mysql-5.0.45
#cp support-files/mysql.server /etc/rc.d/init.d/mysqld
#chmod 700 /etc/rc.d/init.d/mysqld
#chkconfig –add mysqld
#chkconfig-level 345 mysqld on test
#/usr/local/mysql/bin/mysqladmin ping
#/usr/local/mysql/bin/mysqladmin version
#/usr/local/mysql/bin/mysql Add root password
#/usr/local/mysql/bin/mysqladmin -uroot -p Add/usr/local/mysql/bin to PATH
#export PATH=$PATH:/usr/local/mysql/bin 2. install zlib-1.2.3 #tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#./ configure –prefix=/usr/local/zlib
#make
#make install 3. install openssl-0.9.8e #tar zxvf openssl-0.9.8e.tar.gz
#cd openssl-0.9.8e
#./ config shared zlib
#make
#make test
#make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl configuration library file search path #echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
#ldconfig -v 4. Install httpd-2.2.4 #tar zxvf httpd-2.2.4.tar.gz
#cd httpd-2.2.4
#./ configure –prefix=/usr/local/apache –sysconfdir=/etc/httpd –enable-so –enable-ssl –with-ssl=/usr/local/ssl –enable-track-vars –enable-rewrite –with-z-dir=/usr/local/zlib –enable-mods-shared=most
#make
#make install #echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.local(service starts automatically when system starts) 5. install libpng-1.2.14 #tar zxvf libpng-1.2.14.tar.gz
# cd libpng-1.2.14
# cp scripts/makefile.linux makefile
# make (If you can't find the zlib library file or header file, it's probably because the default path of zlib in the makefile is wrong. Edit the makefile, find the zlib entry and re-specify the path to/usr/local/zlib/lib and/usr/local/zlib/include).
# make install 6. install freetype-2.1.10 # tar -zvxf freetype-2.1.10.tar.gz
# cd freetype-2.1.10
# mkdir -p /usr/local/freetype
# ./ configure –prefix=/usr/local/freetype
# make;make install 7. Install jpegsrc.v6b jpeg does not create its own directory by default, so you need to manually create a directory:
# mkdir -pv /usr/local/jpeg6/{,bin,lib,include,man/man1,man1} install
#tar zxvf jpegsrc.v6b.tar.gz
# ./ configure –prefix=/usr/local/jpeg6/ –enable-shared –enable-static
# make
# make install
# make install-lib 8. install libxml2 -2.6.19 # tar -zxf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# mkdir -p /usr/local/libxml2
# ./ configure –prefix=/usr/local/libxml2
# make; make install
#cp xml2-config /usr/bin 9. Install GD-2.0.33 library # tar -zvxf gd-2.0.33.tar.gz
# mkdir -p /usr/local/gd2
# cd gd-2.0.33
# ./ configure –prefix=/usr/local/gd2 –with-jpeg=/usr/local/jpeg6/ –with-png=/usr/local/lib/ –with-zlib=/usr/local/zlib/ –with-freetype=/usr/local/freetype/
# make; make install 10. install php-5.2.1 # tar -zvxf php-5.2.1.tar.gz
# mkdir -p /usr/local/php
# cd php-5.2.1
# ./ configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-xml=/usr/local/libxml2 –with-png=/usr/local/lib –with-jpeg-dir=/usr/local/jpeg6 –with-zlib=/usr/local/zlib –with-freetype=/usr/local/freetype –with-gd=/usr/local/gd2 –enable-track-vars –enable-mbstring=all
# make
# make install
# cp php. ini-dist/usr/local/php/lib/php.ini 11. Edit the apache configuration file httpd.conf
# vi /etc/httpd/httpd.conf
the following changes should be made:
Find LoadModule php5_module modules/libphp5.so
The previous #sign is removed (the comment is removed by default)
#AddType application/x-gzip .gz .tgz
Add two lines below
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Also find DirectoryIndex index.html
Add index.php and let it use index.php as the default page. According to usage habits, here you specify the root directory of the website to/var/www:
Find DocumentRoot "/usr/local/apache/htdocs"
Modify it to: DocumentRoot "/var/www"(we will comment out this line later to enable virtual hosting) Find
Modified as: 12. Testing PHP
# vi /var/www/index.php
Add:
Restart apache server
# /usr/local/apache/bin/apachectl restart
http://localhost/in your browser.
Thank you for reading, the above is "how to install and configure Apache2.2.4+PHP5.2.3+ MySQL 5.0.45 +openssl0.98e on RedHat AS4" content, after learning this article, I believe you have a deeper understanding of how to install and configure Apache2.2.4+PHP5.2.3+ MySQL 5.0.45 +openssl0.98e on RedHat AS4, and the specific use needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.