News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Having problems with mod_security?

Started by [Unknown], April 26, 2005, 12:07:59 AM

Previous topic - Next topic

alicanosman

hxxp:www.cenkoyun.com [nonactive]

hawkshaw

How can i modify .htaccess inside the folder that i cant access ?

My host will do that ?

LiroyvH

If you need to modify something in a folder to which you dont have acces, then yeah, you will have to ask your host to do that...
But I dont see why you would have to modify something in a folder to which you dont have acces to in the first place?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

hawkshaw

I just suddenly lost access to my own forum folder, it was 755 then suddenly changed into 000...
QuoteForbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

青山 素子

Your host will need to set the mode back properly.

I don't know of anything in SMF that could cause all modes to be lost.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


hawkshaw

... right now they're trying to fix it up,
ive talked to them they should come here and ask you guys if they need any help, but they refused. I surely hope they know what theyre doing..  

Jacen

It surely can't be too hard to fix the problem... I mean,

chmod 755 /home/username

as root will restore it.   
"I've always found that sticking your fingers in your ears and humming loudly solves a whole slew of problems."

Taintedlore

Thanks, I was getting the 404 error and now its working fine after modifying my htaccess file!

ictus

I tried this method but I get a 500 error, I tried the .haccess in the root and in the SMF folder.

I'm using TotalChoiceHosting, who are pritty good, and most of members can post and view the forums no problem, just a few can't post, is there a nother version of the code that may work?

hawkshaw

now i cant edit my own style sheet, fatal error happen everytime i try to change style.css permission, as well as the other files.

im not sure if it has some connection with htaccess issue, cos ive editted .htaccess exactly like TS said.  

Arrisje


dobomode

Has anybody been able to htaccess disable the new version of mod_security (2.1.0)?

I recently got a new server and it's got mod_security 2.1.0. I want to disable it, but just for SMF, not the rest of the web applications, but the rules syntax seems to have changed.

Thanks!

Oldiesmann

Quote from: ictus on March 16, 2007, 07:15:28 AM
I tried this method but I get a 500 error, I tried the .haccess in the root and in the SMF folder.

I'm using TotalChoiceHosting, who are pritty good, and most of members can post and view the forums no problem, just a few can't post, is there a nother version of the code that may work?

500 error either means you accidentally mis-typed something, or that your host doesn't allow you to change things that way with .htaccess. Double-check to make sure you entered it correctly, and find another host if you can't disable it.

Quote from: hawkshaw on March 17, 2007, 09:55:02 AM
now i cant edit my own style sheet, fatal error happen everytime i try to change style.css permission, as well as the other files.

im not sure if it has some connection with htaccess issue, cos ive editted .htaccess exactly like TS said. 

What error are you getting?

Quote from: Arrisje on March 24, 2007, 01:34:27 AM
Does this work on 110mb.com?

I don't know. Try it and see :)

Quote from: dobomode on March 26, 2007, 10:17:30 PM
Has anybody been able to htaccess disable the new version of mod_security (2.1.0)?

I recently got a new server and it's got mod_security 2.1.0. I want to disable it, but just for SMF, not the rest of the web applications, but the rules syntax seems to have changed.

Thanks!

Looks like the rules have changed (according to their site - www.modsecurity.org).

Try this:

<IfModule mod_security.c>
# Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
SecRuleEngine Off

# The below probably isn't needed, but better safe than sorry.
SecRequestBodyAccess Off
</IfModule>
Michael Eshom
Christian Metal Fans

ictus

ust a not of the .htaccess file, I've tried several ways to edit it, and using the method described here, didn't work for me.

I'm using cpanel, and found if i goto file manager and edit the htaccess file directly the mod in this topic works.

Hope that helps those that may have had trouble like myself.

spoontosser

QuoteI'm using cpanel, and found if i goto file manager and edit the htaccess file directly the mod in this topic works.

I had the same difficulty, and this worked for me as well. Thanks!

CraftyLion

Every time I tried to download a package, I get this error:

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

The package I'm trying to install comes straight from this site. :S Someone help?

amelia

I've been getting the "Forbidden - You don't have permission to access /bb/index.php on this server" message. 
I followed the .htaccess fix, which didn't appear to solve the issue.  Contacted my hosting company and they said they couldn't disable the mod_security on their server.

So, do I have any other options in regards to fixing this error?  Or am I faced with having to swap hosting companies/finding a new forum?  (neither of which I'd like to do if I can avoid it).

Any help greatly appreciated!

Thanks :)

metallica48423

make sure the owner of the files are the correct one, also ensure that the permissions are correct (should be 777 or 755 permissions on unix servers,  read+write on windows hosting)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Tramposch

how do you change it using apache, like by making an exception or w/e.
Visit my website!

al_ltoticmat

<Files *>
   Order Deny,Allow
   Deny from all
   Allow from localhost
</Files>

In my regular file

Advertisement: