- Plesk for Linux
Nginx is running fine and its configuration is successful:
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
A similar to the below error message appears on the Home page in Plesk
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [warn] conflicting server name "example.com" on 203.0.113.2:80, ignored nginx: [emerg] open() "/var/www/vhosts/system/example.com/logs/proxy_access_log" failed (24: Too many open files) nginx: configuration file /etc/nginx/nginx.conf test failed
The following command returns a non-empty result:
# plesk db "select description from Configurations where status <> 'ok'\G"
The issue with web-server configuration has been previously fixed, but the Plesk database still contains old error messages.
- Connect to the server via SSH.
Create folder for temporary used files:
# mkdir -p /tmp/plesksupport
Create file with other affected domains:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -Ne"select name from domains where id in (select objectId from Configurations where status<>'ok')" > /tmp/plesksupport/domainlist.txt
Reconfigure other affected domains:
# cat /tmp/plesksupport/domainlist.txt | while read domain; do /usr/local/psa/admin/bin/httpdmng --reconfigure-domain $domain; echo "$domain - success"; done
# /usr/local/psa/admin/bin/httpdmng --reconfigure-server