first, the system requirements :
This system is tested through the REDHAT7.2 version
second, the server-side software requirements:
1: Download Apache Web SERVER http://www.apache.org/to Apache's network station
2. Download PHP parser to PHP's Web site http://www.php.net/
3. Download MySQL http://sourceforge.net/projects/mysql/to MySQL website
three. Installing the Debug Web SERVER
Download the above files and put them in the same directory, I put them under the/usr/local, and use the tar command to unpack the files.
Tar zxvf apache_1.3.12.tar.gztar zxvf php-4.0.6.tar.gztar zxvf mysql-3.22.40.tar.gz
|
To facilitate installation it is recommended that the directory name
#mv apache_1.3.12 apache#mv php-4.0.6 php#mv mysql-3.22.40 MySQL
|
installing MySQL
Four. You can install MySQL before you install the Web service
CD Mysql./configuremakemake Install
|
According to the performance of the machine, the compilation process takes a certain amount of time, after compiling the system defaults to install the MySQL under the/usr/local.
Once the installation is complete, start the MySQL process.
Cd/usr/local/bin
./mysql_install_db (Basic database for MySQL installation)
./safe_mysqld & (Start the process up and into the background)
MySQL is here to calculate the installation completed, try running./mysql See if you can link to the database, if normal, you should be able to see such an interface
Welcome to the MySQL monitor.commands end with; or g.your MySQL connection ID is 880 to server Version:3.22.40type ' help ' for help.mysql>
|
Here, congratulations on your MySQL installation.
The use of MySQL you can refer to his Doc document
Five. Integrate Apache, PHP4
This is the key to all work, but also the most difficult step, may be due to the different version of the installation process there is such a mistake, you can make appropriate changes according to the version information.
First CD Apache
./configure
This seems to be dispensable, but I had to make a mistake because I didn't do it.
Cd.. /php./configure--with-mysql=/usr/local--with-apache=/usr/local/apache--enable-track-varsmakemake installcd. /apache./configure--activate-module=src/modules/php4/libphp4.a make make install
|
This step is to install the Apache Web service, and you can look at it./configure–help Add the modules you need, or install them by reference to the installation manual.
Copy the PHP configuration file to the appropriate directory
Cd.. /php
CP Php.ini-dist/usr/local/lib/php.ini
PHP.ini Basic can not make any changes, to modify can refer to the corresponding instructions.
Configure the Apache WEB server when you are finished configuring PHP, configure the httpd.conf first
Cd/usr/local/apache/conf
VI httpd.conf
For PHP to modify the following:
# AddType application/x-httpd-php. php
# AddType Application/x-httpd-php-source. Phps
The above two lines to remove the annotation, and according to the actual situation to determine the name of the PHP document suffix, according to the needs of Horde, we recommend that the first line to the following form
AddType application/x-httpd-php. php. php3. htm. phtml. php4
In addition to modify the system default home type, the proposed DirectoryIndex index.htm changed to this:
DirectoryIndex index.htm index.html index.php3 index.php default.php