1.apache (the most popular Web server platform for UNIX platforms)
Download the for Linux source package for the Apache (most popular UNIX platform Web server platform) on the following page
Http://www.apache (the most popular Web server platform for UNIX platforms). org/dist/httpd/;
Save to/home/xx directory, XX is a self-built folder, I built a WJ folder.
List of commands:
Cd/home/wj
TAR-ZXVF httpd-2.0.54.tar.gz
MV httpd-2.0.54 Apache (the most popular Web server platform on UNIX platforms)
CD Apache (the most popular Web server platform on UNIX platforms)
./configure--prefix=/usr/local/apache (the most popular Web server platform for UNIX platforms) 2--enable-module=so
Make
Make install
Install Apache (the most popular Web server platform on UNIX platforms) to/usr/local/apache (the most popular Web server platform on UNIX platforms) and configure Apache (the most popular Web server platform for UNIX platforms) to support DSO mode
2.php (as the current mainstream development language)
Download PHP (as the current mainstream development language) for Linux source packages on the following page
Http://www.php (as the current mainstream development language). net/downloads.php (as the current mainstream development language);
Save to/HOME/WJ Directory
List of commands:
Cd/home/wj
TAR-ZXVF PHP (as the current mainstream development language) -5.0.4.tar.gz
MV PHP (as the current mainstream development language) -5.0.4 PHP (as the current mainstream development language)
CD PHP (as the current mainstream development language)
./configure--prefix=/usr/local/php (as the current mainstream development language) 5--with-apxs2=/usr/local/apache (Unix platform most popular web server platform) 2/BIN/APXS-- With-config-file-path=/usr/local/lib--enable-track-vars--with-xml (standardization getting closer)--with-mysql (and the best combination of PHP collocation)
Make
Make install
where Apache (the most popular Web server platform for UNIX platforms) and MySQL (the best combination with PHP) are based on the directory name you installed, my =/usr/local/apache (the most popular Web server platform for UNIX platforms) 2/bin/apxs and MySQL (the best mix with PHP)
CP PHP (as the current mainstream development language). ini-dist/usr/local/lib/php (as the current mainstream development language). ini
Install PHP as DSO (now the mainstream development language) to/usr/local/php (as the current mainstream development language) set the profile directory for/usr/local/lib open MySQL (and PHP collocation of the best combination), XML (standardization is getting closer) Support
3. Configuration
Vi/usr/local/apache (the most popular Web server platform for UNIX platforms)/conf/httpd.conf
Configure the following for Apache (the most popular Web server platform on UNIX platforms)
#将ServerAdmin mailto:linux@linuxidc.com Line to your email address
#DocumentRoot "/home/httpd/html/" Here is the home directory for HTML files
# ditto
#Options followsymlinks multiviews for safety, remove the "Indexes"
#
# DirectoryIndex default.php (as the current mainstream development language) default.phtml default.php (as the current mainstream development language) 3 default.html default.htm
#
The default file name order for #设置apache (the most popular Web server platform on UNIX platforms)
#AddType application/x-httpd-php (as the current mainstream development language). PHP (as the current mainstream development language). phtml. PHP (as the current mainstream development language) 3. Inc
#AddType application/x-httpd-php (as the current mainstream development language)-source. PHP (as the current mainstream development language) s
#设置php (as the current mainstream development language) file suffix
Save to exit
Vi/usr/local/lib/php (as the current mainstream development language). ini
#register-golbals = On
Save to exit
4. Start the service
/usr/local/apache (the most popular Web server platform for UNIX platforms)/bin/apache (the most popular Web server platform for UNIX platforms) CTL start
5. Testing
Then write a PHP (as the current mainstream development language) test page info.php (as the current mainstream development language): content as follows
〈?php (as the current mainstream development language)
PHP (as the current mainstream development language) info ();
?>
Normally, you should be able to see PHP (as the current mainstream development language) information, congratulations on your apche+mysql (and PHP collocation of the best combination) +php (as the current mainstream development language) installation success.
6, Apache (Unix platform The most popular Web server platform) automatically launched--
The following is an example of a self-launching Apache (the most popular Web server platform on UNIX platforms).
Self-launching script:
/usr/local/apache (the most popular Web server platform for UNIX platforms)/bin/apache (the most popular Web server platform for UNIX platforms) CTL start
The file is located under/ETC/RC.D/INIT.D, named Apache (the most popular Web server platform for UNIX platforms) d, which is noted to be executable.
#chmod +x/etc/rc.d/init.d/apache (the most popular Web server platform for UNIX platforms) d//settings file properties are executable
#ln-S/etc/rc.d/init.d/apache (the most popular Web server platform for UNIX platforms) D/etc/rc3.d/s90apache (the most popular Web server platform for UNIX platforms)//establish soft links, shortcuts
#ln-S/etc/rc.d/init.d/apache (the most popular Web server platform for UNIX platforms) D/etc/rc0.d/k20apache (the most popular Web server platform for UNIX platforms)
http://www.bkjia.com/PHPjc/508555.html www.bkjia.com true http://www.bkjia.com/PHPjc/508555.html techarticle 1.apache (the most popular Web server platform for UNIX platforms) downloads the Apache (Unix platform most popular Web server platform) for Linux source package Http://www.apache (Unix platform most streaming ...) on the following page.