Export shellcd/usr/mysqlshellln-s/PATH-t
Linux installation clarification (not described here)
Mysql installation clarification
This document uses mysql4.0.14
Shell> groupadd mysql
Shell> useradd-g mysql
Shell> tar xvf XXXXmysql.tar.gz
Shell> cd/usr/mysql
Shell> ln-s/PATH-to-mysql
Shell> cd mysql
Shell> scripts/mysql_install_db -- user = mysql
Shell> chown-R root.
Shell> chown-R mysql data
Shell> chgrp-R mysql.
Shell> bin/mysqld_safe -- user = mysql &
Apache installation clarification
Http2.0.54
Shell> cd/usr/
Shell> tar xvfz httpd-2.0.54.tar.gz
Shell> cd httpd-2.0.54
Shell>./configure -- prefix =/usr/apache -- enable-module = so
Shell> make
Shell> make install
Shell>/usr/apache/conf
Shell> vi./httpd. conf
Modify Listen 80 to Listen: 80.
Change ServerName to ServerName: 80
Add index. jsp to DirectoryIndex
Shell> cd/usr/apache/bin/
Shell>./apachectl configtest
If Syntax OK is displayed, the installation is successful.
Shell>./apachectl start
Start the apache service, visit Port 80 of the local machine, and check whether the port is normal.
Shell>./apachectl stop
Php Installation Instructions
Php4.4.0 is used for this installation.
Shell> tar zxvf php4.4.0.tar.gz
Shell> cd php4.4.0
Shell>./configure -- prefix =/usr/php -- with-apxs2 =/usr/apache/bin/apxs -- with-xml -- with-mysql =/usr/mysql
Shell> make
Shell> make install
Shell> vi/usr/apache/conf/httpd. conf
Add
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. phps
Shell & gt; cp-rf/PAHT-to-php4.4.0/php. ini. dist/usr/php/lib/php. ini
Shell> vi php. ini
Corrected register_globals = On
Restart apache server
Write a php test document under/usr/apache/htdocs
If the installation accuracy can be clarified properly
Phpmyadmin database tool installation
PhpMyAdmin2.6.4 is used for this installation.
Shell> cd/usr/apache/htdocs
Shell> tar zxvf phpMyAdmin2.6.4.tar.gz
Shell> mv phpMyAdmin2.6.4 phpAdmin
Shell> vi config. inc. php
Change user name and password
$ Cfg ['servers'] [$ I] ['port'] = '80'; (port)
$ Cfg ['servers'] [$ I] ['user'] = 'root'; (user name)
$ Cfg ['servers'] [$ I] ['password'] = ''; (password)
Control user access permissions
Shell> vi/usr/apache/conf/httpd. conf
Correction
AllowOverride All
Shell> cd/usr/apache/bin
Shell> htpasswd-c/usr/apache/htdocs/phpAdmin/. htpasswd luodexing (clarify that luodexing is the username used to log on to phpmyadmin)
Shell> cd/usr/apache/htdocs/phpAdmin
Shell> vi. htaccess
Add
AuthName 'user login'
AuthType Basic
AuthUserFile/usr/apache/htdocs/phpAdmin/. htpasswd