Home > Backend Development > PHP Tutorial > The mysql+apache+phpinlux installation guide is so exhausting to write. . _PHP Tutorial

The mysql+apache+phpinlux installation guide is so exhausting to write. . _PHP Tutorial

WBOY
Release: 2016-07-13 17:24:02
Original
808 people have browsed it

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. There are some differences between the new version and the old version. Now post the installation steps: 1. mysql Download the for linux rpm package of mysql 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 open remote access permissions to the root user. For debugging, use mysql update user set host = % where user = root and host localhost; flush privileges; quit. At this point, the mysql installation is 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 php for linux on the following page Source code package 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 to dso Install php to /usr/local/php. Set the configuration file directory to /usr/local/lib. Enable mysql and xml support. 4. Configure vi /usr/local/apache/conf/httpd.conf. Configure apache as follows #Configure ServerAdmin Change the line q3boy@younet.com to your email address #DocumentRoot "/home/httpd/html/" This is the main directory of the html file # Same as above #Options FollowSymLinks MultiViews For security reasons, remove "Indexes" # # DirectoryIndex default.php default.phtml default.php3 default.html default.htm # #Set apache’s default file name order #AddType application/x-httpd-php .php .phtml .php3 .inc #AddType application /x-httpd-php-source .phps #Set the php file suffix, save and exit vi /usr/local/lib/php.ini #register-golbals = On, save and exit 5. Start the service /usr/local/apache/bin/apachectl start 6. Note that the default maximum number of processes of apache under Linux is 256. No matter how you modify httpd.conf, you cannot exceed this limit. If you want to increase this limit, edit /home/tmp/apache/src/include/httpd.h before compiling apache, and change the line #define HARD_SERVER_LIMIT 256 to #define HARD_SERVER_LIMIT 2048 before compiling apache. In apache 1.3.26 mod_so seems to be no longer the default module. You need to add --enable-module=so when compiling. I did not add this parameter when compiling for the first time. As a result, apxs cannot be found when compiling PHP. The default configuration file path in PHP 4.2.3 seems to have changed. You need to add the --with-config-file-path=/usr/local/lib parameter when compiling. I compiled php.ini for the first time and put it in n places to no avail. As a last resort. Only this parameter can be added. p.s. There is no guarantee that the steps described in this article will apply to other versions

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532185.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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template