• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved error when delete a domain

fferraro87

Basic Pleskian
Hi,

everytime that i delete a domain i've this error on my plesk panel :
Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/vhosts/test.it.conf: No such file or directory . 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. See the details in Configuration Troubleshooter

i've try to follow this tutorial : Apache configuration is corrupted: New files of configuration for Apache web server were not built due to errors in configuration templates

but everytime i always same error and didn't works this solution for me.
The workaround is create again the hosting.

How can i fix?
 
When this error occurs, could you please check these two things:
1) Open Configuration Trouble Shooter and look for error lines. Are there any besides the error message that will probably still be display on top? Or are all configuraton lines green (=free of errors)
2) When you run
# apachectl -t
on the Linux console, does the utility return any errors or does it return a "Syntax OK"?
 
When this error occurs, could you please check these two things:
1) Open Configuration Trouble Shooter and look for error lines. Are there any besides the error message that will probably still be display on top? Or are all configuraton lines green (=free of errors)
2) When you run
# apachectl -t
on the Linux console, does the utility return any errors or does it return a "Syntax OK"?

On the configuration Troubleshooter i've many errors about missing .conf for every vhost that i've deleted before like you can see on screenshot attached.

apachectl -t return nothing on console.

Thanks for your help.
 

Attachments

  • screen.png
    screen.png
    104.4 KB · Views: 3
I think one possible approach to this issue is to (in this order)
1) First repair all database issues by running
# plesk repair db -y
2) Repair possible virtual host permission issues by running
# /usr/local/psa/bin/repair --restore-vhosts-permissions
3) Third run configuration trouble shooter and repair the broken entries. There is a menu entry for that (Rebuild > Broken).

I am not sure what is causing the problem. Where the domains in question migrated from another server? In that case it could be New configuration files were not created: Could not open configuration file : No such file or directory .
 
yeah thanks, it was because this domains are migrated from another plesk server. So i fix this problem with this last link .
Thanks again
 
Back
Top