Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
403 Forbidden
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ergodic
n00b
n00b


Joined: 26 Jul 2002
Posts: 33
Location: San Diego

PostPosted: Tue Nov 05, 2002 5:51 pm    Post subject: 403 Forbidden Reply with quote

I have this problem on my apache web server with php. All the html pages work ok, but when I try to access .php files I got the following message:

You don't have permission to access /test.php on this server.

I changed the permissions for the files to 755 and checked the config files
for apache but could not find anything wrong. Any suggestions?

TIA
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Tue Nov 05, 2002 11:43 pm    Post subject: Reply with quote

Did you check apache's error (and access) log :?: If so, what does it say :?:

You can find the error log file in /var/log/apache/error_log.
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
ergodic
n00b
n00b


Joined: 26 Jul 2002
Posts: 33
Location: San Diego

PostPosted: Wed Nov 06, 2002 1:54 am    Post subject: Reply with quote

This is what the log file says, not that I can extract anything useful from it. Maybe you guys can

10.10.1.122 - - [12/Nov/2002:03:34:16 -0800] "GET /phpmyadmin/index.php HTTP/1.1" 403 292 "http://sqlla/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021028"
10.10.1.122 - - [12/Nov/2002:03:38:19 -0800] "GET /test.php HTTP/1.1" 403 280 "http://sqlla/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021028"
10.10.1.122 - - [12/Nov/2002:03:39:50 -0800] "GET /test.php HTTP/1.1" 403 280 "http://sqlla/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021028"
Back to top
View user's profile Send private message
simcop2387
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 200
Location: Galactic Sector ZZ9 Plural Z Alpha

PostPosted: Wed Nov 06, 2002 2:39 am    Post subject: Reply with quote

i might be wrong but that looks like an access log, not the error log?
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Wed Nov 06, 2002 1:27 pm    Post subject: Reply with quote

Yes, it is the access log. How about psoting the error log :?:
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
ergodic
n00b
n00b


Joined: 26 Jul 2002
Posts: 33
Location: San Diego

PostPosted: Fri Nov 08, 2002 10:11 pm    Post subject: Reply with quote

Sorry about that.

This was the ERROR, the options ExecCGI is off,

[Tue Nov 12 03:38:19 2002] [error] [client 10.10.1.122] Options ExecCGI is off in this directory: /home/httpd/htdocs/test.php
[Tue Nov 12 03:39:50 2002] [error] [client 10.10.1.122] Options ExecCGI is off in this directory: /home/httpd/htdocs/test.php

Turned that option on and this is what I get now

[Fri Nov 15 07:59:27 2002] [error] [client 10.10.1.122] Premature end of script headers: /home/httpd/htdocs/phpmyadmin/index.php
[Fri Nov 15 08:00:03 2002] [error] (13)Permission denied: exec of /home/httpd/htdocs/phpmyadmin/index.php failed
[Fri Nov 15 08:00:03 2002] [error] [client 10.10.1.122] Premature end of script headers: /home/httpd/htdocs/phpmyadmin/index.php
(END)

TIA
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Fri Nov 08, 2002 10:46 pm    Post subject: Reply with quote

Did you emerge php or mod_php :?:
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
ergodic
n00b
n00b


Joined: 26 Jul 2002
Posts: 33
Location: San Diego

PostPosted: Mon Nov 11, 2002 8:20 pm    Post subject: Reply with quote

mod_php
I try uninstalling and reinstalling and nothing ... Don't know what else to try
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Mon Nov 11, 2002 8:48 pm    Post subject: Reply with quote

What about starting with a simple script :?: For example, create a file under /home/httpd/htdocs/, lets call it test.php which will contain:
Code:
<?php
   phpinfo();
?>


And then try to access it with http://localhost/test.php

What do you get in that case :?:
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
ergodic
n00b
n00b


Joined: 26 Jul 2002
Posts: 33
Location: San Diego

PostPosted: Fri Nov 15, 2002 2:45 am    Post subject: Fixed (not really) Reply with quote

I could not figure out what happened....

I unmerge apache and mod_php and installed apache2 and php from source code (doing g'ol configure ; make; make install )

It works now
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum