Operating System: RedHatEnterpriseLinuxServer5.6-i386
Kernel: 2.6.18-238. el5
Linux Browser: firefox (Chinese characters are not supported, so you can switch to a common browser under win to install the Dicuz Forum)
Installation Package:/root/Desktop/LAMP/httpd-2.0.64.tar.gz
/Root/Desktop/LAMP/mysql-5.0.18.tar.gz
/Root/Desktop/LAMP/php-5.2.8.tar.bz2
/Root/Desktop/LAMP/Discuz_7.2_FULL_ SC _GBK.zip
Installation path:/usr/local/apache
/Usr/local/mysql
/Usr/local/php
Note: uninstall the previously installed apache mysql php
Apache
Cd/root/Desktop/LAMP/
Tar-zxf httpd-2.0.64.tar.gz
Cd httpd-2.0.64
./Configure -- prefix =/usr/local/apache/(the/usr/local/Apache/directory is automatically generated)
Make & make install
/Usr/local/apache/bin/apachectlrestart
Cd/usr/local/apache/htdocs/
Rm-rf *
Vi index.html
/Usr/local/Apache/bin/apachectl restart
MySQL
Cd/root/Desktop/LAMP/
Tar-zxf mysql-5.0.18.tar.gz
Cd mysql-5.0.18
./Configure -- help
Vi INSTALL-SOURCE
Only the following content is left:
Chmod 777./INSTALL-SOURCE (permission and Development negotiation)
./INSTALL-SOURCE
PHP:
Cd/root/Desktop/LAMP/
Tar-jxf php-5.2.8.tar.bz2
Cd php-5.2.8
./Configure -- prefix =/usr/local/php -- with-mysql =/usr/local/mysql/
-- With-apxs2 =/usr/local/apache/bin/apxs
Make & make install
After installing php, modify apache:
Vi/usr/local/apache/conf/httpd. conf
Or:
Add AddType application/x-httpd-php. php in Row 3
Line 3: DirectoryIndex index.html. var index. php
Cd/usr/local/apache/htdocs/
Rm-rf *
Vi index. php
<? Php
Phpinfo ();
?>
/Usr/local/apache/bin/apachectl start
Test: Enter localhost/index. php in the address bar of the linux-firefox browser.
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)
Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application PHPWind
Build a WEB Server Linux + Apache + MySQL + PHP in the LAMP source code Environment