Article Title: How to build the Discuz forum in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Environment
Linux AS4 2.6.9
1. Install mysql
Use version mysql5.1.22-rc.tar.gz
Copy the installation package to the/usr/local directory and run the following command:
groupadd mysqluseradd -g mysql mysqlcd mysql scripts/mysql_install_db --user=mysqlchown -R mysql:mysql .cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnfcp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqldchmod +x /etc/rc.d/init.d/mysqldln -s /usr/local/mysql/bin/mysql /usr/sbin/mysqlchkconfig --add mysqld |
Start mysql
Service mysqld start
Go to mysql
Mysql
2. install apache
Version httpd-2.0.61.tar.gz
. /Configure -- prefix =/usr/local/apache -- enable-module = so
Make
Make install
Cd/usr/local/apache/bin
. /Apachectl start
If the gcc compilation tool is not installed, a prompt will be prompted during installation. You can find it on the CD!
3. install php
Version php-4.4.7.tar.gz
. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache/bin/apxs -- with-config-file-path =/usr/local/lib -- enable-track-vars -- with-xml -- with-mysql =/usr/local/mysql -- with-mbstring -- enable-mbstring = all
Make
Make install
Note:
-- With-apxs = dir is compiled as an apache module
-- With-config-file-path = dir php. ini directory
-- Enable-track-vars trace variable
-- With-xml support
-- With-mysql = dir mysql support
[1] [2] Next page