安装PHP等等准备环境
修改apache httpd.conf: sudo vi /opt/httpd-2.4.2-server/conf/httpd.conf ,在 AddType application/x-gzip .gz .tgz 下面添加以下两行:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
(f) 验证php
在 /opt/httpd-2.4.2-server/htdocs/ 目录下,新建一个文件 index.php: sudo vi /opt/httpd-2.4.2-server/htdocs/index.php
在浏览器中,输入网址: http://localhost/index.php,打开以下页面,说明配置php成功。
2,准备好软件包
3, Discuz 环境配置
(a) 解压zip文件: unzip Discuz_X3.0_SC_UTF8.zip -d Discuz_X3.0