View Full Version : Weird issues (no logs and default page)
bblboy54
04-22-2008, 05:12 PM
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!
smtalk
04-22-2008, 05:17 PM
If you are using custombuild:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
If not - maybe you are missing Inlcude lines in your httpd.conf? Try:
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;
bblboy54
04-22-2008, 05:44 PM
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.
bblboy54
04-22-2008, 05:51 PM
The include lines are in httpd.conf for all of the users on the system. I was able to confirm that.
smtalk
04-23-2008, 08:40 AM
I can take a look for free if you want. Feel free to contact me.
DirectAdmin Support
05-21-2008, 12:54 AM
Hello,
If you need a full system permission reset, use:
cd /usr/local/directadmin/scripts
./set_permissions.sh allwhich 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
bblboy54
05-21-2008, 05:21 PM
Hello,
If you need a full system permission reset, use:
cd /usr/local/directadmin/scripts
./set_permissions.sh allwhich 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!
DirectAdmin Support
05-22-2008, 11:52 PM
Ok, then check your templates.
First, check to see if you have custom ones:
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:
/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
bblboy54
06-24-2008, 01:14 PM
I can take a look for free if you want. Feel free to contact me.
I think I might take you up on this.... It's confusing the hell out of me :)
Thanks
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.