Current time: 12-24-2024, 02:35 AM Hello There, Guest! (LoginRegister)


Post Reply 
Include /etc/apache2/ispcp
Author Message
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #1
Include /etc/apache2/ispcp
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
08-13-2008 05:14 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Include /etc/apache2/ispcp
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.
08-13-2008 05:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #3
RE: Include /etc/apache2/ispcp
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
08-13-2008 09:44 PM
Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #4
RE: Include /etc/apache2/ispcp
Just compared it to the RC6 version and the file looks the same. Strange
08-13-2008 10:56 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: Include /etc/apache2/ispcp
Here you can find last version of that (and any) file: http://www.isp-control.net/ispcp/browser...-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
(This post was last modified: 08-13-2008 11:05 PM by sci2tech.)
08-13-2008 11:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #6
RE: Include /etc/apache2/ispcp
sci2tech Wrote:Here you can find last version of that (and any) file: http://www.isp-control.net/ispcp/browser...-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
08-15-2008 08:26 AM
Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #7
RE: Include /etc/apache2/ispcp
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...
08-21-2008 06:18 PM
Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #8
RE: Include /etc/apache2/ispcp
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?
08-21-2008 06:49 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #9
RE: Include /etc/apache2/ispcp
It seem's, that some variables not correct set.
08-21-2008 08:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sander2930 Offline
Junior Member
*

Posts: 17
Joined: Feb 2007
Reputation: 0
Post: #10
RE: Include /etc/apache2/ispcp
any idea why the apache config file (ispcp.conf) doesn't get recreated? This would solve the problem.
08-21-2008 09:40 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)