Going to domain gives 'Apache is functioning normally'

mmgenius

Verified User
Joined
Jan 20, 2004
Messages
180
We have a domain that always gives 'Apache is functioning normally' when you go to it with a browser (to the domain itself and to the www. of the domain). The httpd.conf looks OK (if I compare with other domains)
I don't see an error in the httpd error_log.
I already rewrited all direct admin httpd.conf files with the rewrite script.

How can I check what is wrong? What can be the problem?
 
most of the time a ip set is or went wrong for that user /domain on DA ( "ping" from you pc to that domain and look if the same ip is also in DA for that domain)
Or nameserver / dns didn't resolved well for the ip this domain should be. (this could take some time, you can check for settings nameserver at the domainregistrar and then use "nslookup" command.

also website pingtools can help here
 
Can you post your httpd.conf?

<Directory "/home/username/public_html">
<IfModule mod_ruid2.c>
RMode config
RUidGid username username
#RGroups apache access
RGroups @none
</IfModule>
<IfModule mod_fcgid.c>
SuexecUserGroup username username
</IfModule>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/username/.php/php-mail.log
php_admin_value open_basedir /home/username/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php54/lib/php/
</Directory>

<VirtualHost 1.2.3.4:80 >
ServerName www.domain.com
ServerAlias www.domain.com domain.com
ServerAdmin [email protected]
DocumentRoot /home/username/domains/domain.com/public_html
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup username username
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid username username
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/domain.com.bytes bytes
CustomLog /var/log/httpd/domains/domain.com.log combined
ErrorLog /var/log/httpd/domains/domain.com.error.log
<Directory /home/username/domains/domain.com/public_html>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
Options -ExecCGI
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/username/.php/php-mail.log
php_admin_value open_basedir /home/username/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php54/lib/php/
</Directory>
</VirtualHost>
 
Last edited:
Hello,

Force to restart apache/nginx with

Code:
killall -9 httpd
service  httpd start

and see whether or not it solves the issue.
 
Back
Top