После установки панели и перезагрузки сервера, vestacp не запускается должным образом.
[root@ams3 log]# systemctl status vesta.service ● vesta.service - SYSV: Run vesta web server Loaded: loaded (/etc/rc.d/init.d/vesta; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2020-01-19 23:12:23 EET; 1min 20s ago Docs: man:systemd-sysv-generator(8) Process: 6018 ExecStart=/etc/rc.d/init.d/vesta start (code=exited, status=1/FAILURE) Jan 19 23:12:23 ams3.alexnettm.com systemd[1]: Starting SYSV: Run vesta web server... Jan 19 23:12:23 ams3.alexnettm.com vesta[6018]: Starting vesta-nginx: nginx: [alert] could not open error log file: open() "/usr/local/vesta/nginx/logs/error.log" failed (30: Read-only file system) Jan 19 23:12:23 ams3.alexnettm.com vesta[6018]: 2019/11/01 09:31:19 [emerg] 6024#0: open() "/usr/local/vesta/log/nginx-error.log" failed (30: Read-only file system) Jan 19 23:12:23 ams3.alexnettm.com vesta[6018]: [FAILED] Jan 19 23:12:23 ams3.alexnettm.com systemd[1]: vesta.service: control process exited, code=exited status=1 Jan 19 23:12:23 ams3.alexnettm.com systemd[1]: Failed to start SYSV: Run vesta web server. Jan 19 23:12:23 ams3.alexnettm.com systemd[1]: Unit vesta.service entered failed state. Jan 19 23:12:23 ams3.alexnettm.com systemd[1]: vesta.service failed.
Решение проблемы:
sudo mount -o remount,rw /dev/vda1 /
/dev/vda1 Нужно изменить букву диска, используемую вашей текущей системой.
Посмотреть можно командой «df -h»
[root@ams3 log]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 473M 0 473M 0% /dev tmpfs 496M 0 496M 0% /dev/shm tmpfs 496M 51M 446M 11% /run tmpfs 496M 0 496M 0% /sys/fs/cgroup /dev/vda1 25G 12G 14G 48% / tmpfs 100M 0 100M 0% /run/user/0
Теперь пробуем перезапустить vestacp и видим, что панель успешно запущена.
[root@ams3 log]# systemctl restart vesta [root@ams3 log]# systemctl status vesta.service ● vesta.service - SYSV: Run vesta web server Loaded: loaded (/etc/rc.d/init.d/vesta; bad; vendor preset: disabled) Active: active (running) since Sun 2020-01-19 23:22:20 EET; 10min 29s ago Docs: man:systemd-sysv-generator(8) CGroup: /system.slice/vesta.service ├─ 1508 nginx: master process /usr/local/vesta/nginx/sbin/vesta-ng... ├─ 1510 nginx: worker process ├─ 1514 php-fpm: master process (/usr/local/vesta/php/etc/php-fpm.... ├─ 1515 php-fpm: pool www ├─ 1516 php-fpm: pool www └─26208 php-fpm: pool www Jan 19 23:22:20 ams3.alexnettm.com systemd[1]: Starting SYSV: Run vesta web .... Jan 19 23:22:20 ams3.alexnettm.com vesta[1501]: Starting vesta-nginx: [ OK ] Jan 19 23:22:20 ams3.alexnettm.com vesta[1501]: Starting vesta-php: [ OK ] Jan 19 23:22:20 ams3.alexnettm.com systemd[1]: Started SYSV: Run vesta web s.... Hint: Some lines were ellipsized, use -l to show in full.