VestaCP Important File and Directory Paths
A quick reference for the most commonly needed file and directory paths in a VestaCP installation. Use these paths when editing configuration, troubleshooting, or automating tasks.
Key File Locations
| Resource | Path |
|---|---|
| MySQL root password | /usr/local/vesta/conf/mysql.conf |
| PHP ini (Apache, PHP 5) | /etc/php5/apache2/php.ini |
| PHP ini (PHP 7, Ubuntu) | /etc/php/7.x/apache2/php.ini |
| Hosts file | /etc/hosts |
| Hostname (CentOS/RHEL) | /etc/sysconfig/network |
| Hostname (Ubuntu) | /etc/hostname |
| Apache error logs | /var/log/apache2/domains/ |
| Nginx error logs | /var/log/nginx/domains/ |
| Exim mail log | /var/log/exim4/mainlog |
| VestaCP log | /var/log/vesta/ |
| VestaCP CLI binaries | /usr/local/vesta/bin/ |
| VestaCP global config | /usr/local/vesta/conf/vesta.conf |
| User web config | /usr/local/vesta/data/users/USERNAME/web.conf |
| User home / public web root | /home/USERNAME/web/DOMAIN/public_html/ |
| Per-domain web config | /home/USERNAME/conf/web/ |
| Per-domain mail config | /home/USERNAME/conf/mail/ |
| Nginx templates | /usr/local/vesta/data/templates/web/nginx/ |
| Apache templates | /usr/local/vesta/data/templates/web/apache2/ |
| SSL certificates (panel) | /usr/local/vesta/ssl/ |
Apply Hostname Changes
After editing the hostname file, restart networking to apply the change:
service network restart # CentOS/RHEL
hostname -F /etc/hostname # Ubuntu/Debian
Notes
- PHP ini paths vary by PHP version and distro. Use
php --inito confirm the active file. - All VestaCP CLI commands are prefixed with
v-and live in/usr/local/vesta/bin/.