====== Howto regenerate the config files (since ispCP 1.0.3) ====== Since version 1.0.3, ispCP provides an update script that can be used both for migrate to a new ispCP version and for regenerate all configuration files such as apache vhost files, bind files... This is utile when you have completely destroyed your system by changing manually one or more configuration files and that your system is in unworkable state. When you run the ispcp-update script, all your manually changes are removed and then, all configuration files are regenerated by using ispCP default package configuration files templates. Note that if you have changed manually the ispCP templates, you should take care about possible syntax errors. To regenerate all your configuration files, you must process like this: # cd /var/www/ispcp/engine/setup # perl ispcp-update ====== Howto regenerate the config files (ispCP versions prior to 1.0.3) ====== Modifying the template files in parts/ is not enough to apply the modification to existing domains. The config files of the affected services have to be regenerated. The following steps will guide you through the process \\ ===== 1. Stop ispCP daemon ===== # /etc/init.d/ispcp_daemon stop \\ ===== 2. Log into MySQL ===== mysql -u root -p It will prompt for the password. \\ ===== 3. Set to regenerate ===== In the mysql promtp enter: USE ispcp; \\ To regenerate all the domains configs: UPDATE `domain` SET `domain_status` = 'change' WHERE `domain_status` = 'ok'; To regenerate all the subdomains configs: UPDATE `subdomain` SET `subdomain_status` = 'change' WHERE `subdomain_status` = 'ok'; To regenerate all the aliases configs: UPDATE `domain_aliasses` SET `alias_status` = 'change' WHERE `alias_status` = 'ok'; To regenerate all aliases subdomain configs: UPDATE `subdomain_alias` SET `subdomain_alias_status` = 'change' WHERE `subdomain_alias_status` = 'ok'; To regenerate all the emails configs: UPDATE `mail_users` SET `status` = 'change' WHERE `status` = 'ok'; \\ ===== 4. Quit mysql ===== quit \\ ===== 5. Process the request ===== # /var/www/ispcp/engine/ispcp-rqst-mngr \\ ===== 6. Start ispCP Daemon ===== # /etc/init.d/ispcp_daemon start