Strange Problem With ispcp.conf - grg - 07-29-2009 06:25 PM
Hi,
yesterday i had modified a DNS zone file.
Due to some errors, i decided to restore it. So i've removed the file and followed this tutorial:
http://isp-control.net/documentation/howto/ispcp/regenerate_config
(I've regenerated ALL config files).
Then i've added a subdomain, that was not reachable. After some minutes of debugging, ii've found the problem: the subdomain entry was completely missing in /etc/apache2/sites-enabled/ispcp.conf. I've also noticed that this ispcp.conf contains all entries 2 times. Now, don't know if this happens from the recreation of all configs or before.
If i try to add subdomains, aliases, or new domains, the ispcp.conf file isn't modified and this is very strange.
Those are its permissions:
Code:
SRV:/etc/apache2/sites-enabled# ls -lha
total 32K
drwxr-xr-x 2 root root 4.0K 2009-07-28 16:01 .
drwxr-xr-x 8 root root 4.0K 2009-07-17 20:26 ..
-rw-r--r-- 1 root root 2.8K 2009-07-27 16:41 00_master.conf
-rw-r--r-- 1 root root 18K 2009-07-28 16:01 ispcp.conf
SRV:/etc/apache2/sites-enabled#
I've also tired to set it to chmod 777, but nothing changes.
Thankyou guys
RE: Strange Problem With ispcp.conf - joximu - 07-29-2009 07:52 PM
Code:
-rw-r--r-- 1 root root 18K 2009-07-28 16:01 ispcp.conf
is correct...
try to regenerate (change) only the subdomains/aliases etc.
I did sometime see that a subdomain is gone after "regenerating" a domain.
Otherwise a deeper look in the ispcp.conf may help (are there any subdomains/aliases listed)
/J
RE: Strange Problem With ispcp.conf - grg - 07-29-2009 08:06 PM
(07-29-2009 07:52 PM)joximu Wrote:
Code:
-rw-r--r-- 1 root root 18K 2009-07-28 16:01 ispcp.conf
is correct...
I know
Quote:try to regenerate (change) only the subdomains/aliases etc.
Done, no results
Quote:Otherwise a deeper look in the ispcp.conf may help (are there any subdomains/aliases listed)
Here it is:
(just substituted my domain (test.com for example) with __MY_DOMAIN__ and my ip with __MY_IP__)
Code:
# httpd Data BEGIN.
#
# wget-hack prevention
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>
#
# Log processing.
#
LogFormat "%B" traff
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog
CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"
#
# mod_cband configuration
#
<IfModule mod_cband.c>
CBandScoreFlushPeriod 10
CBandRandomPulse On
</IfModule>
#
# let the customer decide what charset he likes to use
#
AddDefaultCharset Off
#
# Header End
#
# httpd [with __MY_IP__] virtual host entry BEGIN.
NameVirtualHost with __MY_IP__:80
# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [__MY_DOMAIN__] dmn group entry BEGIN.
<IfModule mod_cband.c>
<CBandUser __MY_DOMAIN__>
# CBandUserLimit 0Mi
# CBandUserScoreboard /var/www/scoreboards/__MY_DOMAIN__
# CBandUserPeriod 4W
# CBandUserPeriodSlice 1W
# CBandUserExceededURL http://admin.__MY_DOMAIN__/errors/bw_exceeded.html
</CBandUser>
</IfModule>
# httpd [archivio.__MY_DOMAIN__] sub entry BEGIN.
<VirtualHost with __MY_IP__:80>
#
#User vu2001
#Group vu2001
#
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/archivio/htdocs
ServerName archivio.__MY_DOMAIN__
ServerAlias www.archivio.__MY_DOMAIN__ archivio.__MY_DOMAIN__ *.archivio.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd sub entry cgi support BEGIN.
# httpd sub entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/archivio/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd sub entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/archivio/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd sub entry PHP2 support END.
Include /etc/apache2/ispcp/archivio.__MY_DOMAIN__.conf
</VirtualHost>
# httpd [archivio.__MY_DOMAIN__] sub entry END.
# httpd [monitor.__MY_DOMAIN__] sub entry BEGIN.
<VirtualHost with __MY_IP__:80>
#
#User vu2001
#Group vu2001
#
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/monitor/htdocs
ServerName monitor.__MY_DOMAIN__
ServerAlias www.monitor.__MY_DOMAIN__ monitor.__MY_DOMAIN__ *.monitor.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd sub entry cgi support BEGIN.
# httpd sub entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/monitor/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd sub entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/monitor/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd sub entry PHP2 support END.
Include /etc/apache2/ispcp/monitor.__MY_DOMAIN__.conf
</VirtualHost>
# httpd [monitor.__MY_DOMAIN__] sub entry END.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [__MY_DOMAIN__] dmn entry BEGIN.
<VirtualHost with __MY_IP__:80>
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/htdocs
ServerName __MY_DOMAIN__
ServerAlias www.__MY_DOMAIN__ __MY_DOMAIN__ *.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
RedirectMatch permanent ^/ftp([\/]?) http://admin.__MY_DOMAIN__/ftp/
RedirectMatch permanent ^/pma([\/]?) http://admin.__MY_DOMAIN__/pma/
RedirectMatch permanent ^/webmail([\/]?) http://admin.__MY_DOMAIN__/webmail/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd awstats support BEGIN.
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd dmn entry PHP2 support END.
Include /etc/apache2/ispcp/__MY_DOMAIN__.conf
</VirtualHost>
# httpd [__MY_DOMAIN__] dmn entry END.
# httpd [__MY_DOMAIN__] dmn group entry END.
# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.
# httpd [with __MY_IP__] virtual host entry END.
# httpd [with __MY_IP__] virtual host entry BEGIN.
NameVirtualHost with __MY_IP__:80
# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [__MY_DOMAIN__] dmn group entry BEGIN.
<IfModule mod_cband.c>
<CBandUser __MY_DOMAIN__>
# CBandUserLimit 0Mi
# CBandUserScoreboard /var/www/scoreboards/__MY_DOMAIN__
# CBandUserPeriod 4W
# CBandUserPeriodSlice 1W
# CBandUserExceededURL http://admin.__MY_DOMAIN__/errors/bw_exceeded.html
</CBandUser>
</IfModule>
# httpd [archivio.__MY_DOMAIN__] sub entry BEGIN.
<VirtualHost with __MY_IP__:80>
#
#User vu2001
#Group vu2001
#
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/archivio/htdocs
ServerName archivio.__MY_DOMAIN__
ServerAlias www.archivio.__MY_DOMAIN__ archivio.__MY_DOMAIN__ *.archivio.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd sub entry cgi support BEGIN.
# httpd sub entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/archivio/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd sub entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/archivio/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd sub entry PHP2 support END.
Include /etc/apache2/ispcp/archivio.__MY_DOMAIN__.conf
</VirtualHost>
# httpd [archivio.__MY_DOMAIN__] sub entry END.
# httpd [monitor.__MY_DOMAIN__] sub entry BEGIN.
<VirtualHost with __MY_IP__:80>
#
#User vu2001
#Group vu2001
#
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/monitor/htdocs
ServerName monitor.__MY_DOMAIN__
ServerAlias www.monitor.__MY_DOMAIN__ monitor.__MY_DOMAIN__ *.monitor.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd sub entry cgi support BEGIN.
# httpd sub entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/monitor/htdocs>
# httpd sub entry PHP support BEGIN.
# httpd sub entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd sub entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/monitor/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd sub entry PHP2 support END.
Include /etc/apache2/ispcp/monitor.__MY_DOMAIN__.conf
</VirtualHost>
# httpd [monitor.__MY_DOMAIN__] sub entry END.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [__MY_DOMAIN__] dmn entry BEGIN.
<VirtualHost with __MY_IP__:80>
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@__MY_DOMAIN__
DocumentRoot /var/www/virtual/__MY_DOMAIN__/htdocs
ServerName __MY_DOMAIN__
ServerAlias www.__MY_DOMAIN__ __MY_DOMAIN__ *.__MY_DOMAIN__
Alias /errors /var/www/virtual/__MY_DOMAIN__/errors/
RedirectMatch permanent ^/ftp([\/]?) http://admin.__MY_DOMAIN__/ftp/
RedirectMatch permanent ^/pma([\/]?) http://admin.__MY_DOMAIN__/pma/
RedirectMatch permanent ^/webmail([\/]?) http://admin.__MY_DOMAIN__/webmail/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser __MY_DOMAIN__
</IfModule>
# httpd awstats support BEGIN.
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/__MY_DOMAIN__/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/__MY_DOMAIN__/:/var/www/virtual/__MY_DOMAIN__/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value session.save_path "/var/www/virtual/__MY_DOMAIN__/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/__MY_DOMAIN__/
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/__MY_DOMAIN__/htdocs>
FCGIWrapper /var/www/fcgi/__MY_DOMAIN__/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/__MY_DOMAIN__">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd dmn entry PHP2 support END.
Include /etc/apache2/ispcp/__MY_DOMAIN__.conf
</VirtualHost>
# httpd [__MY_DOMAIN__] dmn entry END.
# httpd [__MY_DOMAIN__] dmn group entry END.
# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.
# httpd [with __MY_IP__] virtual host entry END.
# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.
# httpd Data END.
RE: Strange Problem With ispcp.conf - joximu - 07-29-2009 08:30 PM
Hm, you have 2 subdomains an 1 domain - they are configured twice...
Maybe you need to clean the file manually.
do this with the copy /etc/ispcp/apache/working/ispcp.conf (make a copy!!)
Maybe also a regeneration works, if you start with the content of /etc/ispcp/apache/parts/ispcp_base.tpl in this file...
then regenerate the domain and then the subdomains...
Hope this helps.
/J
RE: Strange Problem With ispcp.conf - grg - 07-29-2009 08:47 PM
Quote:Hm, you have 2 subdomains an 1 domain - they are configured twice...
Yes, 2 old subdomains. I can't add new ones now.
Quote:Maybe you need to clean the file manually.
Yeah i've tried to move it on another location and then regenerate everything, but the file is not regenerated.
Quote:do this with the copy /etc/ispcp/apache/working/ispcp.conf (make a copy!!)
This file is the same, it has the double content too.
Ok, clean, but how? That's not an exact copy (cat ispcp.conf >> ispcp.conf).
Quote:Maybe also a regeneration works, if you start with the content of /etc/ispcp/apache/parts/ispcp_base.tpl in this file...
then regenerate the domain and then the subdomains...
Ok, so:
1
Code:
SRV:/etc/apache2/sites-enabled# mv ispcp.conf ispcp.conf.bak
SRV:/etc/apache2/sites-enabled# cat /etc/ispcp/apache/parts/ispcp_base.tpl > ispcp.conf
2
Code:
SRV:/etc/apache2/sites-enabled# /etc/init.d/ispcp_daemon stop
3
Code:
USE sys;
UPDATE `domain` SET `domain_status` = 'change' WHERE `domain_status` = 'ok';
UPDATE `subdomain` SET `subdomain_status` = 'change' WHERE `subdomain_status` = 'ok';
UPDATE `domain_aliasses` SET `alias_status` = 'change' WHERE `alias_status` = 'ok';
UPDATE `subdomain_alias` SET `subdomain_alias_status` = 'change' WHERE `subdomain_alias_status` = 'ok';
UPDATE `mail_users` SET `status` = 'change' WHERE `status` = 'ok';
4
Code:
SRV:/etc/apache2/sites-enabled# /var/www/ispcp/engine/ispcp-rqst-mngr
5
Code:
SRV:/etc/apache2/sites-enabled# /etc/init.d/ispcp_daemon start
Ok. The file is not modified (thats the same than the tpl i've copied).
Thankyou
RE: Strange Problem With ispcp.conf - joximu - 07-29-2009 09:35 PM
why
"USE sys;"
"USE ispcp" should fit.
You want to do the changes in the ispcp database, wouldn't you?
And: I'd try first to regenerate only the domains, then - in a second step, the subdomains..
always see whats going on...
Maybe (I'm not sure, since I never did this all manually) you have to add some lines in the fresh file (from tpl). Start with this one (extracted from your above):
Code:
# httpd Data BEGIN.
#
# wget-hack prevention
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>
#
# Log processing.
#
LogFormat "%B" traff
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog
CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"
#
# mod_cband configuration
#
<IfModule mod_cband.c>
CBandScoreFlushPeriod 10
CBandRandomPulse On
</IfModule>
#
# let the customer decide what charset he likes to use
#
AddDefaultCharset Off
#
# Header End
#
# httpd [with __MY_IP__] virtual host entry BEGIN.
NameVirtualHost with __MY_IP__:80
# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.
# httpd [with __MY_IP__] virtual host entry END.
# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.
# httpd Data END.
good luck
/J
RE: Strange Problem With ispcp.conf - grg - 07-29-2009 09:41 PM
Hi,
my ispcp DB is called "sys"
Still anything.
Do you know how can i have a debug?
In /var/log/ispcp i find hundreads of files like:
Code:
-rw------- 1 root root 0 2009-07-29 12:07 ispcp_daemon-stdout.log.1248862041
-rw------- 1 root root 0 2009-07-29 13:31 ispcp_daemon-stdout.log.1248867063
-rw------- 1 root root 0 2009-07-29 13:31 ispcp_daemon-stdout.log.1248867071
-rw------- 1 root root 0 2009-07-29 13:31 ispcp_daemon-stdout.log.1248867101
-rw------- 1 root root 0 2009-07-29 13:31 ispcp_daemon-stdout.log.1248867112
They have been generated between yesterday and today, so they seems related to my problem. But are all empty O_O
RE: Strange Problem With ispcp.conf - joximu - 07-29-2009 10:07 PM
You can enable debug in /etc/ispcp/ispcp.conf - last lines...
the empty files in /var/log/ispcp are normal :-(
Try again with the template from Post 6 - only regenerate the domain.
/J
RE: Strange Problem With ispcp.conf - grg - 07-29-2009 10:11 PM
Well, of course it's not working, but this is the debug:
Code:
SRV:/etc/apache2/sites-enabled# /var/www/ispcp/engine/ispcp-rqst-mngr
DEBUG: push_el() sub_name: mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which touch` /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: processing 1, radiodannata.com, change.
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-dmn-mngr 1 1>/var/log/ispcp/ispcp-dmn-mngr.stdout 2>/var/log/ispcp/ispcp-dmn-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-serv-mngr 1 0 0 0 0 1>/var/log/ispcp/ispcp-serv-mngr.stdout 2>/var/log/ispcp/ispcp-serv-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...
It's possible i've found something:
the file ispcp-dmn-mngr.stdout is full of errors like:
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{HTACCESS_USERS_FILE_NAME}' eq '{HTACCESS_USERS_FILE_NAME}', missing '{HTACCESS_USERS_FILE_NAME}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{APACHE_USERS_LOG_DIR}' eq '{APACHE_USERS_LOG_DIR}', missing '{APACHE_USERS_LOG_DIR}' in src !
And this, more explicit when adding a subdomain:
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '; sub [123.domain.com] entry BEGIN.
' ne '; sub [123.domain.com] entry END.
', '; sub [123.domain.com] entry BEGIN.
' or '; sub [123.domain.com] entry END.
' missing in src !
RE: Strange Problem With ispcp.conf - joximu - 07-29-2009 10:59 PM
hm, maybe there are old entries in the files.
also have a look at the stderr files.
Other try:
take the file you posted (with the double entries) and remove one part of
# httpd [with __MY_IP__] virtual host entry BEGIN.
...
# httpd [with __MY_IP__] virtual host entry END.
since it seems to be the same. Delete the second one...
Store this in the working folder and try to regenerate a subdomain.
It's important that the lines with comments and BEGIN or END are there - they must exactly being written like this (see in the parts-folder) - no space more or less.
/J
|