linux网页上线

1、下载安扎ung包到/var/www/westos.com/bbs/html/Discuz_X3.2_SC_UTF8.zip(文件需要新建)
2、解压 unzip Discuz_X3.2_SC_UTF8.zip   出现3个文件

3、根据要求修改权限
 cd readme/
    less readme.txt


4、修改权限
    cd upload/
    ls
    chmod -R 777 config
    chmod -R 777 data
    cd upload/
    chmod 777 uc_client uc_server -R

5、开启服务
  getsebool -a | grep httpd
  setsebool -P httpd_anon_write on
  setsebool -P httpd_sys_script_anon_write on


7、建立文件
  cd /etc/httpd/conf.d/
  ls
  cp music.conf bbs.conf
  vim bbs.conf
修改:%s/music/bbs/g


8、安装数据库
  yum install mariadb-server.x86_64 -y
 systemctl start mariadb
 systemctl enable mariadb.service


  vim /etc/my.cnf
添加:skip-networking=1
    systemctl restart mariadb.service


9、安装PHP
    yum install php-mysql.x86_64 -y
  systemctl restart httpd.service


10、修改警告模式
setenforce 0


11、systemctl restart httpd.service

测试:bbs.westos.com/upload

 

你可能感兴趣的:(linux网页上线)