Click to See Complete Forum and Search --> : Need some help setting up apache...


tarballed
08-29-2003, 06:10 PM
Hello everyone...

Im in the process of installing mailman, a mail list manager. It requires apache to work correctly. Now, im not an apache expert, but im learning...

My system is:

RH 8.0
Apache 2.x

The mailman files are located in /usr/local/mailman

I thought I was setting it up right, but its not working: I added the following, per the README:

ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/

Alias /pipermail/ /usr/local/mailman/archives/public/

When I go to the page, I get 'Object not found.'

Bellow is from the Error log:

[client 192.168.1.90] File does not exist: /var/www/html/mailman

So i missed something, but not sure where to fix it..

Any help is greatly appreciated..

Tarballed

sploo22
08-29-2003, 06:37 PM
What was the exact URL you typed into your browser? Also, could you maybe attach a copy of your configuration file?

tarballed
08-29-2003, 06:40 PM
I was typing this in the url:

http:/<ip address of server>/mailman

I have not modified my httpd.conf except for adding the following (per the readme)

Alias /pipermail "/usr/local/mailman/archives/public/"

<Directory "/usr/local/mailman/archives/public/">
Options FollowSymLinks
</Directory>

ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"

Im probably missing something due to lack of experience...

Thanks for your help...

Tarballed

sploo22
08-29-2003, 06:47 PM
Ummm... I'm not sure if this will help but try taking the double quotes out of the lines you added to the config file. I've never seen them used, and I don't know if they would cause problems or not.

tarballed
08-29-2003, 06:50 PM
Tried it, but now I get this:

[Fri Aug 29 15:46:41 2003] [error] [client 192.168.1.90] Directory index forbidden by rule: /var/www/html/
[Fri Aug 29 15:46:45 2003] [error] [client 192.168.1.90] File does not exist: /var/www/html/mailman


It is looking in /var/www/html/mailman for the files.
Should it be looking in /usr/local/mailman?

Directory of /usr/local/mailman:

drwxrwsr-x 4 root mailman 4096 Aug 29 15:33 archives
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 bin
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 cgi-bin
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 cron
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 data
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 icons
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 lists
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 locks
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 logs
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 mail
drwxrwsr-x 11 root mailman 4096 Aug 29 15:33 Mailman
drwxrwsr-x 20 root mailman 4096 Aug 29 13:29 messages
drwxrwsr-x 6 root mailman 4096 Aug 29 13:29 pythonlib
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 qfiles
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 scripts
drwxrwsr-x 2 root mailman 4096 Aug 29 15:33 spam
drwxrwsr-x 23 root mailman 4096 Aug 29 13:29 templates
drwxrwsr-x 4 root mailman 4096 Aug 29 15:33 tests

Just a guess...

Thoughts?

Tarballed

sploo22
08-31-2003, 09:18 AM
Hmm... for some reason it's not recognizing the Alias lines. (I assume /var/www/html is where your document root is - that's the standard out-of-the-box location.)

Just a thought, but: try http://<your ip>/mailman/. That missing trailing slash might be messing Apache up.

P.S. I'm sort of in over my head here, I'd appreciate if anybody more knowledgeable could lend a hand! :)

freemansweb
09-01-2003, 10:29 PM
Make sure your entry looks something like this:

<IfModule mod_alias.c>
Alias /manual/ "/srv/www/htdocs/manual/"

<Directory "/srv/www/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
Check your permissions, if they are owned by root and not writeable or executable by others it will not load. Permissions are very important.

Additionally, if you are using your cgi-bin for an alias, you must add the file you would like to run to the address since the cgi-bin will generally not index.