• cPanel 安装方法


    . 如何安装cPanel/WHM?

    答:安装过程较长,建议使用screen或nohup
    screen:
    1. yum -y install screen perl
    2. screen -S cpanel
    3. cd /home
    4. wget -N http://httpupdate.cpanel.net/latest
    5. sh latest 2>&1 | tee ./cPanel-Install.log
    复制代码

    nohup:
    1. yum -y install perl
    2. cd /home
    3. wget -N http://httpupdate.cpanel.net/latest
    4. nohup sh latest > ./cPanel-Install.log 2>&1 &

    -----------------------------------------------------------------------------------------------
    搭好环境后,我们开始安装cPanel。cPanel的安装步骤如下:

    1、ssh登陆服务器
    ssh root@IP
    chkconfig iptables off service iptables stop
    2、确定服务器主显IP地址
    curl -L http://cpanel.net/showip.cgi
    3、卸载冲突的软件
    yum groupremove “FTP Server” “GNOME Desktop Environment”"KDE (K Desktop Environment)” “Mail Server”"Mono” “Web Server” “X Window System” 
    4、安装screen软件
    yum install screen
    5、用screen软件创建一个名为cPanel的新窗口
    screen -S cpanel 
    6、进入home目录
    cd /home 
    7、用wget下载cPanel的安装脚本latest
    wget -N http://httpupdate.cpanel.net/latest 
    8、 执行安装脚本
    sh latest
    9、手动激活cPanel授权(非必要步骤)
    /usr/local/cpanel/cpkeyclt 

    至此cPanel安装已经完成,同时也祝您在未来的工作中事事顺心!

    注:在安装cPanel的时候,可能出现的一些问题:
    1、主机名问题:
    hostname localhost.localdomain
    2、重新执行安装:
    rm -rf /root/installer.lock
    sh latest 执行安装脚本
    4、关闭SELinux
    编辑 /etc/selinux/config文件
    修改为 SELINUX=disabled

    5、停用防火墙
    chkconfig iptables off
    service iptables stop

    6.无法和cpanel.net建立连接,ping提示ping: unknown host cpanel.net,这是dns的问题,修改/etc/resolv.conf,将nameserver 设置为 8.8.8.8

    cpanel安装时出现这个错误
    Fatal! Perl must be installed before proceeding!
    可以先
    yum install perl
    然后再重新安装就可以了

  • 相关阅读:
    【Linux设备驱动程序】Chapter 2
    【Linux设备驱动程序】Chapter 1
    sed 命令多行到多行的定位方式
    chmod 与大写 X
    C 语言中模板的几种实现方式
    /etc/default/grub 部分配置选项设置
    fcitx error
    QT5学习过程的小问题集锦
    Qt4编码
    Qt MainWindow结构
  • 原文地址:https://www.cnblogs.com/alex-13/p/4277525.html
Copyright © 2020-2023  润新知