温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

yum安装lamp+discuz

发布时间:2020-07-20 03:16:28 来源:网络 阅读:482 作者:15816815732 栏目:关系型数据库

首先安装httpd 相关软件包

yum install httpd httpd-devel httpd-manual httpd-tools -y

启动httpd服务

service httpd restart

将httpd服务添加到开机自启动

chkconfig httpd on

此时在浏览器中输入本机ip已经能打开apache测试网站,注意修改防火墙策略

安装mysql

 yum install mysql mysql-devel php-mysql mysql-server -y

将mysqld服务加到开机自启动

 chkconfig mysqld on

启动mysql服务

service mysqld start

安装php及相关软件包

yum install php-common php php-devel php-gd php-imap php-ldap php-mbstring php-pear php-xml php-xmlrpc -y

cd /var/www/html/

vim index.php


<?php

        phpinfo();

?>


设置管理员的密码为root

yum安装lamp+discuz


iptables -F

setenforce 0


启动httpd服务

service httpd restart

此时在浏览器中输入本机ip已经能打开php测试网站


 



在下面地址下载PHP论坛软件

http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

unzip Discuz_X3.2_SC_UTF8.zip



将upload内容复制到/var/www/html目录下


[root@centos html]# cp -a /usr/local/src/upload/* ./

将下面目录给予写权限

[root@centos html]# chmod -R o+w ./{data,config,uc*}


 




 

浏览器输入server IP地址,出现论坛的安装界面

yum安装lamp+discuz



yum安装lamp+discuz


yum安装lamp+discuz

yum安装lamp+discuz


 

yum安装lamp+discuz

 

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI