PDA

View Full Version : Minor problems after install


Noldar
04-03-2004, 02:10 PM
After installing DirectAdmin on a FreeBSD 4.9 box I ran into two minor problems.

When I tried to access SquirrelMail I would get a 403 Forbidden Error. Looking in my error log I saw:

[Fri Apr 2 15:52:17 2004] [error] [client 65.82.228.48] (13)Permission denied: cannot read directory for multi: /home/admin/domains/staticroute.net/public_html/

This was corrected by editing the httpd.conf and adding the MultiViews option by changing:

<Directory "/var/www/html">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks

to:

<Directory "/var/www/html">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews

The other problem was that the default admin email account that was created for my domain could not receive mail. From another message I saw here I'm guessing this had something to do with the fact that my server hostname (orion.staticroute.net) was the same domain as my email (admin[at]staticroute.net). This was fixed with the following commands:

cd /etc/virtual
mkdir orion.staticroute.net
chown mail:mail orion.staticroute.net


Just wanted to share in case anyone else ran into these issues. Other than those two minor issues DirectAdmin looks pretty solid so far.

Richard

DirectAdmin Support
04-03-2004, 03:28 PM
Hello,

I think that's because the public_html folder is chmod 710 instead of 750. We've already added that to the versions system and new domains should be created as 750 username:apache for the next release.

John

Noldar
04-03-2004, 03:40 PM
I'm pretty sure the SquirrelMail problem was that the MultiViews option was missing. I tried changing the directory permissions and it didn't help. It wouldn't work until I added MultiViews. The error log message tends to point in that direction also.

Richard

DirectAdmin Support
04-03-2004, 03:59 PM
Ok, I'll change the default template. :)

John

Tim
04-23-2004, 11:52 AM
I added multiviews, but still have the forbidden

Help :confused:

Noldar
04-23-2004, 12:19 PM
Hi Tim,

Did you restart Apache? What does your error log say? It should be in /var/log/httpd/domains/

Richard

DirectAdmin Support
04-24-2004, 04:38 PM
Hello,

Check your /home/username/domains/domain.com/public_html folder and chmod it to 755.

John

Tim
04-25-2004, 06:05 AM
now i get 404

[Sun Apr 25 14:06:31 2004] [error] [client IP] File does not exist: /home/username/domains/domain.nl/public_html/squirrelmail/

Noldar
04-25-2004, 02:52 PM
It sounds like you either didn't add MultiViews in the correct place or you haven't restarted Apache after making the change.

Richard

Tim
04-29-2004, 02:46 PM
- multiviews is in httpd.conf
- 755 is on the dir

but..... do i need to give 755 on EACH public_html ?!

I've about 40/50 users ...:confused:

DirectAdmin Support
04-29-2004, 03:18 PM
Hello,

DA 1.21.3 will create accounts with the correct permission.

The power of sh/bash should make chmodding them easy:

chmod 755 /home/*/domains/*/public_html
:)

John

Tim
04-29-2004, 08:46 PM
But it doesnt work ..... the webmail squirrelmail still doesnt work :(

Noldar
04-30-2004, 09:08 AM
Hi Tim,

Sorry you're still having a problem. If you'd like I can take a look at it for you.

Richard

jmstacey
04-30-2004, 03:29 PM
Squirrelmail solution:

Try adding this line to your config file right under the alias to the other webmail program ubeimail (sp?) that uses the alias "webmail"

Alias /squirrelmail /var/www/html/squirrelmail

For some reason DirectAdmin does not create the alias to squirrelmail in freebsd (I don't know if the newest version fixed it or not.) I don't think its a problem with other Operating systems.

I'm not sure about this multiview. From my experience installing 2.12.2 it would give me the same error anytime I tried accessing non-existant pages.

I hope that solves your problem.

Tim
05-03-2004, 08:32 AM
finally ;) thanks.