MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: kataba on 2015-01-08, 06:33:02
-
Hello, from several days I have noticed a problem with adding subdomains.
I have 4 domains all. When I add a fifth one, everything seems to be fine. But when the domains reach 6, apache crashesh suddenly or when it is restarted, it won't start again.l It doesn't show any errors or messages, just this:
[root@kataba ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
And Apache doesn't start. This happens everytime when using: service httpd restart
When the domains become 7-8, the result changes to something like this:
[root@kataba ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 107 of /opt/configs/apache/conf/defaults/init.conf:
<VirtualHost> directive missing closing '>'
Also, everytime when new domain or subdomain is added the /etc/httpd/conf/httpd.conf file is overwritten with the default.
-
When more than 8 total subdomains and domain are added it shows:
[root@kataba ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 443 of /opt/configs/apache/conf/domains/SOMEDOMAIN.com.conf:
<VirtualHost> directive missing closing '>'
-
Inform here your subdomains created. Just enough your info as 'subdom.xxx.yyy'.
-
Even when I don't have subdomains the problem is the same.
Domains:
xxxx.com
xxxxxxxxxx.com
xxxxxxxx.com
xxxxxxx.com
The subdomains were: xxxxx.oneofthedomains.com
opt/configs/apache/conf/default/defaults/init.conf
### begin - web of initial - do not remove/modify this line
Define global::port 80
Define global::portssl 443
Define global::ip *
Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
Listen ${ip}:${port}
Listen ${ip}:${portssl}
<IfVersion < 2.4>
NameVirtualHost ${ip}:${port}
NameVirtualHost ${ip}:${portssl}
</IfVersion>
<Ifmodule mod_userdir.c>
UserDir enabled
UserDir /home/*/public_html
<Location "/~admin">
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
</IfModule>
</Location>
</Ifmodule>
### 'default' config
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName default
ServerAlias default.*
DocumentRoot "/home/kloxo/httpd/default"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /default.0fake "/home/kloxo/httpd/default/default.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.0fake
<Files "default.0fake">
RewriteCond %{REQUEST_URI} !default.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
### 'default' config
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName default
ServerAlias default.*
DocumentRoot "/home/kloxo/httpd/default"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /default.1fake "/home/kloxo/httpd/default/default.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.1fake
<Files "default.1fake">
RewriteCond %{REQUEST_URI} !default.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
### end - web of initial - do not remove/modify this line
-
opt/configs/apache/conf/domains/somedomain.com.conf
### begin - web of 'somedomain.com' - do not remove/modify this line
Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
## cp for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName cp.somedomain.com
DocumentRoot "/home/kloxo/httpd/cp"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /cp.somedomain.com.0fake "/home/kloxo/httpd/cp/cp.somedomain.com.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /cp.somedomain.com.0fake
<Files "cp.somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !cp.somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/cp/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## webmail for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName webmail.somedomain.com
DocumentRoot "/home/kloxo/httpd/webmail/roundcube"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /webmail.somedomain.com.0fake "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /webmail.somedomain.com.0fake
<Files "webmail.somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !webmail.somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## web for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerAdmin webmaster@somedomain.com
ServerName somedomain.com
ServerAlias www.somedomain.com
DocumentRoot "/home/admin/somedomain.com"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "https://cp.somedomain.com:8031"
Redirect /kloxononssl "http://cp.somedomain.com:8032"
Redirect /webmail "http://webmail.somedomain.com"
Redirect /cp "http://cp.somedomain.com"
ScriptAlias /cgi-bin/ "/home/admin/somedomain.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/somedomain.com/"
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RMinUidGid admin admin
</IfModule>
<IfModule itk.c>
AssignUserId admin admin
<Location "/awstats/">
AssignUserId apache apache
</Location>
</IfModule>
<IfModule mod_fastcgi.c>
Alias /somedomain.com.0fake "/home/admin/somedomain.com/somedomain.com.0fake"
#FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.0fake" -host 127.0.0.1:57797 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/admin.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /somedomain.com.0fake
<Files "somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/somedomain.com/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/admin/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:57797/
ProxyPassReverse / fcgi://127.0.0.1:57797/
</IfModule>
<Directory "/home/admin/somedomain.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "somedomain.com"
Include /home/kloxo/client/admin/prefork.inc
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:"
</IfModule>
</Location>
CustomLog "/home/httpd/somedomain.com/stats/somedomain.com-custom_log" combined
ErrorLog "/home/httpd/somedomain.com/stats/somedomain.com-error_log"
ScriptAlias /awstats/ "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/"
Alias /awstatscss "/home/kloxo/httpd/awstats/wwwroot/css/"
Alias /awstatsicons "/home/kloxo/httpd/awstats/wwwroot/icon/"
Redirect /stats "http://somedomain.com/awstats/awstats.pl"
Redirect /stats/ "http://somedomain.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
<Location "/awstats/">
AuthType Basic
AuthName "Awstats"
#AuthUserFile "/home/admin/__dirprotect/__stats"
AuthUserFile "/home/httpd/somedomain.com/__dirprotect/__stats"
require valid-user
</Location>
</VirtualHost>
## cp for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName cp.somedomain.com
DocumentRoot "/home/kloxo/httpd/cp"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule mod_ssl.c>
SSLEngine on
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /cp.somedomain.com.1fake "/home/kloxo/httpd/cp/cp.somedomain.com.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /cp.somedomain.com.1fake
<Files "cp.somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !cp.somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/cp/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## webmail for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName webmail.somedomain.com
DocumentRoot "/home/kloxo/httpd/webmail/roundcube"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /webmail.somedomain.com.1fake "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /webmail.somedomain.com.1fake
<Files "webmail.somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !webmail.somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## web for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerAdmin webmaster@somedomain.com
ServerName somedomain.com
ServerAlias www.somedomain.com
<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
DocumentRoot "/home/admin/somedomain.com"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "https://cp.somedomain.com:8031"
Redirect /kloxononssl "http://cp.somedomain.com:8032"
Redirect /webmail "https://webmail.somedomain.com"
Redirect /cp "https://cp.somedomain.com"
ScriptAlias /cgi-bin/ "/home/admin/somedomain.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/somedomain.com/"
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RMinUidGid admin admin
</IfModule>
<IfModule itk.c>
AssignUserId admin admin
<Location "/awstats/">
AssignUserId apache apache
</Location>
</IfModule>
<IfModule mod_fastcgi.c>
Alias /somedomain.com.1fake "/home/admin/somedomain.com/somedomain.com.1fake"
#FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.1fake" -host 127.0.0.1:57797 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/admin.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /somedomain.com.1fake
<Files "somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/somedomain.com/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/admin/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:57797/
ProxyPassReverse / fcgi://127.0.0.1:57797/
</IfModule>
<Directory "/home/admin/somedomain.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "somedomain.com"
Include /home/kloxo/client/admin/prefork.inc
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:"
</IfModule>
</Location>
CustomLog "/home/httpd/somedomain.com/stats/somedomain.com-custom_log" combined
ErrorLog "/home/httpd/somedomain.com/stats/somedomain.com-error_log"
ScriptAlias /awstats/ "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/"
Alias /awstatscss "/home/kloxo/httpd/awstats/wwwroot/css/"
Alias /awstatsicons "/home/kloxo/httpd/awstats/wwwroot/icon/"
Redirect /stats "https://somedomain.com/awstats/awstats.pl"
Redirect /stats/ "https://somedomain.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
<Location "/awstats/">
AuthType Basic
AuthName "Awstats"
#AuthUserFile "/home/admin/__dirprotect/__stats"
AuthUserFile "/home/httpd/somedomain.com/__dirprotect/__stats"
require valid-user
</Location>
</VirtualHost>
### end - web of 'somedomain.com' - do not remove/modify this line
-
If I only add domains there isn't any problem but when I add more than 1 SUBDOMAIN it appears.
-
Create subdomain like webmail.domain.com, cp.domain.com, mail.domain.com lists.domain.com and www.domain.com may make a trouble.
-
I don't have any kind of the subdomains you listed. When I just have 4 domains and 0 subdomains, apache cannot start. I have to add one subdomain to make apache start.
-
Try update with 'yum clean all; yum update; sh /script/cleanup'. After that, try 'sh /script/fix-chownchmod; sh /script/restart-all -y'.
-
Create subdomain like webmail.domain.com, cp.domain.com, mail.domain.com lists.domain.com and www.domain.com may make a trouble.
Such subdomains should be prohitibed via simple PHP code rejecting them.
-
I will try and give feedback.
-
I also found this in the httpd error log:
[Fri Jan 09 05:58:05 2015] [notice] SIGUSR1 received. Doing graceful restart
Syntax error on line 362 of /opt/configs/apache/conf/domains/donuts.com.conf:
<VirtualHost> directive missing closing '>'
[Fri Jan 09 17:15:15 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jan 09 17:15:15 2015] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
This is happening everyday the same time.
-
Try update with 'yum clean all; yum update; sh /script/cleanup'. After that, try 'sh /script/fix-chownchmod; sh /script/restart-all -y'.
I've tried all that now and there isn't any difference. The problem still exists.
-
If you want add 'sub1.domain.com', use 'add domain' instead 'add subdomain'.
-
If you want add 'sub1.domain.com', use 'add domain' instead 'add subdomain'.
I've tried that. The result is the same.
Now I don't have subdomains, just 4 domains as I said before.
Apache doesn't start even when I did what you wrote:
Try update with 'yum clean all; yum update; sh /script/cleanup'. After that, try 'sh /script/fix-chownchmod; sh /script/restart-all -y'.
-
Here are shots
-
Try update Kloxo-MR first.
-
Update for 7.0.0.b-2015010905
Name: Kloxo-MR
Note: Kloxo fork by Mustafa Ramadhan
Detected Version: 7.0.0.b-2015010905
Installed RPM Version: 7.0.0.b-2015010905
Latest RPM Version: 7.0.0.b-2015010905
-
Give me your ssh and Kloxo-MR panel access (send to via PM).
-
Problem solved after reinstalling os and kloxo-mr. Thank you!