403 Forbidden on submission of PHP form

Status
Not open for further replies.

shulk101

New Member
Messages
6
Reaction score
0
Points
1
Hello,
I'm currently in the process of making my own CMS website for a community. One (well, technically 58, but they all use the same code but with different variables for the database) of the pages submits information to a database using a textarea with an HTML WYSIWYG editor (SCEditor).

Up until now, I've been having no trouble submitting forums with it. But recently, for some unknown reason, it's started to give me 403 Forbidden errors every time I try to update the database through the PHP page. Now, normally I'd assume the fact that mod_security in Apache is doing this because I'm using HTML in the submissions...except for the fact that I'm using nearly the exact same code in a few other pages, but it doesn't give me a 403 Forbidden error there.

I've tried submitting the exact same HTML content on another form I have, but I don't get the 403 Forbidden error there and it works...as far is I know, it only happens when trying to update certain tables in the database.

Is there any solution to this? I'm not quite sure what's going on myself, but if you need any additional information, just ask.

Thank you for your time.
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Check the read and write permissions on the file itself, maybe they somehow changed.
 

shulk101

New Member
Messages
6
Reaction score
0
Points
1
I tried changing the permissions on the folder to 777 and the file itself to 0666 (although the other files have the default permissions and still work fine), but I still get the following error:
Forbidden
You don't have permission to access /acp/matchup/ryu.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Permissions higher than 755 for folders and 644 for files are going to throw 403s every single time. Keep in mind that mod_security rule exceptions are exceptions; things that are tweaked for one page are tweaked for that page, and a wider set of exceptions means a different class of tweaks. That said... 58 pages with essentially the same code? That ain't right.
 

shulk101

New Member
Messages
6
Reaction score
0
Points
1
So what would you recommend I do? The permissions have always been set at 755 for the folder and 644 for the files, and still are now. And the reason I have 58 different pages is so each one edits a different table in the database, although I suppose I could find another method of doing so if necessary. As I've stated before, the only difference between the pages is a variable that discerns which table in the database will be edited, so I'm assuming that would mean they all act the same -- the only difference being which table they edit.

Sorry for all the trouble, I just at a loss of what to do.

example page: http://shulk101.com/testpage
 
Last edited:
Status
Not open for further replies.
Top