Home  >  Article  >  Backend Development  >  Mysql+apache+php in lux installation guide is so tiring to write. . _PHP Tutorial

Mysql+apache+php in lux installation guide is so tiring to write. . _PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 16:57:58806browse

I just saw someone posting the installation steps under win
I just got the new server for the company’s website today. It took me a whole morning to install mysql+php+apache.
The new version is still a little different from the old version. Now post the steps
Installation steps:
1.mysql
Download the mysql for linux rpm package on the following page
http://www.mysql.com/downloads/down...3.52 -1.i386.rpm
http://www.mysql.com/downloads/down...3.52-1.i386.rpm
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 permissions for the root user. For debugging
use mysql
update user set host = '%' where user = 'root' and host <> 'localhost';
flush privileges;
quit
So far mysql installation 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 /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
vi /usr/local/apache/conf/httpd. conf
Configure apache as follows
#Change the ServerAdmin q3boy@younet.com line to your email address
#DocumentRoot "/home/httpd/html/" This is the home directory of the html file
# Same as above

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631453.htmlTechArticleI just saw someone posting the installation steps under win. I just got the new server for the company’s website today. It took me a whole morning to install mysql+php+apache. There are some differences between the new version and the old version. Now take the step...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn