ispCP - Board - Support
[SOLVED] Remake apache2 ispcp.conf - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] Remake apache2 ispcp.conf (/thread-11851.html)



[SOLVED] Remake apache2 ispcp.conf - suw - 10-11-2010 11:46 PM

Hello
I have over 300 domains and subdomains on my ISPCP.
I need to re-make apache's ispcp.conf because on the prior versions I have no fcgid and lot of php4 settings which I don't need them any more.

Is there a way to re-build ONLY the apache's ispcp.conf file, some domains has custom settings in DNS manually changed and I don't want to change those settings (different mails, Domain Keys, ip's), since prior versions didn't had the DNS Zonde record Editor, setting all domains on change and restarting ispcp-rqst-mngr will overwrite the manual settings I've made in the last few years so this is not an option.

Maybe a separate script for this?


RE: Remake apache2 ispcp.conf - kilburn - 10-12-2010 12:28 AM

IMHO the easiest way is to just make backups of anything you've changed (php.ini files, named zone files, etc..) and let the panel rewrite everything. Afterwards, you just need to restore the backups and that's it.


RE: Remake apache2 ispcp.conf - suw - 10-12-2010 12:55 AM

Thank you for your post, but if domains are changed, also DNS are changed with serials and then It will be hard to put in DNS config with old serials, - this means I'll have to change all serials in my DNS either manually or from a script.

I tought I can change only httpd config file - /etc/apache2/sites-available/ispcp.conf which seems much easier than messing up with DNS


RE: Remake apache2 ispcp.conf - kilburn - 10-12-2010 03:21 AM

Assuming that you've a scondary name server, you can block named ports on the primary one using iptables until after you've updated the whole thing and restored the old zone files. I did it this way and it worked fine.


RE: Remake apache2 ispcp.conf - suw - 10-12-2010 04:58 AM

good ideea - thank you - I'll do it this way!