Applicable to:
- Plesk for Linux
Symptoms
-
The Plesk GUI is accessible, however an error that is similar to the following can be seen on the home page:
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] invalid port in upstream "127.0.0.1:" in /etc/nginx/plesk.conf.d/vhosts/example.com.conf:131 nginx: configuration file /etc/nginx/nginx.conf test failed See the details in Configuration Troubleshooter. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
- Attempts to rebuild the broken configuration files fail
- The Seafile extension is either installed currently or was installed on this server previously.
Cause
The reconfiguration of the nginx web server fails due to invalid configuration in /opt/psa/admin/plib/modules/seafile/library/Domain.php, which is provided by the Seafile extension.
The root cause of the issue is either a partially present Seafile installation or a corrupted Seafile installation.
Resolution
- Connect to the Plesk server via SSH
- Either remove completely or reinstall the Seafile extension
- Rebuild the broken web server configuration files
Alternatively, you may rename the Seafile template in order to deactivate it by using the following command:
# mv /opt/psa/admin/plib/modules/seafile/library/Domain.php{,.backup
After renaming the file, you will be able to rebuild the broken web server configuration files
Comments
Please sign in to leave a comment.