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 installed directory such 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 successfully installed, Apache and PHP4 are configured below
Remove
#AddType application/x-httpd-php. php
Line Registration Number "#" Join line
AddType application/x-httpd-php. php3
Save the file.
Configure phpmyadmin_2.0.5
The config.inc.php3 file is found under/server/phpmyadmin_2.0.5 to modify the following from line 10th
$cfgservers[1][' host ' = ' localhost ';
$cfgservers[1][' port ' = ' 3306 ';
$cfgservers[1][' Adv_auth '] = false;
$cfgservers[1][' stduser '] = ' root ';
$cfgservers[1][' stdpass '] = ';
$cfgservers[1][' user ' = ' root ';
$cfgservers[1][' password '] = ';
$cfgservers[1][' only_db '] = ';
$cfgservers[1][' verbose '] = ';
Modify Line 65th
Require ("english.inc.php3");
Require ("chinese_gb.inc.php3");
Save this file.
Start Apache
/server/apache/bin/apachectl start
Third Step Test
Link directory/server/phpmyadmin_2.0.5 to admin under/server/apache/htdocs/
Open Http://localhost/admin/index.php3 in the browser you can then connect to the MySQL database, you can operate on the log library. This indicates that the entire system is working properly. You can also create a new PHP file as follows
FileName info.php
To view the system health file start
<? Phpinfo ();? >
End of File
When you access this page in the browser, you will get information about the running of PHP.
Note. All content in this article is run through on the platform related to the article, and different versions of PHP may vary.
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.