ACP Admin is an open source web-based administration panel built on PHP and Laravel. It allows you to manage your servers, websites, domains, FTP accounts, and more. This tutorial will guide you through the installation process of ACP Admin on Debian Latest.
Before you start, make sure your Debian server meets the following requirements:
First, update the apt package manager and install required packages:
sudo apt update
sudo apt install curl git nano zip unzip wget software-properties-common apt-transport-https gnupg2 ca-certificates lsb-release
Next, install Apache and PHP along with required PHP modules:
sudo apt install apache2 libapache2-mod-php php php-common php-mysql php-redis php-mbstring php-intl php-gd php-xml php-zip php-curl php-xmlrpc php-soap php-bcmath php-pear php-dev -y
Install MySQL or MariaDB database server:
sudo apt install mariadb-server mariadb-client -y
Then, secure the MySQL by running:
sudo mysql_secure_installation
Navigate to the official Composer website and copy the installation command:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Then, verify the Composer installation by running:
composer --version
Navigate to the /var/www
directory and clone acp-admin
repository:
cd /var/www
sudo git clone https://github.com/youkoso/acp-admin.git
Create a new database for ACP Admin and grant permissions to a new user:
sudo mysql -u root -p
Enter your MySQL root password and run the following commands:
CREATE DATABASE acpadmin CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL ON acpadmin.* TO 'acpadmin'@'localhost' IDENTIFIED BY 'NewStrongPass27';
FLUSH PRIVILEGES;
EXIT
Configure Apache to serve the ACP Admin website:
sudo nano /etc/apache2/sites-available/acp-admin.conf
Add the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/acp-admin/public
<Directory /var/www/acp-admin>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/acp-admin-error.log
CustomLog ${APACHE_LOG_DIR}/acp-admin-access.log combined
</VirtualHost>
Then, enable the new virtual host and reload Apache:
sudo a2ensite acp-admin.conf
sudo systemctl reload apache2
Navigate to the ACP Admin directory and install dependencies using Composer:
cd /var/www/acp-admin
sudo composer install
Configure .env
file:
sudo cp .env.example .env
sudo nano .env
Update the following variables to match your server configuration:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=acpadmin
DB_USERNAME=acpadmin
DB_PASSWORD=NewStrongPass27
Generate an application key:
sudo php artisan key:generate
Finally, run the database migrations:
sudo php artisan migrate --seed
ACP Admin should now be accessible via your web browser at http://your_server_ip
. Use the following credentials to login:
Username: admin@admin.com
Password: admin
Congratulations! You have successfully installed ACP Admin on your Debian Latest server. You can now manage your servers and websites with ease.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!