httpd.conf wrong path

amator

Verified User
Joined
Jul 19, 2008
Messages
30
Hi,

After updating to the latest version of DirectAdmin and restarting httpd it stopped my website. I have a 404 error.

I found the cause. In the configuration file httpd.conf of each domain path is wrong.

It is:
DocumentRoot / domains / domain.com / public_html
ScriptAlias ​​/ cgi-bin / / domains / domain.com / public_html / cgi-bin /

As it should be:
DocumentRoot / home / user / domains / domain.com / public_html
ScriptAlias ​​/ cgi-bin / / domains / domain / public_html / cgi-bin /

additionally

suPHP_Engine ON
suPHP_UserGroup nobody nobody
and should be a "user group"

After entering the file manager also get:
Unable to open /. Permission denied.


And last issue is with e-mail.
Sent and received e-mail goes to mail queue and remain here until I click "repeat". Only then are sent, or hit the user's mailbox.


Any help?
 
and one more


Unable to create that domain

Details

You've hit your maximum disk quota and do not have enough space to create another domain


I've unlimited space for admin user and on serwer I have free space


root@srv:/usr/local/directadmin/custombuild# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/simfs 104857600 12122300 92735300 12% /
tmpfs 2097152 0 2097152 0% /lib/init/rw
tmpfs 2097152 0 2097152 0% /dev/shm
 
Something is wrong with your admin user then. I would go through all the files in /usr/local/directadmin/data/users/admin and make sure they are not corrupt.
 
Already checked. Everything looks fine.
httpd templates (also try make custom) also have checked and there is good but still rewriting confings domains give me bad httpd.conf :confused:


I have this i brute force monitor.
IP User Attempts Filter Log Entry
127.0.0.1 [email protected] 2 dovecot1 Jun 30 15:25:26 spx dovecot: imap-login: Aborted login (auth failed, 2 attempts): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
 
Last edited:
Well file manager should pull users home directory from the passwd entry I would think.

You might have to have someone look at your server. No other users reported this problem so far.

Make sure you have no http templates that might have something wrong in /usr/local/directadmin/templates/custom/

I would just email directadmin support and ask them to look at it.
 
Is there any script to rebuild passwd? Looks properly, are all users and home directories. No have no idea what happend :/
 
Last edited:
Hello,

Check:
/etc/passwd

as this is the file that DA gets the home directories from.
Set it to chmod 644.

Also check the quotas for that user, eg:
quota -v username

Check the permissions on the home directory:
ls -la /home/username

it may not exist, or it might be chown-ed incorrectly.

John
 
Solved.
Passwd file was chmod 600 and not 644 (do not know how it happened).
When I change the chmod to 644 e-mails works, File Manager, adding users, domains, everything works:)

Thanks for the help
 
Back
Top