How to build a Discuz forum in Linux

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.