VestaCP Free Hosting Control Panel

VestaCP Free Hosting Control Panel

Reset VestaCP admin password
MySQL root password in VestaCP
Change Server Hostname in VestaCP
VestaCP SSL for mail server
VestaCP redirect webmail to HTTPS
VestaCP Update
Install PHP 7 on CentOS VestaCP

VestaCP Free Hosting Control Panel

You can login to VestaCP at

phpMyAdmin available at

http://YOUR-IP-ADDR/phpmyadmin/

You can see phpMyAdmin Nginx config at /etc/nginx/conf.d/phpmyadmin.inc

Web Site DocumentRoot

Web sites are stored in folder

Log Files

/var/log/nginx/domains/ => stores Nginx Access and error logs for hosted web sites.

Configuration Files

php-fpm configurations for each web sites are stored in /etc/php-fpm.d/DOMAIN.conf, each web sites runs php-fpm in its own pool. Here is sample config

Apache/Nginx configuration in folder : /home/admin/conf/web (admin is user, if you have other users, check folder for the user)

VestaCP Installer Compromised

See Hosting Control Panel

Find MySQL socket

Install PHP 7.1 php-fpm from source

Lets install the requirements.

On CentOS, run

Before you can install, you need to check MySQL socket location. To do this, run following command in MySQL command prompt.

Find MySQL socket

Download and install PHP 7.1 from source

Copy the configuration files

Now you will be able to start php-fpm by running

By default php-fpm will run using tcp port 9000, it is better to change it to use unix socket, for this

Find

Replace with

php-fpm user

You need to configure the user account used to run php-fpm, if you don’t use proper account, you may get permission errors.

The account you use vary depending on OS, Web server. For example, nginx use account nginx. Apache on Ubuntu/Debian use www-data. Apache on CentOS use nobody.

Here is what i have on a server running Nginx web server

Systemd Service

To easily manage php-fpm, lets create a php-fpm.service file.

Before we do this, edit

Find

Add below

Find

Add below

Save and exit.

Now lets create file /usr/lib/systemd/system/php-fpm.service

Add following content

Enable php-fpm with

Now you will be able to use systemctl to start/stop/restart php-fpm

systemctl status php-fpm