ispCP - Board - Support
[SOLVED]corupted apache configs - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: [SOLVED]corupted apache configs (/thread-11592.html)



[SOLVED]corupted apache configs - dwander - 09-04-2010 04:19 AM

i get error when adding anything to apache configs (manually, automatically)
Code:
get_tag() | ERROR: '# httpd Data BEGIN.
' ne '# httpd Data END.
', '# httpd Data BEGIN.
' or '# httpd Data END.
' missing in src !

is there some way, to repair configs ? maybee clearly regenerate, but i don't know how.


RE: corupted apache configs - vanshyr - 09-05-2010 09:06 PM

You should have a backup of configuration files in /etc/ispcp/apache

(09-04-2010 04:19 AM)dwander Wrote:  i get error when adding anything to apache configs (manually, automatically)
Code:
get_tag() | ERROR: '# httpd Data BEGIN.
' ne '# httpd Data END.
', '# httpd Data BEGIN.
' or '# httpd Data END.
' missing in src !

is there some way, to repair configs ? maybee clearly regenerate, but i don't know how.



RE: corupted apache configs - dwander - 09-05-2010 09:11 PM

(09-05-2010 09:06 PM)vanshyr Wrote:  You should have a backup of configuration files in /etc/ispcp/apache

so, if iam copy some old backup to working, and then set all domains, subdomains and aliases to change, and run request manager, should it reapair itself ?


RE: corupted apache configs - vanshyr - 09-06-2010 06:39 PM

Yes, you should have a copy of your last working apache configs in /etc/ispcp/apache

In the backup directory inside apache directory you have, backups of virtual domains before last change. You can try to restore the data from there.

By the way, do backups of your current configuration before do any change (always is good to make aditional backup Tongue)

Regards!

(09-05-2010 09:11 PM)dwander Wrote:  
(09-05-2010 09:06 PM)vanshyr Wrote:  You should have a backup of configuration files in /etc/ispcp/apache

so, if iam copy some old backup to working, and then set all domains, subdomains and aliases to change, and run request manager, should it reapair itself ?



RE: corupted apache configs - dwander - 09-07-2010 07:10 AM

thank you very much ... i mus take very old backups to make configs valid, but it worked :-) THX


RE: corupted apache configs - TechJack - 09-11-2010 12:41 AM

Yikes, I have to remember to always make config backups before changing anything. I'm glad this thread alerted me to that. Its kind of a pain when you need to use really old backups and try to remember all the tweakings you had already done in the meantime.