PHP4.03 installation in linux

Source: Internet
Author: User

... This document describes how to install PHP4.03 and mysql3.23.9 in redhat6.0 apache1.3.11.
All the software involved in this article can be downloaded from the software section on this site.
... Required software
· Php4. 03 source code C language code
· Mysql3.23 alpha source program
· Apache 1.3.11 source program
· Phpmyadmin _ 2.0.5 is the best tool for managing MYSQL databases.
Step 1 download the required program and install the MYSQL3.23 program.
... Su creates a directory for root as the directory for program installation, as shown in figure
/Server
Create the directory mysql, apache,
... Download the above three files to/usr/src.
Run the following command to unbind 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 phpmyadmin to/server
Run the same
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 installed the C Development Library
·./Configure-help
·./Configure-prefix =/server/mysql
· Make
· Make install
· Cd/server/mysql/bin
·./Mysql_install_db
Mysql has been installed successfully.
Can run mysql database
/Server/mysql/libexec/mysqld &
You can view the current status of the database using the database display program mysqlshow.
/Server/mysql/bin/mysqlshow
Step 2 install apache and php4.
... Disable this service if apache is already running in the system.
Killall httpd
Compile apache and php4. Each line number is a line.
· 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
After apache and php4 are installed successfully, configure apache and php4
· Configure php4
The php4 configuration file is/usr/local/lib/php. ini.
You can use vi for editing. If you have installed MC, you can also use MC for editing.

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.