Discuz

實驗環境php

centos6.8_x64html


實驗軟件mysql

Discuz_SC_UTF8.zipsql


軟件安裝
apache

yum install -y lrzsz  lsof gcc make zip unzipcentos

yum install -y httpd mysql mysql-serverapp

yum install -y php php-gd php-mysql php-xml php-pdoless


service mysqld startcurl

chkconfig --level 35 httpd on &&  chkconfig --level 35 mysqld ontcp


mysqladmin -uroot password  mysqlpasswd

mysql -uroot -pmysqlpasswd

create database ultrax;

flush privileges;

 

cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

sed -i "s/#ServerName www.example.com:80/ServerName *:80/g" /etc/httpd/conf/httpd.conf

less  /etc/httpd/conf/httpd.conf | grep AddType

AddType application/x-tar .tgz               

AddType application/x-httpd-php .php 

 

touch /var/www/html/test.php

echo "<?php phpinfo(); ?>" > /var/www/html/test.php


unzip /root/Discuz_SC_UTF8.zip

mv /root/dir_SC_UTF8/upload/ /var/www/html/bbs

chown -R apache:apache /var/www/html/bbs/


netstat -tuplna | grep httpd

tcp        0      0 :::80                       :::*                        LISTEN      4260/httpd

netstat -tuplna | grep mysqld

tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      4155/mysqld


curl http://serverip/index.html

1.jpg


http://serverip/test.php

2.jpg


http://serverip/bbs/install/

11.jpg


12.jpg


13.jpg


14.jpg


16.jpg


http://serrverip/bbs/

15.jpg

相關文章
相關標籤/搜索