... 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 ..... The required software php4.03 Source Program C language code mysql3.23alpha source program apache1.3.11 source program phpmyadmin_2.0.5 management MYSQL data... this article mainly introduces PHP4.03 and mysql3.23.9 in redhat6.0 system apache1.3.11 installation. 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
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.
· Configure apache
The configuration file of apache is/server/apache/conf/httpd. conf.
Remove
# AddType application/x-httpd-php. php
The registration number of the row "#" to join the row
AddType application/x-httpd-php. php3
Save the file.
Modify row 65th
Require ("english. inc. php3 ");
Require ("chinese_gb.inc.php3 ");
Save the file.
· Start apache
/Server/apache/bin/apachectl start
Step 3 test
... The/server/phpMyAdmin_2.0.5 directory under/server/apache/htdocs/is admin
... Open http: // localhost/admin/index. php3 in the browser. you can connect to the MYSQL database and perform operations on the database. This indicates that the entire system can work normally. You can also create a new php file as follows:
File name info. php
// View the system status file.
// End the file
When you access this page in the browser, you will get the PHP running information.
Note. all content in this article is run on the relevant platform in this article. different PHP versions may be different.
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