Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

403 Forbidden error when editing files

 
Lifelesspeople.com Forum Index -> Server Support Questions
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
version2
Quate.net Programmer


Joined: 17 Feb 2005
Posts: 1152
Location: localhost.localdomain

PostPosted: Wed Jun 14, 2006 9:47 pm    Post subject: 403 Forbidden error when editing files Reply with quote

I get "403" forbidden errors when trying to edit a file using my php file manager. This wasn't a problem before. Why now?
_________________
[img:9084b0fb7c]http://www.glop.org/starforce/boycott-starforce-mario-userbar.jpg[/img:9084b0fb7c]
[img:9084b0fb7c]http://www.imgcrate.com/Slythfox/save_internet.png[/img:9084b0fb7c]
Quate CMS 0.3.3 - Released February 16th, 2007! (Forgot to edit my signature Silly)
Back to top
 
LP-Trel
Zen


Joined: 02 Dec 2002
Posts: 5760
Location: Nirvana by Boredom

PostPosted: Wed Jun 14, 2006 10:08 pm    Post subject: Reply with quote

While I couldn't say for sure.. it is most likely due to the security measures in place within PHP.
_________________
* Knowledge Base * Wiki * Forum FAQs *
Back to top
 
packagedeliverer
Pro Freelancer::llp elder


Joined: 20 Feb 2004
Posts: 2693
Location: belgium

PostPosted: Wed Jun 14, 2006 11:32 pm    Post subject: Reply with quote

I have my own self-made cpanel where I can edit files and it's still working like a charm... Maybe chmod it to another mode or something?
_________________
[img:0a108d93e8]http://img338.imageshack.us/img338/9430/packagedeliverer54hy.gif[/img:0a108d93e8]
Back to top
 
version2
Quate.net Programmer


Joined: 17 Feb 2005
Posts: 1152
Location: localhost.localdomain

PostPosted: Wed Jun 14, 2006 11:34 pm    Post subject: Reply with quote

I guess it is PHP. I can't edit a file to have:
Code:
// the one line of php code that was here was removed because this post could not otherwise be submitted.
// The code here would have simply echoed phpinfo if it were to be executed.
But I can have a file that contains no php code. It just makes everything harder for me.

Try it yourself:
http://www.quate.net/test/test.php
User: test
Pass: test

Edit: packagedeliverer, are you sure? I can't even post php code in the lifelesspeople forums anymore. Try it yourself. Wink
_________________
[img:9084b0fb7c]http://www.glop.org/starforce/boycott-starforce-mario-userbar.jpg[/img:9084b0fb7c]
[img:9084b0fb7c]http://www.imgcrate.com/Slythfox/save_internet.png[/img:9084b0fb7c]
Quate CMS 0.3.3 - Released February 16th, 2007! (Forgot to edit my signature Silly)
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4745
Location: Down Under

PostPosted: Thu Jun 15, 2006 12:43 am    Post subject: Reply with quote

You cannot edit a file with a PHP script if there are no permissions to write. Also, have you noticed you are editing the file that is used for the script?
Try it with another file and give public write permissions, eg. 666 or 777.
You can also try using an FTP connection to manage the files, that way you can login as owner and have more permissions.
Back to top
 
LP-Trel
Zen


Joined: 02 Dec 2002
Posts: 5760
Location: Nirvana by Boredom

PostPosted: Thu Jun 15, 2006 3:52 am    Post subject: Reply with quote

It isn't the script itself, but what you are attempting to write into it via a form in PHP.

The security system is zeroing in on it as an injection attempt due to the formating.

I would remove the measures as they do lead to some false positives when posting code, but the security situation is serious with many websites being hacked these days. L2P largely avoids these hacks due to the security measures in place.
_________________
* Knowledge Base * Wiki * Forum FAQs *
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4745
Location: Down Under

PostPosted: Thu Jun 15, 2006 6:40 am    Post subject: Reply with quote

But the message that you get is not a good indication of what has happened, it stumpted me twice for a few minutes. Maybe a message saying function names such as fo*pen, fs*ockopen etc. are blocked?
Back to top
 
LP-Trel
Zen


Joined: 02 Dec 2002
Posts: 5760
Location: Nirvana by Boredom

PostPosted: Thu Jun 15, 2006 10:28 pm    Post subject: Reply with quote

krt wrote:
But the message that you get is not a good indication of what has happened, it stumpted me twice for a few minutes. Maybe a message saying function names such as fo*pen, fs*ockopen etc. are blocked?


Unfortunately depending on the perceived severity of the attack the message will be generic as to not give someone attempting to crack the system too much information. Sad
_________________
* Knowledge Base * Wiki * Forum FAQs *
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Server Support Questions All times are GMT - 6 Hours
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


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com