PHP4.03 installation under Linux

Source: Internet
Author: User
Tags ini mysql database
.... This paper mainly introduces the installation of PHP4.03 and mysql3.23.9 under the apache1.3.11 of redhat6.0 system.
The software in this paper can be downloaded from the Software section of this website.
.... The required software
php4.03 source program C language code
mysql3.23 Alpha Source program
Apache 1.3.11 source program
phpmyadmin_2.0.5 the best tool for managing MySQL databases
The first step is to download the required program and install the MYSQL3.23 program.
.... su creates a new directory for root for the program to install as
/server
Build directory under Server MySQL, Apache,
.... Download the top 3 files to/usr/src/.
Run the following command to unpack the package
TAR-ZXVF php-4.0b3.tar.gz
TAR-ZXVF mysql-3.23.9-alpha.tar.gz
TAR-ZXVF apache_1.3.11.tar.gz
Download the phpMyAdmin to the/server
Also run
TAR-ZXVF phpmyadmin_2.0.5.tar.gz
Cd/usr/src/mysql-xxxx
Here xxxx is the version number of the program, the same below, the system must have been installed C Development Library
·. /configure-help
·. /configure-prefix=/server/mysql
make
make Install
Cd/server/mysql/bin
·. /mysql_install_db
To this MySQL has been installed successfully
can run MySQL database
/server/mysql/libexec/mysqld &
You can view the current state of the database through the database viewer Mysqlshow
/server/mysql/bin/mysqlshow
The second step is to install Apache and PHP4.
.... If Apache is already running on the system, turn off the service first
Killall httpd
Compiles Apache and PHP4, each row number is one row
cd/usr/src/apache_1.3.x
·. /configure--prefix=/server/apache
CD.. /php-4.0.x
·. /configure--with-mysql=/server/mysql--with-apache=. /apache_1.3.x--enable-track-vars
make
make Install
CD.. /apache_1.3.x
·. /configure--prefix=/server/apache--activate-module=src/modules/php4/libphp4.a
make
make Install
CD.. /php-4.0.x
CP Php.ini-dist/usr/local/lib/php.ini
Apache and PHP4 have been installed successfully configure Apache and PHP4 below
• Configure PHP4
PHP4 configuration file is/usr/local/lib/php.ini file
can use VI to edit, if you install the MC can also be used to edit the MC

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.