New mysql + apache + phpLinux installation guide. The old version of the new version is still somewhat different. Now let's take a look at the installation steps: 1. mysql downloads the mysql forlinuxrpm package www. mysql. comdownloads from the following page and saves it to the old version of the new version of h. Now let's 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 the/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 # runs the mysql client and opens the root user's remote access permission. For debugging
Use mysql
Update user set host = '%' where user = 'root' and host <> 'localhost ';
Flush privileges;
Quit
Mysql installation is now complete
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 the/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
3. php
Download the php for linux source code package on the following page
Http://www.php.net/get_download.php? Df1_php-4.2.3.tar.gz
Save to the/home/tmp Directory
Command list:
Cd/home/tmp
Tar-zxvf php-4.2.3.tar.gz
Music 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 in dso mode to/usr/local/php and set the configuration file directory to/usr/local/lib to enable mysql. xml supports
4. configuration
Bytes. Now I will explain the installation steps: 1. mysql on the following page download mysql for linux rpm package http://www.mysql.com/downloads/ to/h...