ispCP - Board - Support
Include /etc/apache2/ispcp - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Include /etc/apache2/ispcp (/thread-4027.html)

Pages: 1 2


Include /etc/apache2/ispcp - sander2930 - 08-13-2008 05:14 PM

Hi,

I place this in the forum and not in the bugtracker because I'm still using RC5 so maybe this has been fixed already.

When a user creates a domain alias it doesn't create the file "/etc/apache2/ispcp/nameofsubdomain.conf".

And because its gets included in the apache config file, apache fails to restart because of non existing file.

I tried locating where the file needs to get created but can't find it.

Can someone tell me where this happens so I can take a look to see whats going wrong.


Thanks,

Sander


RE: Include /etc/apache2/ispcp - kilburn - 08-13-2008 05:57 PM

Quote:I place this in the forum and not in the bugtracker because I'm still using RC5 so maybe this has been fixed already.
Lastest trunk doesn't have this problem here, but I don't really know if it was in RC5.

Quote:I tried locating where the file needs to get created but can't find it.
You just said it, execute: "touch /etc/apache2/ispcp/alias.tld.conf"

Quote:Can someone tell me where this happens so I can take a look to see whats going wrong.
Take a look to the "/var/www/ispcp/engine/ispcp-als-mgr" script.


RE: Include /etc/apache2/ispcp - sander2930 - 08-13-2008 09:44 PM

kilburn Wrote:
Quote:I place this in the forum and not in the bugtracker because I'm still using RC5 so maybe this has been fixed already.
Lastest trunk doesn't have this problem here, but I don't really know if it was in RC5.

Quote:I tried locating where the file needs to get created but can't find it.
You just said it, execute: "touch /etc/apache2/ispcp/alias.tld.conf"

Quote:Can someone tell me where this happens so I can take a look to see whats going wrong.
Take a look to the "/var/www/ispcp/engine/ispcp-als-mgr" script.

With the locating part I ment where it makes this file. And indeed it was ispcp-als-mgr but I can't really see if everything goes ok or not.

I have:

if ( ! -e "$main::cfg{'APACHE_CUSTOM_SITES_CONFIG_DIR'}/$als_name.conf" ){
$rs = store_file(
"$main::cfg{'APACHE_CUSTOM_SITES_CONFIG_DIR'}/$als_name.conf",
$als_custom,
$main::cfg{'ROOT_USER'},
$main::cfg{'ROOT_GROUP'},
0644
);
return $rs if ($rs != 0);
}
push_el(\@main::el, 'gen_httpd_als_entry()', "\n$als_result_entry");
return (0, $als_result_entry);
}


Can someone compare if this is the same in your own version? Or could there be another reason why it doesn't create those files?

Sander


RE: Include /etc/apache2/ispcp - sander2930 - 08-13-2008 10:56 PM

Just compared it to the RC6 version and the file looks the same. Strange


RE: Include /etc/apache2/ispcp - sci2tech - 08-13-2008 11:04 PM

Here you can find last version of that (and any) file: http://www.isp-control.net/ispcp/browser/trunk/engine/ispcp-als-mngr.
I did not see any difference and it should work ok.
Please set DEBUG = 1 in /etc/ispcp/ispcp.conf, stop ispcp daemon (/etc/init.d/ispcp_daemon stop) add a alias as a customer approve as a reseller then manually run /var/www/ispcp/engine/ispcp-rqst-mgr.
Put here the output and the resulting /var/log/ispcp/ispcp_als_mngr_stdout and /var/log/ispcp/ispcp_als_mngr_stderr.
After that you may want to restart daemon /etc/init.d/ispcp_daemon start


RE: Include /etc/apache2/ispcp - sander2930 - 08-15-2008 08:26 AM

sci2tech Wrote:Here you can find last version of that (and any) file: http://www.isp-control.net/ispcp/browser/trunk/engine/ispcp-als-mngr.
I did not see any difference and it should work ok.
Please set DEBUG = 1 in /etc/ispcp/ispcp.conf, stop ispcp daemon (/etc/init.d/ispcp_daemon stop) add a alias as a customer approve as a reseller then manually run /var/www/ispcp/engine/ispcp-rqst-mgr.
Put here the output and the resulting /var/log/ispcp/ispcp_als_mngr_stdout and /var/log/ispcp/ispcp_als_mngr_stderr.
After that you may want to restart daemon /etc/init.d/ispcp_daemon start

Just to followup, I did the debug thing but everything worked fine. Can't seem to simulate it again... lets hope it stays that way


Thanks for the help anyway! Smile


RE: Include /etc/apache2/ispcp - sander2930 - 08-21-2008 06:18 PM

Ok. I got the error again and this time a found the problem.

When I try a subdomain that was original created with vhcs it fails. It delete the .conf file in /etc/apache2/ispcp/ but it doesn't remove the entry in sites-enabled/ispcp.conf

debug log:

DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUB_NAME}' eq '{SUB_NAME}', missing '{SUDEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUB_NAME}' eq '{SUB_NAME}', missing '{SUB_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUB_NAME}' eq '{SUB_NAME}', missing '{SUB_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
B_NAME}' in src !DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUB_NAME}' eq '{SUB_NAME}', missing '{SUB_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Ending...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUB_NAME}' eq '{SUB_NAME}', missing '{SUB_NAME}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{IP}' eq '{IP}', missing '{IP}' in src !
DEBUG: push_el() sub_name: repl_var(), msg: Ending...
DEBUG: push_el() sub_name: repl_var(), msg: Starting...
DEBUG: push_el() sub_name: repl_tag(), msg: Starting...
DEBUG: push_el() sub_name: get_tag(), msg: Starting...


RE: Include /etc/apache2/ispcp - sander2930 - 08-21-2008 06:49 PM

I tried deleting the ispcp.conf file for apache, but it doesn't create the file back

I've tried setting the statusses to "change" and "toadd", but it doesn't create them again.

Do I mis something?


RE: Include /etc/apache2/ispcp - gOOvER - 08-21-2008 08:35 PM

It seem's, that some variables not correct set.


RE: Include /etc/apache2/ispcp - sander2930 - 08-21-2008 09:40 PM

any idea why the apache config file (ispcp.conf) doesn't get recreated? This would solve the problem.