Current time: 11-23-2024, 02:01 AM Hello There, Guest! (LoginRegister)


Post Reply 
[Solved] Error 403 for .php files
Author Message
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #1
[Solved] Error 403 for .php files
Hi,

I'm using ispCP for 40 websites on 3 servers and that's work very well Smile

One customer have problem with php files : there is systematicaly an 403 error page.

There is no problem with my others php customers !

Have you an idea where the problem is ?
(This post was last modified: 10-20-2010 03:37 AM by Spheerys.)
10-19-2010 06:56 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Error 403 for .php files
403 is a forbidden error. They either have an .htaccess file restricting access to everyone, or their files are owned by an incorrect user (have you manually copied files to his account?)
10-19-2010 07:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #3
RE: Error 403 for .php files
I have not .htaccess in the /htdocs directory and I changed manually the correct owner for all the files in the /htdocs directory

Is the problem can come from elsewhere ? (php configuration etc...) ? Because the index.htm file is OK from the web
But a simple php file with <?php echo "hello"; ?> makes a 403 error....

Very strange...
10-19-2010 10:04 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: Error 403 for .php files
Is there any additional info in /var/log/apache2/suexec.log?
10-19-2010 10:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #5
RE: Error 403 for .php files
Only lot and lot of :
Code:
[2010-10-19 14:51:48]: uid: (2051/vu2051) gid: (2051/vu2051) cmd: php5-fcgi-starter
[2010-10-19 14:53:48]: uid: (2008/vu2008) gid: (2008/vu2008) cmd: php5-fcgi-starter
[2010-10-19 15:01:41]: uid: (2008/vu2008) gid: (2008/vu2008) cmd: php5-fcgi-starter
[2010-10-19 15:07:21]: uid: (2073/vu2073) gid: (2073/vu2073) cmd: php5-fcgi-starter
[2010-10-19 15:11:16]: uid: (2008/vu2008) gid: (2008/vu2008) cmd: php5-fcgi-starter

That's really looks like if the php files were forbidden...

You can test with the links bellow :
- http://www.domain.com/index.htm (that's work)
- http://www.domain.com/leclosfleuri.jpg (one image of the website)
- http://www.domain.com/index-test.php (error 403)

The content of the index-test.php file is :
Code:
<?php echo "toto"; ?>
(This post was last modified: 10-20-2010 03:38 AM by Spheerys.)
10-19-2010 11:16 PM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #6
RE: Error 403 for .php files
Hummm if I try to launch the index-test.php by hand, I have this :
Code:
/var/www/virtual/domain.com/htdocs# php index-test.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/imap.so' - /usr/lib/php5/20060613+lfs/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/snmp.so' - /usr/lib/php5/20060613+lfs/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
Maybe it can help...
(This post was last modified: 10-20-2010 03:38 AM by Spheerys.)
10-20-2010 12:22 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: Error 403 for .php files
looks like it's working right now...
10-20-2010 03:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #8
RE: Error 403 for .php files
I didn't solve the problem, but as my customer need to use the hosting, I delete and recreate the domain on isp-CP

And that's work now...

But thank for yours answers kilburn Wink
(This post was last modified: 10-20-2010 03:36 AM by Spheerys.)
10-20-2010 03:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)