Apache is functioning normally

dwm

Verified User
Joined
Dec 4, 2007
Messages
64
Location
Netherlands
Hello,

I am installing my new server and installed Apache2 with php5 on it. I have added several users and domainnames on it, and placed index.html files in every customers public_html. The dns is also correct, and the ip also. But i dont get any website, only the plaintext message with 'Apache is functioning normally'. How do i fix this? I also have done a ./build rewrite_confs too..

<VirtualHost 77.93.73.81:80>


ServerName www.mail.directwebsolutions.com
ServerAlias www.mail.directwebsolutions.com mail.directwebsolutions.com
ServerAdmin [email protected]
DocumentRoot /home/klanten/domains/directwebsolutions.com/public_html/mail
ScriptAlias /cgi-bin/ /home/klanten/domains/directwebsolutions.com/public_html/mail/cgi-bin/

UseCanonicalName OFF

User klanten
Group klanten
CustomLog /var/log/httpd/domains/directwebsolutions.com.mail.bytes bytes
CustomLog /var/log/httpd/domains/directwebsolutions.com.mail.log combined
ErrorLog /var/log/httpd/domains/directwebsolutions.com.mail.error.log
<Directory /home/klanten/domains/directwebsolutions.com/public_html/mail>
Options +Includes -Indexes

php_admin_flag engine ON
<IfModule !mod_php6.c>
php_admin_flag safe_mode OFF
</IfModule>
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


php_admin_value open_basedir /home/klanten/:/tmp:/usr/local/lib/php/


</Directory>



</VirtualHost>

/etc/httpd/conf/httpd.conf:
Include /usr/local/directadmin/data/users/klanten/httpd.conf
 
John fixed this error, which was not normal. I will quote him as far is needed as explanation here:

I found the probably to simply be with the pid file. It didn't exist, thus restarts didn't happen.

This bit was missing:

<IfModule !mpm_netware_module>
PidFile "/var/run/httpd.pid"
</IfModule>

From: /etc/httpd/conf/extra/httpd-mpm.conf

Which caused the pid file to show up in /var/logs/httpd.pid

All scirpts are expecting it in:
/var/run/httpd.pid

The default httpd-mpm.conf does have it:
/usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-mpm.conf

So adding the PidFile code in your httpd-mpm.conf, killall httpd, /etc/init.d/httpd start will solve the problem.
 
This is not always the solution. Files you have to check for correctness:

/etc/httpd/conf/httpd.conf
/etc/httpd/conf/ips.conf
/etc/httpd/conf/extra/httpd-mpm.conf
/etc/httpd/conf/extra/directadmin-vhosts.conf
/usr/local/directadmin/data/users/*per-user*/httpd.conf
 
Back
Top