ispCP - Board - Support
Error after regenerate configs - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: Error after regenerate configs (/thread-7447.html)



Error after regenerate configs - tuxStyle - 08-10-2009 06:04 AM

My VPS went boom so, i've got another one from a different company.

Now, i'm trying to import everything from backups.
I imported the last SQL dump from ispcp and after i regenerate config files i get this error and apaches is not running.
Code:
Restarting web server: apache2apache2: Syntax error on line 285 of /etc/apache2/apache2.conf: Syntax error on line 1186 of /etc/apache2/sites-enabled/ispcp.conf: Could not open configuration file /etc/apache2/{MODS_DIR}/fcgid_ispcp.conf: No such file or directory
failed!

Seems that MODS_DIR is not replaced together with the all variables.
Unfortunately i have no idea where to look and fix this.

I'm using the last SVN version.

Also, one more question, after import, password/shadow files are not regenerated right (vu2xxx)?


RE: Error after regenerate configs - tomdooley - 08-10-2009 06:51 AM

These are two different problems. I can say something to the first problem (apache error message): Seems I missed some entry in one of the ispcp-xxx-mngr (e.g. ispcp-dmn-mngr) in r1886. Could you please create a new ticket for this? Please also tell us, which distribution you use.


RE: Error after regenerate configs - tuxStyle - 08-10-2009 06:59 AM

I don't know how/where to create ticket Smile
I'm using Debian 5


RE: Error after regenerate configs - tomdooley - 08-10-2009 07:08 AM

OK, i'll have this in my mind. Hope to fix it the next two days. Your solution for now can be: checkout revision 1885. Thats the release before my changes to fcgid.


RE: Error after regenerate configs - tuxStyle - 08-10-2009 07:29 AM

Thanks.
I'll try now.

By the way, seems that this OpenVZ makes me problems Tongue
Not enough memory ... dunno why, with XEN was enough.

Where i can find a tutorial top optimize ispCP in terms of resources?


RE: Error after regenerate configs - tuxStyle - 08-10-2009 08:51 AM

Ok, with 1885 i don't have this issue but something else is wrong:

1. named.conf is not regenerated (i changed the template to add allow-transfer)
2. serial in zones is not incremented.


Edit, i think i found out why.
After i regenerate the files and check the domains table i see this:

Code:
mysql> select domain_name, domain_status from domain;
+------------------------+-----------------------------------------------------------------------------------------------------+
| domain_name            | domain_status                                                                                       |
+------------------------+-----------------------------------------------------------------------------------------------------+
| sync.uni.cc            | setfmode() | ERROR: File '/var/www/virtual/sync.uni.cc/errors/inc/.svn' does not exist !            |
| activestyle.ca         | setfmode() | ERROR: File '/var/www/virtual/activestyle.ca/errors/inc/.svn' does not exist !         |
| gallery.activestyle.ca | setfmode() | ERROR: File '/var/www/virtual/gallery.activestyle.ca/errors/inc/.svn' does not exist ! |
| bits.activestyle.ca    | setfmode() | ERROR: File '/var/www/virtual/bits.activestyle.ca/errors/inc/.svn' does not exist !    |
| activestyle.uni.cc     | setfmode() | ERROR: File '/var/www/virtual/activestyle.uni.cc/errors/inc/.svn' does not exist !     |
| code.activestyle.ca    | setfmode() | ERROR: File '/var/www/virtual/code.activestyle.ca/errors/inc/.svn' does not exist !    |
| xstyle.eu.org          | setfmode() | ERROR: File '/var/www/virtual/xstyle.eu.org/errors/inc/.svn' does not exist !          |
+------------------------+-----------------------------------------------------------------------------------------------------+
7 rows in set (0.00 sec)

Why?


RE: Error after regenerate configs - BeNe - 08-10-2009 06:30 PM

You use the svn-checkout and did not deleted the .svnfolders.
Please remove the .svn like this:
Code:
rm -fR `find /var/www/ispcp/ -type d -name '.svn'`

Or delete them manually.

Greez BeNe


RE: Error after regenerate configs - tuxStyle - 08-11-2009 12:02 AM

I gave up last night and created all active accounts by hand (domain, sql, ftp).


RE: Error after regenerate configs - tuxStyle - 09-06-2009 12:21 PM

Me again Smile

My VPS provider did it again so, i had to reinstall everything.
I have backups so, i was a little lucky but now when i try to regenerate the configs i have the same problems i had a month ago:
Code:
mysql> select domain_status from domain;
+--------------------------------------------------------------------------------------------------+
| domain_status                                                                                    |
+--------------------------------------------------------------------------------------------------+
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
| repl_tag() | ERROR: Undefined template replacement data in repl_var: {BASE_SERVER_VHOST_PREFIX}! |
+--------------------------------------------------------------------------------------------------+
6 rows in set (0.00 sec)

What is happening with this script?


RE: Error after regenerate configs - sci2tech - 09-06-2009 06:13 PM

BASE_SERVER_VHOST_PREFIX is missing from your ispcp.conf Please check.