• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Config Files Vanished

EricHamby

Basic Pleskian
Got 3 servers all running Plesk. Got up this morning with one server not showing any domains. The server panel works fine but no websites are coming up.

The panel is showing me this error.

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: 2013-12-17T06:01:29-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-17T06:01:29-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-17T06:01:29-08:00 ERR (3) [panel]: Apache config (13872888890.11148700) generation failed: Template_Exception: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 68 code: 0 nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed


Here is the intodns report on one of the domains. http://www.intodns.com/binofblocks.com
 
Hello,

I can see there is an issues with the httpd config file and due to that you are getting this issues. Please check your httpd config file through following command and try to rebuild it

Check httpd file

Code:
httpd -t

Rebuild httpd config

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all


Thank you..!
 
Hello,

I can see there is an issues with the httpd config file and due to that you are getting this issues. Please check your httpd config file through following command and try to rebuild it

Check httpd file

Code:
httpd -t

Rebuild httpd config

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all


Thank you..!

I get this.


[root@server1 ~]# httpd -t
Syntax OK
[root@server1 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: 2013-12-17T09:55:12-08:00 ERR (3) [util_exec]: proc_close() failed
2013-12-17T09:55:12-08:00 ERR (3) [util_exec]: proc_close() failed
2013-12-17T09:55:12-08:00 ERR (3) [panel]: Apache config (13873029110.76314100) generation failed: Template_Exception: nginx: [emerg] open() "/etc/nginx/nginx. conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed


[root@server1 ~]#
 
The panel is showing me this error.

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: 2013-12-17T06:01:29-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-17T06:01:29-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-17T06:01:29-08:00 ERR (3) [panel]: Apache config (13872888890.11148700) generation failed: Template_Exception: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 68 code: 0 nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed

I get this:

Code:
[root@server1 ~]# httpd -t
Syntax OK
[root@server1 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: 2013-12-17T09:55:12-08:00 ERR (3) [util_exec]: proc_close() failed
2013-12-17T09:55:12-08:00 ERR (3) [util_exec]: proc_close() failed
2013-12-17T09:55:12-08:00 ERR (3) [panel]: Apache config (13873029110.76314100) generation failed: Template_Exception: nginx: [emerg] open() "/etc/nginx/nginx. conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
[B][COLOR="#FF0000"]nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed[/COLOR][/B]
Hey, Eric:

First things first: Does the file /etc/nginx/nginx.conf exist?
 
Eric:

Try the commands...

Code:
locate nginx.conf
ls -al /etc/nginx.conf
...and post the results here.


Ok here is my results.

[root@server1 ~]# locate nginx.conf
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
[root@server1 ~]# ls -al /etc/nginx.conf
ls: cannot access /etc/nginx.conf: No such file or directory
[root@server1 ~]#
 
#user nginx;
worker_processes 1;

#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;

#pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;

#gzip on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";

server_tokens off;

include /etc/nginx/conf.d/*.conf;
}

Thats the nginx.conf file.
 
This doesnt seem to be working either. Site has been down for over 2 days now i have got to get this up and going. Any other ideas?

Still getting this error when trying to regenerate the files has it suggests.


Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: 2013-12-18T08:45:46-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-18T08:45:46-08:00 ERR (3) [util_exec]: proc_close() failed 2013-12-18T08:45:46-08:00 ERR (3) [panel]: Apache config (13873851460.17184300) generation failed: Template_Exception: nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /etc/nginx/plesk.conf.d/webmail.conf:8 nginx: configuration file /etc/nginx/nginx.conf test failed file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 68 code: 0 nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /etc/nginx/plesk.conf.d/webmail.conf:8 nginx: configuration file /etc/nginx/nginx.conf test failed
 
Hi Eric,

nginx...


I wasnt aware that was a feature im sorry lol.

Ok i went to services and turned it off. Nothing changed. Went to see if i could un install it all together and the "https://24.234.XX.XX:8447/add_components.html" page wont even work.

When viewing the home page of the panel i get this.

"New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /etc/nginx/plesk.conf.d/vhosts/XXX.com.conf:9 nginx: configuration file /etc/nginx/nginx.conf test failed . The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files."

This time however clicking "resolve the issues and click here to generate broken configuration files once again" is a success or clicking "or here to generate all configuration files" is also a success. However i am still getting the main error above. I have even removed the subscription to the domain listed in the rror above and im still getting the same error.
 
Hi Eric,

try to uninstall it via SSH/Console using /usr/local/psa/admin/bin/autoinstaller
There you should be able to uninstall it.

Afterwards reinstall it.
 
Have you tried to fix this nginx config error with

# /usr/local/psa/bin/reconfigurator --autoconfigure
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
# /etc/init.d/nginx restart

?
 
Back
Top