Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: kat on March 09, 2013, 12:34:36 PM

Title: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on March 09, 2013, 12:34:36 PM
An awful lot of hosts, now, don't give their customers proper permissions for the files on their sites.

So, although it may look, to you, as though you've set the file permissions, on your forum, in a certain way, they might not, in fact, be set that way, at all.

If, at this moment, you're thinking "Eh?", let me explain, a little.

When we speak of permissions, usually, we're talking about CHMOD (http://www.computerhope.com/unix/uchmod.htm). At least, we are with Apache servers. Windows servers, of course, are different. But, in this case, they're similar enough. It's just that the commands will be somewhat different.

The CHMOD permissions can be set to whatever you like. The problem, however, is that there's a set of permissions which override the permissions you set. These permissions are set by your host. In effect, you don't "own" the files on your site, at all. Your host does. CHOWN (http://www.computerhope.com/unix/uchown.htm), which stands for "CHange OWNer", is a command that can only be run by your host.

So, if you install a mod or theme, it may be that you don't, in reality "own" the files that need to be edited. In which case, those files won't be edited, when you install a mod. It may appear that the mod's been installed. But, it won't be, as you'll notice, when you try to use it, or configure it.

In a case, such as this, you'll need to contact your host and get them to give you full CHOWN ownership of the files on your site.


The second common problem, now, is a thing called "mod_security". Originally, the idea behind mod_secuirty was probably well intended. But, it's so picky, in the way that it's set up, that it's causing some silly problems.

It was designed to prevent certain words appearing on websites, without the host's knowledge. Words like "Casino", "Gambling, "Sex", "porn" and a myriad of others. Sounds like a good idea, no?

In theory, yes. In practice...

If you happen to have the word "Essex", on your site, mod_security will only see the "sex" part and throw a hissy-fit. I've even known a server refuse the words "Hot water", because it contains the letters "T". "W", "A" and "T", in that order.

So, although it may have been a good idea, in theory, in practice, it's either not being configured, properly, or it's just plain not working.

So, it'll be well worth you giving your host a nudge, to get "mod_security" disabled.

Hope this helps. :)

Edits, comments, corrections welcomed, of course. :)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Capt. John on March 26, 2013, 05:24:31 PM
Most helpful support member award goes to: K@
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on March 26, 2013, 05:26:21 PM
(http://www.katzy.dsl.pipex.com/Smileys/giggle.gif)

Thanks, Cap! :)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Vector’s Shadow on April 07, 2013, 05:37:04 PM
Unfortunately, if your host is bent on using mod_security or mod_security2, they are unlikely to stop using it. Some suggestions on disabling it for a particular account can be found on cPanel's forum (http://forums.cpanel.net/f5/how-disable-mod_security2-rule-one-domain-73135.html).
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Arantor on April 07, 2013, 05:39:19 PM
SMF will actually attempt to use that code if it detects mod_security is present.
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 08, 2013, 06:10:31 AM
I'll be honest... I've yet to find a host that won't, except one, rather strange one.

Unfortunately, that host has "smf" in it's name...
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 07:38:53 AM
Why is this only stickied in 1.x support?  ;)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 10:32:32 AM
http://www.simplemachines.org/community/index.php?topic=479640.0 :P
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 11:45:17 AM
Quote from: K@ on April 13, 2013, 10:32:32 AM
http://www.simplemachines.org/community/index.php?topic=479640.0 :P

That one's different ;)  That's your info about extracting the automatic back-up in the event you "forgot" to make a proper back-up first.  No mention of CHOWN or mod_security...
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 11:47:37 AM
You know... There WAS a sticky post, there...

Ho-hum. There will be, in a minute. :)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 11:50:06 AM
 (http://chalkcat.com/Smileys/fantasticsmileys/giggle.gif)  You're welcome  (http://chalkcat.com/Smileys/fantasticsmileys/tiphat.gif)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 11:52:50 AM
There. Now, stop twittering and get the kettle on. It's your turn to make the tea. :P
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 11:56:02 AM
Uhh that's so not fair!  I have to do everything round here.......

(http://img.dooyoo.co.uk/GB_EN/orig/0/7/3/8/7/738727.jpg)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 12:01:02 PM
I made the last one!

Plus, of course, you need the practice. (http://www.katzy.dsl.pipex.com/Smileys/c018.gif)

(http://www.katzy.dsl.pipex.com/Smileys/hidesbehindsofa.gif)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 12:10:11 PM
(https://i.chzbgr.com/maxW500/3848518144/hD8796BF0/)

(http://chalkcat.com/Smileys/fantasticsmileys/giggle.gif)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 12:12:19 PM
(http://www.katzy.dsl.pipex.com/LOLCats/voices.jpg)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 12:15:06 PM
I'm so glad we haven't gone off-topic yet  (http://chalkcat.com/Smileys/fantasticsmileys/rofl.gif) (http://chalkcat.com/Smileys/fantasticsmileys/rofl.gif) (http://chalkcat.com/Smileys/fantasticsmileys/rofl.gif)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: kat on April 13, 2013, 12:17:46 PM
(http://www.katzy.dsl.pipex.com/LOLCats/lolcatsfarted.jpg)

At least people might notice the topic, as a result.

This is known as a Good ThingTM[/s].
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 12:26:51 PM
(http://wattonlibrary.files.wordpress.com/2012/02/happy-cat.jpg)
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: TheListener on April 13, 2013, 12:27:12 PM
Quote from: K@ on April 13, 2013, 11:52:50 AM
There. Now, stop twittering and get the kettle on. It's your turn to make the tea. :P

Be waiting forever for that to happen.

:D

/me runs
Title: Re: Mods and/or themes not installing, properly? A couple of things to be aware of.
Post by: Chalky on April 13, 2013, 12:37:29 PM
Yes, run, while you still can....

(http://pcdn.500px.net/20326439/c02058ffdd79635e204129ffe84dcab4e1a93820/3.jpg)