Figure-LAMP
LAMPProductionDiscuzThe procedure of the Forum is as follows:
LAMP, L stands for linux, A stands for apache, M stands for mysql, and P stands for PHP.
First install CENTOS5. 1. During installation, you only need to select the basic tools and development tool development libraries.
Software used:
Php-5.2.5.tar.gz
Discuz! _6.0.0_ SC _UTF8.zip
Httpd-2.2.6.tar.gz
Mysql-5.0.45.tar.gz
Vi/etc/selinux/config
SELINUX = disabled (if not disabled, an error will be reported when HTTP is started after installation is complete)
Reboot
Mkdir/downloads
Cd/downloads
Tar zxvf mysql-5.0.45.tar.gz
Cd mysql-5.0.45
Useradd mysql
Passwd mysql
./Configure -- prefix =/opt/mysql5
Make
Make install
Cp support-files/my-medium.cnf/etc/my. cnf
Cd/opt/mysql5
Chown-R mysql: mysql.
Bin/mysql_install_db -- user = mysql
Chown-R root.
Chown-R mysql var
Bin/mysqld_safe -- user = mysql &
Cp support-files/mysql. server/etc/rc. d/init. d/mysqld
Chmod 755/etc/rc. d/init. d/mysqld
/Usr/local/mysql/bin/mysqladmin-uroot password 123456
Tar zxvf httpd-2.2.6.tar.gz
Cd httpd-2.2.6
./Configure -- enable-so -- prefix =/opt/www
Make
Make install
Tar zxvf php-5.2.5.tar.gz
Cd tar php-5.2.5
./Configure -- with-apxs2 =/opt/www/bin/apxs -- with-mysql =/opt/mysql5