Article directory
VestaCPYes support CentOS 7 system, open source and easy to useLinuxcontrol panel.
will get Internet marketingSomeone is using the VestaCP panel and suddenly encounters the problem of Apache Service PHP reporting a 500 error...
Enter the restart Apache service command in SSH▼
service httpd restart
After restarting Apache, the following error message appears▼
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
- turn onWordPressWebsite, PHP reports 500 error directly...
while entering the command systemctl status httpd.service
After that, the following error problems appeared again ▼
[root@ten ~]# systemctl status httpd.service * httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/httpd.service.d `-limits.conf Active: failed (Result: exit-code) since Mon 2018-05-14 20:22:29 +08; 1min 1s ago Process: 1633 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 1631 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 1631 (code=exited, status=1/FAILURE) May 14 20:22:28 CentOS systemd[1]: Starting The Apache HTTP Server... May 14 20:22:29 CentOS httpd[1631]: [Mon May 14 20:22:29.000941 2018] [so:warn] [pid 1631] AH01574: module ruid2_module is already loaded, skipping May 14 20:22:29 CentOS systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE May 14 20:22:29 CentOS kill[1633]: kill: cannot find process "" May 14 20:22:29 CentOS systemd[1]: httpd.service: control process exited, code=exited status=1 May 14 20:22:29 CentOS systemd[1]: Failed to start The Apache HTTP Server. May 14 20:22:29 CentOS systemd[1]: Unit httpd.service entered failed state. May 14 20:22:29 CentOS systemd[1]: httpd.service failed. [root@ten ~]# ^C
- This problem is very difficult, and if it is not solved quickly, it will inevitably affect theWeb Promotionperformance andSEOEffect……
The following is the solution to the 500 error reported by Apache Service PHP▼
Update VestaCP and restart the server
Step 1:Run the following command to update VestaCP ▼
v-update-sys-vesta-all
Step 2:Restart VestaCP ▼
service vesta restart
Step 3:Restart the server ▼
reboot
- Unexpectedly, after restarting the server, it will return to normal, haha!
What if the error cannot be resolved?
If the VestaCP panel is updated and the server is restarted, the problem of "Apache Service PHP reports a 500 error" cannot be resolved. It is recommended to reinstall the VestaCP panel.
Backup and reinstall VestaCP
Step 1:Backup your website and database
- The following uses the username admin as a reference.
SSH run the following command ▼
v-backup-user admin
- Once complete, a zip with date and time will be generated.
- For example: admin.year-month-day_hour-minute-second.tar
The backup package will be generated in this directory ▼
/home/backup
Step 2:directory will be backed up /home/backup
, copy to Google Drive
Copy the local backup directory /home/backup
Go to the backup directory where the network disk named gdrive is configured, and vice versa ▼
rclone copy /home/backup gdrive:backup
- Copy the backup file to Google Disk, need to installRclone.
Please refer to this tutorial for Rclone installation and usage ▼
Step 3:Reinstall the VestaCP panel
After backing up the website and database, delete the contents of the Linux server, and then reinstall the VestaCP panel ▼
Step 4:Restoring backup files
After reinstalling the VestaCP panel, restore the backup compressed package in the Google network disk to /home/backup
Catalog▼
rclone copy gdrive:backup /home/backup
Step 5:Enter the following restore command to restore ▼
v-restore-user admin admin.年-月-日_时-分-秒.tar
- admin.year-month-day_hour-minute-second.tar is the name of the backup archive.
If an error message appears ▼
-bash: v-restore-user: command not found
Please restart the server ▼
reboot
Then, execute the restore backup command.
For more VestaCP panel issues, you can see here ▼
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Restart/Reinstall VestaCP to Solve Apache Service PHP Report 500 Error", which is helpful to you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-744.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!