Forbidden 403 when attempting to visit site.

Status
Not open for further replies.

jrsofty49

New Member
Messages
3
Reaction score
0
Points
1
Hello,

I'm currently trying to get a blog set up on my site at http://jrsofty.x10.mx/blog but when I visit the site I get a 403 Forbidden.

I'm not behind a VPN, and I deployed the blog software from the cPanel. The index.php file is set for 755 so should be executable. I'm not sure what I'm doing wrong here.

Thanks.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
The 755 is the problem; it should be 644. PHP only needs to be readable to the world; the executable is the PHP runtime and your script is, well, just a script it reads.
 

jrsofty49

New Member
Messages
3
Reaction score
0
Points
1
Thanks for the quick reply. I've now changed the permissions back to 644 for the files, but I'm still getting a 403 forbidden error. Apparently if I attempt to set the directories as 644 but then the file manager doesn't recognize the contents so the directories have to be 755.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
That's right - "directories" are really pointer files that need to be executed. Silly system, but that's how they work.

If there are still 403 problems with the permissions set appropriately, there are still a couple of things to check. One is your .htacess Options (if you have one): "All" is not a permitted value (see this sticky for more on that). And you need to make sure that your script isn't trying to do things that aren't permitted (like running phpinfo()). Remember that this is free shared hosting, and that the system needs to be locked down pretty tightly, both to prevent abuse and to protect the, um, technically challenged from their own actions.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi jrsofty49,

I'm sorry for the delay here. We performed some maintenance on free hosting accounts previously, to improve the way in which websites are stored. It looks like your account hadn't fully switched back after the maintenance period. This should now be fixed, and your website is now working properly. ;)

Thank you,
 
Status
Not open for further replies.
Top