This is the content of / home / apache / conf / domains / :
### begin - web of 'gbasolutionsgroup.com' - do not remove/modify this line
NameVirtualHost 192.241.254.90:80
NameVirtualHost 192.241.254.90:443
## webmail for 'gbasolutionsgroup.com' handled by ../defaults/webmail.conf
## web for 'gbasolutionsgroup.com'
<VirtualHost 192.241.254.90:80>
ServerAdmin
http://www.gbasolutionsgroup.com DocumentRoot "/home/admin/gbasolutionsgroup.com/"
DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "
https://cp.gbasolutionsgroup.com:7777"
Redirect /kloxononssl "
http://cp.gbasolutionsgroup.com:7778"
Redirect /webmail "
http://webmail.gbasolutionsgroup.com"
ScriptAlias /cgi-bin/ "/home/admin/gbasolutionsgroup.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/gbasolutionsgroup.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 /gbasolutionsgroup.com.0fake "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.0fake"
#FastCGIExternalServer "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.0fake" -host 127.0.0.1:57797
FastCGIExternalServer "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.0fake" -socket /home/php-fpm/sock/admin.sock
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /gbasolutionsgroup.com.0fake
<Files "gbasolutionsgroup.com.0fake">
RewriteCond %{REQUEST_URI} !gbasolutionsgroup.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/gbasolutionsgroup.com/">
Options +ExecCGI
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /home/httpd/gbasolutionsgroup.com/php5.fcgi .php
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass /
fcgi://127.0.0.1:57797/ ProxyPassReverse /
fcgi://127.0.0.1:57797/ </IfModule>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "gbasolutionsgroup.com"
</IfModule>
<Directory "/home/admin/gbasolutionsgroup.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +Indexes +FollowSymlinks
</Directory>
<Location />
Options +Includes +FollowSymlinks
</Location>
<Location />
<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/gbasolutionsgroup.com/stats/gbasolutionsgroup.com-custom_log" combined
ErrorLog "/home/httpd/gbasolutionsgroup.com/stats/gbasolutionsgroup.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://gbasolutionsgroup.com/awstats/awstats.pl?config=gbasolutionsgroup.com"
# Redirect /stats/ "
http://gbasolutionsgroup.com/awstats/awstats.pl?config=gbasolutionsgroup.com"
Redirect /stats "
http://gbasolutionsgroup.com/awstats/awstats.pl"
Redirect /stats/ "
http://gbasolutionsgroup.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
</VirtualHost>
## webmail for 'gbasolutionsgroup.com' handled by ../defaults/webmail.conf
## web for 'gbasolutionsgroup.com'
<VirtualHost 192.241.254.90:443>
ServerAdmin
http://www.gbasolutionsgroup.com <IfModule mod_ssl.c>
SSLEngine On
SSLCertificateFile /home/kloxo/httpd/ssl/eth0___localhost.crt
SSLCertificateKeyFile /home/kloxo/httpd/ssl/eth0___localhost.key
SSLCACertificatefile /home/kloxo/httpd/ssl/eth0___localhost.ca
</IfModule>
DocumentRoot "/home/admin/gbasolutionsgroup.com/"
DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "
https://cp.gbasolutionsgroup.com:7777"
Redirect /kloxononssl "
http://cp.gbasolutionsgroup.com:7778"
Redirect /webmail "
https://webmail.gbasolutionsgroup.com"
ScriptAlias /cgi-bin/ "/home/admin/gbasolutionsgroup.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/gbasolutionsgroup.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 /gbasolutionsgroup.com.1fake "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.1fake"
#FastCGIExternalServer "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.1fake" -host 127.0.0.1:57797
FastCGIExternalServer "/home/admin/gbasolutionsgroup.com/gbasolutionsgroup.com.1fake" -socket /home/php-fpm/sock/admin.sock
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /gbasolutionsgroup.com.1fake
<Files "gbasolutionsgroup.com.1fake">
RewriteCond %{REQUEST_URI} !gbasolutionsgroup.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/gbasolutionsgroup.com/">
Options +ExecCGI
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /home/httpd/gbasolutionsgroup.com/php5.fcgi .php
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass /
fcgi://127.0.0.1:57797/ ProxyPassReverse /
fcgi://127.0.0.1:57797/ </IfModule>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "gbasolutionsgroup.com"
</IfModule>
<Directory "/home/admin/gbasolutionsgroup.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +Indexes +FollowSymlinks
</Directory>
<Location />
Options +Includes +FollowSymlinks
</Location>
<Location />
<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/gbasolutionsgroup.com/stats/gbasolutionsgroup.com-custom_log" combined
ErrorLog "/home/httpd/gbasolutionsgroup.com/stats/gbasolutionsgroup.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://gbasolutionsgroup.com/awstats/awstats.pl?config=gbasolutionsgroup.com"
# Redirect /stats/ "
https://gbasolutionsgroup.com/awstats/awstats.pl?config=gbasolutionsgroup.com"
Redirect /stats "
https://gbasolutionsgroup.com/awstats/awstats.pl"
Redirect /stats/ "
https://gbasolutionsgroup.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
</VirtualHost>
### end - web of 'gbasolutionsgroup.com' - do not remove/modify this line
--------------------------------------------------------------------------
I run the above command and this is the result:
~]# rm -f /home/apache/conf/domains/
rm: cannot remove `/home/apache/conf/domains/': Is a directory
I run the above commands:
sh /script/fixweb:
# sh /script/fixweb
- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers
Fixing Web server config
- 'defaults' and 'php-fpm' at 'localhost'
- 'gbasolutionsgroup.com' ('admin') at 'localhost'
---------------------------------
~]# sh /script/restart-web
Stopping httpd: [ OK ]
Starting httpd: httpd.event: apr_sockaddr_info_get() failed for gbasolutionsgroup
httpd.event: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
-------------------------------------------------------------------
[root@gbasolutionsgroup ~]# ~]# sh /script/restart-web
-bash: ~]#: command not found
[root@gbasolutionsgroup ~]# Stopping httpd: [ OK ]
-bash: Stopping: command not found
[root@gbasolutionsgroup ~]# Starting httpd: httpd.event: apr_sockaddr_info_get() failed for gbasolutionsgroup
-bash: syntax error near unexpected token `('
[root@gbasolutionsgroup ~]# httpd.event: Could not reliably determine the server 's fully qualified domain name, using 127.0.0.1 for ServerName
> [ OK ]
> Stopping php-fpm: [ OK ]
> Starting php-fpm: [ OK ]
I restarted the server and still not working.. :/