张小烦 发表于 2017-3-1 01:20:01

CPanel安装

安装cpanel面板cp面板的地址 。IP:2087 账户密码为机器的默认用户名和密码 。
1. install centos min         修改系统环境,也就是弄对系统。
2. disable selinux, change   /etc/selinux/config      进到这个文件下修改
vi /etc/selinux/config
SELINUX=disabled
3. disable iptables firewall            关闭防火墙
命令chkconfig iptables off
或者是service iptables stop
4. update os                     解压安装
yum -y update
5. install perl and wget             解压安装
yum -y install perl wget
6. set hostname to xxxx.         修改主机名,必须修改为域名的形式
改 /etc/sysconfig/network
HOSTNAME=他的全域名(不加www)
改 /etc/hosts
再运行命令hostname 域名.com(不加www)
然后重启网卡,/etc/init.d/network restart
7. reboot                         重启服务器
8. install cpanel               安装cpanel
cd /home
wget -N http://httpupdate.cpanel.net/latest (下载报错查看下DNS设置 )
sh latest
2013-02-28 17:54:52 271 ( INFO): cPanel install finished in 55 minutes and 57 seconds!
2013-02-28 17:54:52 2048 ( INFO):
2013-02-28 17:54:52 2048 ( INFO): Congratulations! Your installation of cPanel & WHM 11.34 is now complete. The next step is to configure your server.
2013-02-28 17:54:52 2048 ( INFO):
2013-02-28 17:54:52 2048 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.
2013-02-28 17:54:52 2048 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_rh_firewall_for_cpanel to accomplish this.
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): 1. Open your preferred browser
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): 2. Type https://192.74.251.18:2087 in the address bar
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): 3. Enter the word root in the Username text box
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): 4. Enter your root password in the Password text box
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): 5. Click the Login button
2013-02-28 17:54:52 2048 ( INFO): 2013-02-28 17:54:52 2048 ( INFO): Visit http://go.cpanel.net/whminit for more information about first-time configuration of your server.
2013-02-28 17:54:52 2048 ( INFO):
2013-02-28 17:54:52 2048 ( INFO): Visit http://support.cpanel.net or http://go.cpanel.net/whmfaq for additional support
2013-02-28 17:54:52 2048 ( INFO):
2013-02-28 17:54:52 2048 ( INFO): Thank you for installing cPanel & WHM 11.34!
页: [1]
查看完整版本: CPanel安装