Weird issues (no logs and default page)

bblboy54

Verified User
Joined
Dec 6, 2004
Messages
26
Location
Linden, VA
A couple months ago I had a server issue and I had to restore from an rsync backup on a fresh DA install on Debian 4.0. The issue I had during the reinstall is that rsync didn't preserve the permissions so I had a lot of manual resolving to do. I've got everything back up and running but I noticed some issues just this past week.

The first issue is that when I add a new domain the domain isnt recognized by apache. I've looked at the httpd.conf file in the user directory and it does indicate it properly but if you go to the domain via web you just get the default "hey, it worked" page.

The second thing I noticed is that there is absolutely NO logs being kept for apache. Not sure why but all of the log files for the domains are completely empty.

Any ideas on where to look?

Thanks!
 
If you are using custombuild:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

If not - maybe you are missing Inlcude lines in your httpd.conf? Try:
Code:
for i in `ls /usr/local/directadmin/data/users`; do { echo "Include /usr/local/directadmin/data/users/$i/httpd.conf" >> /etc/httpd/conf/httpd.conf; }; done;
 
I had tried the rewrite configs options before but I tried again as well as the script you gave but neither produced any results, sadly.
 
I can take a look for free if you want. Feel free to contact me.
 
Hello,

If you need a full system permission reset, use:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
which will reset configs and data for services installed by DA. It does not do user added data in their home directory (like public_html data) but does most everything else like email config, database, etc.

John
 
Hello,

If you need a full system permission reset, use:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all
which will reset configs and data for services installed by DA. It does not do user added data in their home directory (like public_html data) but does most everything else like email config, database, etc.

John

That seems to have done the trick for the domains not functioning and such. As far as I can tell everything is working again EXCEPT I'm still not seeing any http logs. In the /var/log/httpd/domains directory there are log files for "bytes" but I'm not seeing any access logs. Additionally /var/log/httpd/access_log and error_log remain empty. I did try restarting apache after I ran the permissions script but havent seen any results.

Thanks for the help!
 
Ok, then check your templates.

First, check to see if you have custom ones:
Code:
cd /usr/local/directadmin/data/templates/custom
ls -la virtual_host*
if you do, check their contents.

THe default virtual_host*.conf templates should live at:
Code:
/usr/local/directadmin/data/templates/virtual_host*.conf
(eg: virtual_host2.conf for apache 2)

You'll want to see an ErrorLog and a CustomLog for access/errors etc.
Note that the data/templates/custom directory has higher priority that the main data/templates directory.

John
 
Back
Top