68k Macintosh Liberation Army Forums
68k Macintosh Liberation Army Forums
Home | Members | Search | FAQ
 All Forums
 UNIX on 68k
 Apache Trouble!
Author Topic  
Da Penguin
Senior Member


USA
1094 Posts
Posted - 30 May 2003 :  15:25:12
Allo, i am having some sever appache trouble. it is giving me 403's everywhere i try to go on the server, which isn't good. I have installed and uninstalled apache several different times and versions, and still no go, so i think the user/ startup of apache may be borked. I am running linux (gentoo on a g3 to be specific, and i know its not 68k, but i really need help!), and was wondering if there was a way to make sure apache starts up using the user apache, and also if there is a way to reset the user apache.
TIA

~The Penguin

**| Want free 68kmla email? Drop me a line |**
| Captain, Intelligence Operations / Space Cowboy |
| "The choice has been made, but now you must understand it" |

emaq123
Junior Member


USA
258 Posts
Posted - 30 May 2003 :  17:37:36
More detail please. You get 403s. Where are you browsing from? What's in you're httpd.conf file? Most importantly, what do your apache logs say about the 403s?

Start with the logs. We can figure the rest out from there.

emaq123

SE/30 and system 6.0.8 Now we're talking POWER!Go to Top of Page

maclover5
LC Doctor/Hot Rodder


Australia
5830 Posts
Posted - 30 May 2003 :  17:51:31
Isn't 403 the Access denied error i saw so many times back at school on the old screwed up Novell network? I know 503 is Operation Timed Out, and everyone knows what 404 is....i do believe that 403 is Access Denied though......

"**** em" - Jobs in regards to customers
Warrior maclover5
68kMLA

Official 68kMLA Detective
Number of 68ks Liberated: 7
Number of Contraband (PPC) Liberated from the Dumpster: 1Go to Top of Page

Da Penguin
Senior Member


USA
1094 Posts
Posted - 30 May 2003 :  19:03:15
403 IS access denied, from anywhere. I do not have an httpd.conf file as far as I know, I have an apache.conf, a commonapache.conf, and a file named apache in /etc/conf.d/

To get the error yourself, head to http://torpedobird.com

The logs just show a request for the root document folder of the server, and then it gives a 403 return error, nothing in between.

~The Penguin

**| Want free 68kmla email? Drop me a line |**
| Captain, Intelligence Operations / Space Cowboy |
| "The choice has been made, but now you must understand it" |Go to Top of Page

emaq123
Junior Member


USA
258 Posts
Posted - 30 May 2003 :  20:50:59
quote:

403 IS access denied, from anywhere. I do not have an httpd.conf file as far as I know, I have an apache.conf, a commonapache.conf, and a file named apache in /etc/conf.d/

To get the error yourself, head to http://torpedobird.com

The logs just show a request for the root document folder of the server, and then it gives a 403 return error, nothing in between.


Ok, I notice that the 403 pages list the ip as 127.0.0.1, that doesn't look good. The apache.conf file is probably the one you are using. If you want, email it to me. My system is Mandrake and my stuff is listed under httpd. My logs are in /var/log/httd and have access_log and error_log. Do you have these files and is there anything of value in them?

emaq123

SE/30 and system 6.0.8 Now we're talking POWER!Go to Top of Page

Da Penguin
Senior Member


USA
1094 Posts
Posted - 31 May 2003 :  20:37:06
The IP stated there is just he "servername" part. I am working on emailing you the config scripts, but i have to finish compiling somethings first(including kmail).

I have another question though, what should apache be running as? When I run top, and tell it to show processes under the name apache, none come up. However apache DOES come up as a root process. Is this right, and could this be the problem?
Thanks so far,

~The Penguin

**| Want free 68kmla email? Drop me a line |**
| Captain, Intelligence Operations / Space Cowboy |
| "The choice has been made, but now you must understand it" |Go to Top of Page

emaq123
Junior Member


USA
258 Posts
Posted - 31 May 2003 :  20:53:38
quote:

The IP stated there is just he "servername" part. I am working on emailing you the config scripts, but i have to finish compiling somethings first(including kmail).


Yes, but I don't like the server identifying on 127.0.0.1 (localhost)

quote:

I have another question though, what should apache be running as? When I run top, and tell it to show processes under the name apache, none come up. However apache DOES come up as a root process. Is this right, and could this be the problem?


Most people have it run as 'apache' 'www' or something like that. Apache does not need to run as 'root' and shouldn't due to hacks. Your 'commonapache.conf' file should have something like this:

quote:

### Common server configuration
#
User apache
Group apache

That will be what apache runs as.


emaq123

SE/30 and system 6.0.8 Now we're talking POWER!Go to Top of Page

Da Penguin
Senior Member


USA
1094 Posts
Posted - 01 Jun 2003 :  10:43:50
I changed it to torpedobird.com now.

commonapache.conf is setup that way, running as apache/apache, but when I run top, it only shows up as a root application. Now im confused, lol.

EDIT- I adjusted a lot of config files, and now i am getting a lil further, but still denied. However, I now get, in the error log, that "/home/.htaccess is not readable," The problem is, it IS readable? However, this is bringing me closer, I do believe. I also checked the .htaccess files before i went to apache2, and the backup from apache1 had the htaccess files prohibiting all users (that is changed)

~The Penguin

**| Want free 68kmla email? Drop me a line |**
| Captain, Intelligence Operations / Space Cowboy |
| "The choice has been made, but now you must understand it" |

Edited by - Da Penguin on 01 Jun 2003 17:41:16Go to Top of Page

emaq123
Junior Member


USA
258 Posts
Posted - 01 Jun 2003 :  18:12:12
quote:

EDIT- I adjusted a lot of config files, and now i am getting a lil further, but still denied. However, I now get, in the error log, that "/home/.htaccess is not readable," The problem is, it IS readable? However, this is bringing me closer, I do believe. I also checked the .htaccess files before i went to apache2, and the backup from apache1 had the htaccess files prohibiting all users (that is changed)

This is a bit confusing... What are the owner, group, and world flags on /home/.htaccess? What version of apache are you trying to bring up?

emaq123

SE/30 and system 6.0.8 Now we're talking POWER!Go to Top of Page

Da Penguin
Senior Member


USA
1094 Posts
Posted - 01 Jun 2003 :  20:24:04
OMG!

I love how the simplest things can break everything...

I went to check folder permissions, and home, at the base of the hierarchy, had "enter" disabled! I would have never check that far though if not prompted to again! thank you very much for indirectly fixing it! yay!

~The Penguin

**| Want free 68kmla email? Drop me a line |**
| Captain, Intelligence Operations / Space Cowboy |
| "The choice has been made, but now you must understand it" |Go to Top of Page

emaq123
Junior Member


USA
258 Posts
Posted - 01 Jun 2003 :  21:32:59
It's the easy problems I like solving. Glad to hear you've got it working.


emaq123

SE/30 and system 6.0.8 Now we're talking POWER!Go to Top of Page

   

68k Macintosh Liberation Army Forums

© 2001-2003 68kMLA

Go To Top Of Page

68k of the Week: kastegir's PowerBook 180.