View previous topic :: View next topic |
Author |
Message |
ergodic n00b
Joined: 26 Jul 2002 Posts: 33 Location: San Diego
|
Posted: Tue Nov 05, 2002 5:51 pm Post subject: 403 Forbidden |
|
|
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 |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Tue Nov 05, 2002 11:43 pm Post subject: |
|
|
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 |
|
|
ergodic n00b
Joined: 26 Jul 2002 Posts: 33 Location: San Diego
|
Posted: Wed Nov 06, 2002 1:54 am Post subject: |
|
|
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 |
|
|
simcop2387 Apprentice
Joined: 14 Aug 2002 Posts: 200 Location: Galactic Sector ZZ9 Plural Z Alpha
|
Posted: Wed Nov 06, 2002 2:39 am Post subject: |
|
|
i might be wrong but that looks like an access log, not the error log? |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Wed Nov 06, 2002 1:27 pm Post subject: |
|
|
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 |
|
|
ergodic n00b
Joined: 26 Jul 2002 Posts: 33 Location: San Diego
|
Posted: Fri Nov 08, 2002 10:11 pm Post subject: |
|
|
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 |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Fri Nov 08, 2002 10:46 pm Post subject: |
|
|
Did you emerge php or mod_php _________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
ergodic n00b
Joined: 26 Jul 2002 Posts: 33 Location: San Diego
|
Posted: Mon Nov 11, 2002 8:20 pm Post subject: |
|
|
mod_php
I try uninstalling and reinstalling and nothing ... Don't know what else to try |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Mon Nov 11, 2002 8:48 pm Post subject: |
|
|
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 |
|
|
ergodic n00b
Joined: 26 Jul 2002 Posts: 33 Location: San Diego
|
Posted: Fri Nov 15, 2002 2:45 am Post subject: Fixed (not really) |
|
|
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 |
|
|
|