The error message “Not starting nginx as it is disabled in config” in Plesk usually appears when the Nginx service is not enabled or disabled in the server setup. Let’s look into different ways to fix the error. At Bobcares, with our Plesk Hosting Support, we can handle your issues.
Overview
What is “Not starting nginx as it is disabled in config” error in Plesk?
This error message usually appears when the Nginx service is not enabled or disabled in the server setup. This can occur even if Nginx is enabled in the Plesk control panel. To overcome the issue “Not starting nginx as it is disabled in config” in Plesk, follow the below steps.
Steps to Fix the Error
1. Initially, we need to check the status of NGINX using the below code:
plesk sbin nginxmng -s
This shows whether NGINX is enabled or disabled.
2. Now, we need to disable and then re-enable NGINX. These commands are used to disable and re-enable Nginx for two purposes:
Reset config: Running these commands will reset the Nginx configuration to its default state, allowing us to fix any issues caused by erroneous config settings.
Make sure the correct enabling: After re-enabling Nginx, we may also be confident that it has been properly enabled and set to start successfully.
plesk sbin nginxmng --disable plesk sbin nginxmng --enable
3. We then use the following code to check the Nginx config files for syntax problems and misconfigurations.
nginx -t
4. Then, start the Nginx service as follows:
systemctl start nginx
The command begins the Nginx service, which begins listening for incoming requests and handles them as set.
5. Lastly, verify the service using the following command:
systemctl status nginx
The command displays the Nginx service’s current status, which shows whether it is working, stopped, or in a specific state.
[Want to learn more? Click here to reach us.]
Conclusion
The error suggests that Nginx is disabled in the Plesk settings, hence preventing it from starting. To sum up, we can easily resolve the issue and start Nginx successfully in Plesk with the above steps from our Experts.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments