403 Forbidden on correctly(?) formatted PHP page

Status
Not open for further replies.

mattdahe

New Member
Messages
6
Reaction score
0
Points
1
I recently uploaded a PHP script to my website and when I try to access it, I get a 403 forbidden error. The only error in the cPanel error log is a error that it can't find the 403 forbidden page. I assume that PHP is enabled, and I have not done anything to block this file, so I'm wondering what happened. Attached is the file, which does not include the referenced resources such as images, fonts and sound files and has been stripped of sensitive information. This page takes the arguments: " index.php?steamid=*integer*&mapname=*string*". If you all could be of any help figuring out why this file is inaccessible, that would be great! Thank you and have a good day.
 

Attachments

  • index.php.txt
    2.8 KB · Views: 3

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Hi,
Your file permissions were wrong. Files should be 644, and folders should be 755. I've fixed this.
 
Status
Not open for further replies.
Top