LAMP製作Discuz論壇(1)

來源:互聯網
上載者:User

 

圖-LAMP

LAMP製作Discuz論壇步驟如下:

先說明下LAMP,L代表linux,A代表apache,M代表mysql,P代表PHP。

首先安裝CENTOS5。1,安裝的時候只要把基本工具和開發工具開發庫選上就可以了,其他什麼也不用。

所用到的軟體:

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(如果不關閉在後面安裝完成後啟動HTTP會報錯)

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


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.