What is aapanel?

aaPanel, a simple but powerful control panel, can manage the web server through web-based GUI(Graphical User Interface).
aaPanel provides the one-click function such as one-click install LNMP/LAMP developing environment and software.
The main goal is helping users to save the time of deploying, thus users just focus on their own project that is fine.

What do you need?

In this blog, I will help you to install the aapanel on 64 bit debian/ubuntu system, because the aapanel doesn't support 32 bit system. Here are the requirements:

  • 64-bit Ubuntu/Debian (Armbian recommended)
  • Rock64 board (4G version recommended)
  • Network

    How to get aapanel?

    To get the aapanel, we need to run the command below:

    wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh

    After you successfully installed the aapanel, you will see something like this:

    Attention: you need to save the link, username and password shown in the terminal.

    Configure the environment

    In order to install the LAMP or LNMP successfully, you need to install some essential library which will be used in the installation of Nginx or Apache.
    Caution: Without good heat dissipation, you need to do as the followings, in order to avoid failure

    sed -i "s/MAX_SPEED=.*/MAX_SPEED=1024000/" /etc/default/cpufrequtils 
    service cpufrequtils restart

    essential softwares


    For somes reasons, internationalized text often uses different encodings due to language or national reasons. The libiconv library provides an iconv () function for applications that need to be converted to achieve the conversion from one character encoding to another character encoding.


  • Downloading libiconv-v1.14
    wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz && tar -zxvf libiconv-1.14.tar.gz
  • Configuration
    cd libiconv-1.14
    sudo ./configure -prefix=/usr/local --build arm-pc-linux
  • Solving the problem
    In file included from progname.c:26:0:
    ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
    _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
    make[2]: *** [progname.o] Error 1
    make[2]: Leaving directory `/usr/local/src/zabbix-2.4.7/libiconv-1.14/srclib'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/local/src/zabbix-2.4.7/libiconv-1.14/srclib'
    make: *** [all] Error 2
    vim srclib/stdio.in.h

    Replace line 698_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); with:

    #if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
    _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  • Installation
    sudo make && sudo make install


    Luajit is a interpreter written by C language, which support just in time technology, so that can accelerate the running.


  • Downloading Luajit
    wget http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz && tar -zxvf Luajit-2.1.0-beta3
  • Installation
    cd Luajit-2.1.0-beta3
    sudo make && sudo make install
  • configuration
    cd /usr/local/bin && ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit
    cd /usr/local/include && ln -sf luajit-2.1/ luajit-2.0

    Install LAMP/LNMP

    Open the link you saved before, and use the username and password to log in to aapanel. you will see something like:

    You can select LAMP or LNMP to be installed.


  • Apache 2.4
  • PHP 7.2
  • MySQL 5.6
  • others : default


  • Nginx - Tengine
  • PHP 7.2
  • MySQL 5.6
  • others : default
    After that, both installation below are ok, because all of them will install by compliling.
    This will take about 8 hours to finish installation, so I recommend you guys to install it in the night.
    When finished, you can set up a website.
    Select website in the left panel, and you will see:

    Give domains (if you have), or you can leave a ip address. Also, you need to give names of database and ftp server.
    If you installed multiple versions of PHP, you can select one you like.
    Copy files of this site to the root directory shown in the picture, and open the domain in the browser, you will see the website appears.
    All set!
Last modified: February 13, 2020



Greate tutorial I just install aapanel and it work fantastic (super user friendly I'm realy love it. THANK YOU!). I add some wordpress site to test it, and part of wp-admin doesn't work. Did you have also this problem?


    No, everything works well in my server. Maybe you need to change permissions of each file. Both of the owner and owner group are www, you may check this.

      I tried many things, change Apache to Nginx, reinstall OS and compile components instead of fast install. Changing permission like you said. Nothing of that was working. Finally I installed all PHP versions, on PHP 7.4 and 7.3 wordpress doesn't work, on 5.6, 7.0, 7.1, 7.2 it work fine.

Leave a Reply