whmcs7.01 centos下完整安装教程

系统环境centos6.x 64位php

1.配置web环境html

web环境选择LNMP1.4web

下载LNMP安装脚本wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.sh数据库

运行命令安装,至于命令后如何选择请详细参考官方centos

https://lnmp.org/install.html浏览器

静静的等待安装完成,这个安装速度是根据本身所选的机器而定。机器差,网速很差估计要等待7-8个小时才可以完成。网站

2.安装php组件ionCube(这个必定要安装,不然没法安装whmcs)spa

 

cd lnmp1.4.net

./addons.sh install ionCube code

3.添加网站

lnmp vhost add 

详细安装教程https://lnmp.org/faq/lnmp-vhost-add-howto.html

4.上传网站程序

建议使用winscp上传。上传whmcs压缩包到你所创建的目录,home/wwwroot/yousite(第三步你填写的域名)

cd /home/wwwroot/yoursite

而后解压 whmcs 文件包 

unzip whmcs.zip 解压后 cd whmcs --> mv * ../ --> cd ../

修改网站目录权限:chown www:www -R /path/to/dir 对网站目录进行权限设置,/path/to/dir替换为你网站目录。

5.安装程序

cd /home/wwwroot/yoursite

cp configuration.php.new configuration.php

chmod 777 configuration.php

chmod 777 templates_c

chmod 777 attachments

chmod 777 downloads

在浏览器中输入你的域名访问

点 I gree 
填写数据库信息,下一步下一步。便可安装完成

6.删除安装目录install(必须,否则没法访问后台

cd /home/wwwroot/yoursite

web 目录下 : rm -rf install

 

大功告成了,访问 http:// 你的域名 / admin / 就能够登陆后台了

相关文章
相关标签/搜索