Apache problems

aushost

Verified User
Joined
Oct 26, 2003
Messages
32
Location
Western Australia
Iam having problems with my server, the websites are not visable comes up with message "Apache functioning normally" any suggestions to sove this problem.
 
Hello,

That would imply that the domains are either resolving to the wrong IP as specified by DA, or else the domains are not yet setup on that server. Double check the IP set for the domain in all areas: dns, DA, apache etc.. and make sure they all match.

John
 
Apache is that the http.conf file in DA it does not mention the current IPs nor the server names nor the server domain name. It checked out correct in DNS and DA "Nameservers" and "IP".
 
Hello,

At the bottom of your /etc/httpd/conf/httpd.conf file, you should see several Include lines including more httpd.conf files located in the directadmin users directory.

eg:
Include /usr/local/directadmin/data/users/admin/httpd.conf

Take a look at /usr/local/directadmin/data/templates/httpd.conf for the template that is used orignally during the install. (then Include lines are added to it)

John
 
At the end of the file at /etc/httpd/conf/httpd.conf you have the following:

include../usr/local/directadmin/data/users/(account name)/httpd.conf

also the servers IP is mentioned in the /etc.../httpd.conf file

In the ......./data/templates/httpd.conf file there is no mention of the server domain or the IP
 
Last edited:
This is what should be at the end:
Code:
#Start DirectAdmin Settings
Alias /config /var/www/html/redirect.php
Alias /phpMyAdmin /var/www/html/phpMyAdmin-2.5.6/
Alias /phpmyadmin /var/www/html/phpMyAdmin-2.5.6/
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml

#All NameVirtualHost lines are in this file
#Don't remove this line or apache will generate errors.
Include /etc/httpd/conf/ips.conf

#The default site for the server.
<VirtualHost |SERVER_IP|:80>
        ServerAdmin webmaster@|SERVER_NAME|
        DocumentRoot /var/www/html
        ServerName localhost
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/
</VirtualHost>

<VirtualHost |SERVER_IP|:443>
        ServerName localhost
        ServerAdmin webmaster@|SERVER_NAME|
        DocumentRoot /var/www/html
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
</VirtualHost>

Listen 8090
<VirtualHost _default_:8090>
DocumentRoot /usr/local/frontpage/version5.0/admin-exes
DirectoryIndex fpadmcgi.exe
<Directory /usr/local/frontpage/version5.0/admin-exes/>
        AddHandler cgi-script .exe
        Options ExecCGI
</Directory>
</VirtualHost>

Include /usr/local/directadmin/data/users/admin/httpd.conf
... (more includes for each user addded)
If that isn't there, then it's possible the install didn't finish. You can add it to the bottom of the file.

cd /usr/local/directadmin
./directadmin i #(don't run this if you've already added users to DA)
./directadmin p

should copy the templates over.

John
 
Back
Top