VestaCP (Vesta Control Panel) is a free, lightweight, and powerful web hosting control panel that allows you to manage websites, domains, email accounts, databases, and DNS on a VPS or dedicated server.
Before installing VestaCP, ensure your server meets the following requirements:
Before installing, update your system:
sudo apt update && sudo apt upgrade -y # Ubuntu/Debian
sudo yum update -y # CentOS
Run the VestaCP installer:
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh
The script will ask for:
After installation, access the panel via:
https://your-server-ip:8083
Default Login Credentials:
If your VestaCP server is slow, apply these optimizations:
Edit PHP settings:
nano /etc/php/7.4/apache2/php.ini # Ubuntu/Debian
nano /etc/php.ini # CentOS
Modify these values:
memory_limit = 512M
max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 128M
Restart Apache:
systemctl restart apache2
Install Redis or Memcached:
sudo apt install redis-server -y
sudo systemctl enable redis
Configure PHP:
echo "extension=redis.so" >> /etc/php/7.4/apache2/php.ini
systemctl restart apache2
Edit MySQL config:
nano /etc/mysql/my.cnf
Add:
[mysqld]
innodb_buffer_pool_size=512M
query_cache_size=128M
max_connections=200
Restart MySQL:
systemctl restart mysql
Now your VestaCP server will perform better!
| Step | Action |
|---|---|
| Install VestaCP | Run bash vst-install.sh |
| Access Panel | Go to https://your-server-ip:8083 |
| Choose Hosting | Use VPS (small projects) or Dedicated (large projects) |
| Optimize Performance | Enable caching, increase PHP limits, optimize MySQL |
Now your VestaCP hosting is set up and running!