403 error but permissions set according to installation?

Having trouble installing serendipity?
Post Reply
craig_s9y
Regular
Posts: 30
Joined: Wed Aug 24, 2005 12:57 am

403 error but permissions set according to installation?

Post by craig_s9y »

FC8
I used Webmin to created a virtual user to run a blog engine "Serendipity"
The engine is saved in a directory named "earthly"

I'm testing this setup via VNC.
I run up the web browser...the one I used to created the virtual user with Webmin. This same browser is executing phpMyAdmin and "testphp.php" without a problem

I'm getting a 403 error (no permission ) issued by the Apache II server?
You don't have permission to access /earthly on this server.
Here's my directory and file settings based on the install instructions for Serendipity.

What's causing the 403 error?


[root@cletis earthly]# ls -l ./..
total 16
drwxrwxrwx 14 root root 4096 2007-12-30 18:37 earthly
-rw-r--r-- 1 root root 20 2007-12-28 18:25 testphp.php
[root@cletis earthly]# ls -l
total 276
drwxrwxrwx 2 root root 4096 2007-12-30 18:37 archives
drwxr-xr-x 11 root root 4096 2007-12-08 09:45 bundled-libs
-rw-r--r-- 1 root root 6814 2006-04-06 04:14 comment.php
drwxr-xr-x 5 root root 4096 2007-12-08 09:45 deployment
drwxr-xr-x 2 root root 4096 2007-12-08 09:45 docs
-rw-r--r-- 1 root root 1526 2006-04-06 04:14 exit.php
drwxr-xr-x 7 root root 4096 2007-12-08 09:45 htmlarea
drwxr-xr-x 5 root root 4096 2007-12-08 09:45 include
-rw-r--r-- 1 root root 24199 2007-06-18 06:57 index.php
drwxr-xr-x 3 root root 4096 2007-12-08 09:45 lang
drwxrwxrwx 32 root root 4096 2007-12-08 09:45 plugins
-rw-r--r-- 1 root root 10174 2007-05-16 05:12 rss.php
-rw-r--r-- 1 root root 12640 2006-09-14 03:45 serendipity_admin_image_selector.php
-rw-r--r-- 1 root root 22485 2007-08-09 04:31 serendipity_admin.php
-rw-r--r-- 1 root root 14585 2007-09-04 05:12 serendipity_config.inc.php
-rw-r--r-- 1 root root 2229 2007-04-12 04:22 serendipity.css.php
-rw-r--r-- 1 root root 526 2006-04-06 04:14 serendipity_define.js.php
-rw-r--r-- 1 root root 10726 2007-04-16 05:14 serendipity_editor.js
-rw-r--r-- 1 root root 448 2006-04-06 04:14 serendipity_xmlrpc.php
drwxr-xr-x 2 root root 4096 2007-12-08 09:45 sql
drwxrwxrwx 27 root root 4096 2007-12-08 09:45 templates
drwxrwxrwx 2 root root 4096 2007-12-08 09:45 templates_c
drwxrwxrwx 2 root root 4096 2007-12-08 09:45 uploads
-rw-r--r-- 1 root root 1469 2006-04-06 04:14 wfwcomment.php

thank you
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 403 error but permissions set according to installation?

Post by garvinhicking »

HI!

And ifyou call index.php directly?

It might be your apaches simply has no "DirectoryIndex index.php" for your vhost.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chiriqui
Regular
Posts: 55
Joined: Tue Jan 01, 2008 4:31 pm
Location: Paso Ancho, Rep. of Panama

Post by chiriqui »

I'm the same guy.. trouble with this forum account... sent admin a explanation but couldn't wait to hear back so I created a new account for the mean time.
DirectoryIndex index.html index.html.var index.php
If I call: http://localhost/earthly/index.php
Forbidden

You don't have permission to access /earthly/index.php on this server.
The site admin hasn't opened the external port for this machine yet. But I wouldn't think that be an issue testing through "localhost" would it?


Can you tell me what this is instructing me to do:
For full operation, Serendipity relies on .htaccess files that your Virtual Host? must allow. For Apache, this requires the "Allow Override? File Info? Indexes Limit" (or "Allow Override? All") option set to the directory of your Serendipity installation.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

And if you call http://localhost/testphp.php this works, yes?

Can you also try http://localhost/earthly/serendipity_admin.php ?
For full operation, Serendipity relies on .htaccess files that your Virtual Host? must allow. For Apache, this requires the "Allow Override? File Info? Indexes Limit" (or "Allow Override? All") option set to the directory of your Serendipity installation.
That accords to your apache server configuration, where "AllowOverride All" or "AllowOverride FileInfo Indexes Limit" must be set for your directory. But you can worry about that later on, this only comes into effect if after installation your server gives you a HTTP 500 error. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chiriqui
Regular
Posts: 55
Joined: Tue Jan 01, 2008 4:31 pm
Location: Paso Ancho, Rep. of Panama

Post by chiriqui »

http://localhost/earthly/serendipity_admin.php
Forbidden

You don't have permission to access /earthly/serendipity_admin.php on this server.
Ans. yes.. executes display my "lamp" settings
http://localhost/testphp.php

Edited: 11:38 or a few minutes later

"_" in the serendipty_admin.php was left out when I 1st ran this test. Checking the serendipity file list is discovered error... but it didn't make any difference.

This is also displayed in the Apache error statement... I don't like that it refers to port 80 which I said is closed on this machine
Apache/2.2.6 (Fedora) Server at localhost Port 80
Last edited by chiriqui on Tue Jan 01, 2008 5:53 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You didn't copy the link from here, right? There a "_" underscore between serendipity and admin, that's why your server converts a space to %20.

Copy testphp.php into your eartly directory and call

http://localhost/earthly/testphp.php

does that work?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chiriqui
Regular
Posts: 55
Joined: Tue Jan 01, 2008 4:31 pm
Location: Paso Ancho, Rep. of Panama

Post by chiriqui »

check previous message.. I caught that didn't use a "_"

will try moving testphp.php into earthly


executed

http://localhost/earthly/testphp.php
Forbidden

You don't have permission to access /earthly/testphp.php on this server.
[root@cletis earthly]# ls
archives lang serendipity_xmlrpc.php
bundled-libs plugins sql
comment.php rss.php templates
deployment serendipity_admin_image_selector.php templates_c
docs serendipity_admin.php testphp.php
exit.php serendipity_config.inc.php uploads
htmlarea serendipity.css.php wfwcomment.php
include serendipity_define.js.php
index.php serendipity_editor.js
[root@cletis earthly]#
my httpd.conf setting for a virtual host
<VirtualHost *>
DocumentRoot /var/www/html
ServerName www.earthly.biz
<Directory "/var/www/html/earthly">
</Directory>
</VirtualHost>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, this means your "earthyl" directory can't really be accessed at all. Maybe your apache is configured to not allow access to directory that are owned by root and/or have 0777?

Are you the admin of that server? Because I don't really understand what you mean with closed ports etc...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chiriqui
Regular
Posts: 55
Joined: Tue Jan 01, 2008 4:31 pm
Location: Paso Ancho, Rep. of Panama

Post by chiriqui »

thank you for sticking with me here on this problem

No I'm not the network administrator although I have root access to this machine on this networked system.

Do you think this is effecting testing though the localhost? He's got some firewall work he wants to apply before opening this webserver up on port 80.

Should I try changing the permissions on /earthly?

what 775? I think they are set to 777

I think before I went online with this problem I had the ower set to my user name. "Craig"

what do you recommend I try at this point
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Basically, it COULD be related to firewall and apache config stuff. There are ways to block access to your home directory if only the base directory is allowed for access.

Your setup sounds pretty specific, so I'm afraid you must wait for your administrator to drop a statement on what's happening - I can't really debug this from here. :(


I'd try to change the ownerships and permissions exactly like your "html" subdirectory is.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chiriqui
Regular
Posts: 55
Joined: Tue Jan 01, 2008 4:31 pm
Location: Paso Ancho, Rep. of Panama

Post by chiriqui »

really appreciate your attention to this and advice

The network administrator's probably has a hang over from last nights celebrations so I can't bother him today.

will address the ownerships and permissions as you suggest

thank you
Post Reply