• Support
  • Guide to Install aaPanel on Google Cloud (Step by Step)

aaP_rahneverd
Hi, can you give us your aapanel information? The server makes a snapshot backup first, if possible, please send it to kern@aapanel.com.
It is recommended to fill in the following
Post link:
SSH IP address, account password and port:
aapanel login link address and account password:

No post link will not be able to know which user's information is, and the problem will not be processed

    aaP_rahneverd

    1. The aapanel login information is incorrect
    2. There is no way to know what your question is without a post link. Please explain your purpose in detail, otherwise no questions will be dealt with
    a year later

    When I Run
    wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh
    I Get
    install.sh: line 25: [: : integer expression expected
    cat: /etc/hostname: No such file or directory
    hostname is empty and the aaPanel cannot be installed. Please consult the server operator to set the hostname and then reinstall.

    This is happening on Google Cloud Console after I installed nginx and assigned a static ip

      21 days later

      aaPanel_Kern
      curl http://127.0.0.1:$(cat /www/server/panel/data/port.pl)/logincurl: (56) Recv failure: Connection reset by peer
      When i check this promt it show that. Sorry but im newbie, i just want to up server apk game for test. I stuck on step 9,

      [root@n0kia2k7 ~]# curl 127.0.0.1:$(cat /www/server/panel/data/port.pl)/login;/etc/init.d/bt status
      curl: (56) Recv failure: Connection reset by peer
      Bt-Panel (pid 1350) already running
      Bt-Task (pid 1238) already running
      [root@n0kia2k7 ~]# iptables -S
      -P INPUT ACCEPT
      -P FORWARD ACCEPT
      -P OUTPUT ACCEPT
      -N FORWARD_IN_ZONES
      -N FORWARD_IN_ZONES_SOURCE
      -N FORWARD_OUT_ZONES
      -N FORWARD_OUT_ZONES_SOURCE
      -N FORWARD_direct
      -N FWDI_public
      -N FWDI_public_allow
      -N FWDI_public_deny
      -N FWDI_public_log
      -N FWDO_public
      -N FWDO_public_allow
      -N FWDO_public_deny
      -N FWDO_public_log
      -N INPUT_ZONES
      -N INPUT_ZONES_SOURCE
      -N INPUT_direct
      -N IN_public
      -N IN_public_allow
      -N IN_public_deny
      -N IN_public_log
      -N OUTPUT_direct
      -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
      -A INPUT -i lo -j ACCEPT
      -A INPUT -j INPUT_direct
      -A INPUT -j INPUT_ZONES_SOURCE
      -A INPUT -j INPUT_ZONES
      -A INPUT -m conntrack --ctstate INVALID -j DROP
      -A INPUT -j REJECT --reject-with icmp-host-prohibited
      -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
      -A FORWARD -i lo -j ACCEPT
      -A FORWARD -j FORWARD_direct
      -A FORWARD -j FORWARD_IN_ZONES_SOURCE
      -A FORWARD -j FORWARD_IN_ZONES
      -A FORWARD -j FORWARD_OUT_ZONES_SOURCE
      -A FORWARD -j FORWARD_OUT_ZONES
      -A FORWARD -m conntrack --ctstate INVALID -j DROP
      -A FORWARD -j REJECT --reject-with icmp-host-prohibited
      -A OUTPUT -o lo -j ACCEPT
      -A OUTPUT -j OUTPUT_direct
      -A FORWARD_IN_ZONES -i eth0 -g FWDI_public
      -A FORWARD_IN_ZONES -g FWDI_public
      -A FORWARD_OUT_ZONES -o eth0 -g FWDO_public
      -A FORWARD_OUT_ZONES -g FWDO_public
      -A FWDI_public -j FWDI_public_log
      -A FWDI_public -j FWDI_public_deny
      -A FWDI_public -j FWDI_public_allow
      -A FWDI_public -p icmp -j ACCEPT
      -A FWDO_public -j FWDO_public_log
      -A FWDO_public -j FWDO_public_deny
      -A FWDO_public -j FWDO_public_allow
      -A INPUT_ZONES -i eth0 -g IN_public
      -A INPUT_ZONES -g IN_public
      -A IN_public -j IN_public_log
      -A IN_public -j IN_public_deny
      -A IN_public -j IN_public_allow
      -A IN_public -p icmp -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 20 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 443 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 34978 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 39000:40000 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      [root@n0kia2k7 ~]# iptables -I INPUT -p tcp --dport 7800 -j ACCEPT
      [root@n0kia2k7 ~]# sudo /sbin/iptables-save > /etc/iptables/rules.v4
      -bash: /etc/iptables/rules.v4: No such file or directory
      [root@n0kia2k7 ~]# iptables -S
      -P INPUT ACCEPT
      -P FORWARD ACCEPT
      -P OUTPUT ACCEPT
      -N FORWARD_IN_ZONES
      -N FORWARD_IN_ZONES_SOURCE
      -N FORWARD_OUT_ZONES
      -N FORWARD_OUT_ZONES_SOURCE
      -N FORWARD_direct
      -N FWDI_public
      -N FWDI_public_allow
      -N FWDI_public_deny
      -N FWDI_public_log
      -N FWDO_public
      -N FWDO_public_allow
      -N FWDO_public_deny
      -N FWDO_public_log
      -N INPUT_ZONES
      -N INPUT_ZONES_SOURCE
      -N INPUT_direct
      -N IN_public
      -N IN_public_allow
      -N IN_public_deny
      -N IN_public_log
      -N OUTPUT_direct
      -A INPUT -p tcp -m tcp --dport 7800 -j ACCEPT
      -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
      -A INPUT -i lo -j ACCEPT
      -A INPUT -j INPUT_direct
      -A INPUT -j INPUT_ZONES_SOURCE
      -A INPUT -j INPUT_ZONES
      -A INPUT -m conntrack --ctstate INVALID -j DROP
      -A INPUT -j REJECT --reject-with icmp-host-prohibited
      -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
      -A FORWARD -i lo -j ACCEPT
      -A FORWARD -j FORWARD_direct
      -A FORWARD -j FORWARD_IN_ZONES_SOURCE
      -A FORWARD -j FORWARD_IN_ZONES
      -A FORWARD -j FORWARD_OUT_ZONES_SOURCE
      -A FORWARD -j FORWARD_OUT_ZONES
      -A FORWARD -m conntrack --ctstate INVALID -j DROP
      -A FORWARD -j REJECT --reject-with icmp-host-prohibited
      -A OUTPUT -o lo -j ACCEPT
      -A OUTPUT -j OUTPUT_direct
      -A FORWARD_IN_ZONES -i eth0 -g FWDI_public
      -A FORWARD_IN_ZONES -g FWDI_public
      -A FORWARD_OUT_ZONES -o eth0 -g FWDO_public
      -A FORWARD_OUT_ZONES -g FWDO_public
      -A FWDI_public -j FWDI_public_log
      -A FWDI_public -j FWDI_public_deny
      -A FWDI_public -j FWDI_public_allow
      -A FWDI_public -p icmp -j ACCEPT
      -A FWDO_public -j FWDO_public_log
      -A FWDO_public -j FWDO_public_deny
      -A FWDO_public -j FWDO_public_allow
      -A INPUT_ZONES -i eth0 -g IN_public
      -A INPUT_ZONES -g IN_public
      -A IN_public -j IN_public_log
      -A IN_public -j IN_public_deny
      -A IN_public -j IN_public_allow
      -A IN_public -p icmp -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 20 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 21 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 443 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 34978 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
      -A IN_public_allow -p tcp -m tcp --dport 39000:40000 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT

      [root@n0kia2k7 ~]# bt 14

      EXECUTING

      ==================================================================

      aaPanel default info!

      aaPanel Internet Address: https://myip/633aacf2
      aaPanel Internal Address: https://myip/633aacf2
      username:
      password:

      Warning:
      If you cannot access the panel,

      release the following port (7800|888|80|443|20|21) in the security group

      [root@n0kia2k7 ~]# !<

      ah, i can fix it, tcp port must same as port after install aapanel

      2 months later

      aaPanel_Kern ah, thanks, but can you tell me some operation sytem like centos7, im newbie from web game source on linux, try to study, but most of source required centos.