Home >Backend Development >PHP Tutorial >New version of mysql + apache + php Linux installation guide_PHP tutorial
There are still some differences between the new version and the old version. Now let me explain the steps
Installation steps:
1.mysql
Download the mysql for linux rpm package on the following page
http://www.mysql.com/downloads /
Save to /home/tmp directory
Command list:
cd /home/tmp
rpm -ivh MySQL-3.23.52-1.i386.rpm #Install mysql server
rpm -ivh MySQL-client-3.23.52-1.i386.rpm #Install mysql client
/usr/mysql/safe_mysqld & #Start mysql server
mysql #Run the mysql client and enable remote access for the root user permissions. For debugging
use mysql
update user set host = '%' where user = 'root' and host <> 'localhost';
flush privileges;
quit
At this point mysql installation Completed
2.apache
Download the source code package of apache for linux on the following page
http://www.apache.org/dist/httpd/apache_1.3.26 .tar.gz
Save to /home/tmp directory
Command list:
cd /home/tmp
tar -zxvf apache_1.3.26.tar.gz
mv apache_1.3.26.tar .gz apache
cd apache
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
Install apache to /usr/local /apache and configure apache to support dso mode
3.php
Download the source code package of php for linux on the following page
http://www.php.net/ get_download.php?df=php-4.2.3.tar.gz
Save to /home/tmp directory
Command list:
cd /home/tmp
tar -zxvf php-4.2.3 .tar.gz
mv php-4.2.3.tar.gz php
cd php
./configure --prefix=/usr/local/php --with-apxs=/usr/local/ apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php.ini
Install php to /usr/local/php in dso mode. Set the configuration file directory to /usr/local/lib and enable mysql and xml support
4. Configuration