First, the static compilation of apache1.3.27 + php4.4.2 + mysql5.0.19

Source: Internet
Author: User
The first is static compilation of apache1.3.27 + php4.4.2 + mysql5.0.19-Linux Enterprise Application-Linux server application information. The following is a detailed description. Static compilation of apache1.3.27 + php4.4.2 + mysql5.0.19

Install mysql first

Shell> groupadd mysql

Shell> useradd-g mysql

Shell> gunzip <mysql-VERSION.tar.gz | tar-xvf-similar to the following sentence

Shell> tar-zxvf mysql5.0.19.tar.gz

Shell> cd mysql5.0.19.tar.gz

Shell>./configure -- prefix =/usr/local/mysql

Shell> make install

Shells> cp support-files/my-medium.cnf/etc/my. cnf

Shell> cd/usr/local/mysql

Shell> bin/mysql_install_db -- user = mysql

Shell> chown-R root.

Shell> chown-R mysql var

Shell> chgrp-R mysql.

Shell> bin/mysqld_safe -- user = mysql &

Do not install apache during the first compilation, because apache has compiled it at least once.
Tar zvxf apache_1.3.27.tar.gz
Cd apache_1.3.27
./Configure -- prefix =/usr/local/apache
Compile php
Tar zvxf php4.2.tar.gz
Cd php4.4.2
./Configure -- prefix =/usr/local/php -- with-mysql =/usr/local/mysql ---
Apache = ../apache_1.3.27
Make
Make install
The second compilation and installation of apache:
Cd ../apache_1.3.27
./Configure -- prefix =/usr/local/apache -- activate-module = src/modules/php4/libphp4.a
Make
Make install
Cp ../php4.4.2/php. ini. dist/usr/local/php/lib/php. ini

Modify/usr/local/apache/conf/httpd. conf
Search
Add in this range
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. phps
Note: The Source Code packages of apache and php are in the same directory. -- with-apache = ../apache_1.3.27 indicates the directory to which the source code is extracted.

OK! Static compilation is complete. You only need to start the server.
/Usr/local/apache/bin/apachectl start
Then, enter the php test page info. php: The content is as follows:
Phpinfo ();
?>
Normally, you should be able to see the php information. Congratulations, the static compilation is successful!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.