Mysql + apache + php for linux installed Notes
First, the necessary software
Mysql-server-4.0.20-0.i386.rpm
Mysql-client-4.0.20-0.i386.rpm
Httpd-2.0.49.tar.gz
Php-4.3.7.tar.gz
The reason why the use mysql rpm, because mysql installation of both the source and error-prone trouble, the proposed novice or use mysql installation of the rpm package
Second, the installation steps
1, `install mysql
Mysql server installation
# Rpm-ivh MySQL-server-4.0.20-0.i386.rpm
Install mysql
# Rpm-ivh MySQL-client-4.0.20-0.i386.rpm client
Running mysql client, and open the root user remote access. In order to debug
# Mysql
# Use mysql
# Update user set host% = “ `where user = root` and host <> “ localhost;
# Exit
Installed!
2, the installation apache
# Tar zxvf httpd-2.0.49.tar.gz
# Cd httpd-2.0.49
#. / Configure - prefix = / web / apache - enable so-module =
# Make
# Make install
Installed!
3. Install php
# Tar zxvf php-4.3.7.tar.gz
# Cd php-4.3.7
#. / Configure - prefix = / web / php - with-apxs2 = / web / 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
4, httpd.conf configuration
Apache edit the httpd.conf by adding the following two:
LoadModule php4_module modules/libphp4.so
AddType application / x-httpd-php. Php. Phtml. Php3. Inc
5, note
Apache under linux in the default maximum number of processes for the 256, in any case amending httpd.conf can exceed this limit. If you want to increase the limit, the former editor in the compiler apache / home / tmp / apache / src / include / httpd.h, which will define HARD_SERVER_LIMIT 256 # # and his party to define HARD_SERVER_LIMIT 2048 after compiling apache.








0 Comments to “Mysql + apache + php for linux installed Notes”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.