. mysql Tutorial
Download the MySQL for Linux RPM package on the following page
http://www.mysql.com/downloads/down...3.52-1.i386.rpm
http://www.mysql.com/downloads/down...3.52-1.i386.rpm
Save to/home/tmp Directory
List of commands:
Cd/home/tmp
RPM-IVH mysql-3.23.52-1.i386.rpm//#安装mysql Server
RPM-IVH mysql-client-3.23.52-1.i386.rpm//#安装mysql Client
/usr/mysql/safe_mysqld &//#启动mysql server
MySQL//#运行mysql client and open the root user's remote access permission to debug
Use MySQL
Update user Set host = '% ' where user = ' root ' and host <> ' localhost ';
Flush privileges;
Quit//This MySQL installation is complete
2.apache
Download the Apache for Linux source package on the following page
Http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz
Save to/home/tmp Directory
List of commands:
Cd/home/tmp
TAR-ZXVF apache_1.3.26.tar.gz
MV Apache_1.3.26.tar.gz Apache
CD Apache
./configure--prefix=/usr/local/apache--enable-module=so
Make
Make install install Apache to/usr/local/apache//and configure Apache to support DSO mode
3.php Tutorials
Download the PHP for Linux source package on the following page
Http://www.php.net/get_download.php?df=php-4.2.3.tar.gz
Save to/home/tmp Directory
List of commands:
Cd/home/tmp
TAR-ZXVF php-4.2.3.tar.gz
MV php-4.2.3.tar.gz PHP
CD PHP
./configure--prefix=/usr/local/php--with-apxs=/usr/local/apache/bin/apxs--with-config-file-path=/usr/local/lib --enable-track-vars--with-xml--with-mysql
Make
Make install
CP Php.ini-dist/usr/local/lib/php.ini
Install the PHP to/usr/local/php in DSO mode set profile directory for/usr/local/lib open Mysql,xml support
4. Configure
Vi/usr/local/apache/conf/httpd.conf
Make the following configuration for Apache
#将ServerAdmin q3boy@younet.com line to your e-mail address
#DocumentRoot "/home/httpd/html/" Here for the HTML file home directory
# ditto
#Options followsymlinks multiviews for safety, remove "Indexes"
#
# directoryindex default.php default.phtml default.php3 default.html default.htm
#
#设置apache的默认文件名次序
#AddType application/x-httpd-php. php. phtml. PhP3. Inc
#AddType Application/x-httpd-php-source. Phps Tutorial
#设置php文件后缀
Disk exit
Vi/usr/local/lib/php.ini
#register-golbals = ON//Disk exit
5. Start Service
/usr/local/apache/bin/apachectl start
6. Notes
Apache's default maximum number of processes under Linux is 256, no matter how modified httpd.conf can exceed this limit. If you want to increase this limit, edit/home/tmp/apache/src/include/httpd.h before compiling Apache, and change the #define HARD_SERVER_LIMIT 2,561 lines to #define Hard_ Server_limit 2048 before compiling Apache,
Mod_so seems to be no longer the default module in Apache 1.3.26. Compile time need to add--enable-module=so, my first compilation did not add this parameter, the result of PHP compile can not find APXS
The default profile path in PHP 4.2.3 seems to have changed. Compile-time need to add--with-config-file-path=/usr/local/lib parameters, I compiled the first php.ini put n places are no use. Forced You can only add this parameter.
P.S. does not guarantee that the steps described in this article apply to other versions
Attached: Related documents download address
Php:http://www.php.net/get_download.php?df=php-4.2.3.tar.gz
Apache:http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz
MySQL server:http://www.mysql.com/downloads/down...3.52-1.i386.rpm
MySQL client:http://www.mysql.com/downloads/down...3.52-1.i386.rpm