Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Dragooon
451
Off-topic / Re: Help with apache2
« on June 1st, 2012, 02:10 PM »
Quote from Arantor on June 1st, 2012, 02:00 PM
Hmm, I suppose that makes sense. Need to check on that, though, because I didn't think FPM did the whole different user thing.
I've been using that setup as an alternative to suExec/PHPSuExec (since both haven't received any updates in years) in my new server. Plus [Unknown] recommended a nice permission setup which IMO is fairly logical and I have been using it for well almost a year. Basically, make all the web server files chown'd to site-user:site-user and make the web process run as site-user-www:site-user (user being different and group being same). Then chmod all files which are primarily read only to 640 and the folders which require write to 750/770 (don't remember properly, should be 750), and make sure that these folders cannot execute PHP scripts. That way, all the other user's are completely locked out, and at the same time you don't sacrifice complete access to the files but still lock PHP out enough to maintain control. Plus if someone gets in, they cannot modify a PHP file or run a script and hence run it securely.
452
Off-topic / Re: Help with apache2
« on June 1st, 2012, 01:58 PM »
Slightly incorrect wording there, FPM doesn't make Apache run in that user/group but it does make apache's user/group irrelevant. From what I understand with FPM Apache/Nginx just routes the request to FPM/FCGI and then FPM processes the request. At that point Apache's user/group doesn't matter anymore since FPM/FCGI is running the PHP process, so the scripts are executed with FPM's user/group. And FPM has the ability to have different user/group for different ports/sites. Hence, once can change the user/group php runs in and prevent those files from accessing files of other user/group, just make sure you don't have everything 777.
453
Off-topic / Re: Help with apache2
« on June 1st, 2012, 01:36 PM »
I haven't really had a problem with suhosin, but to each it's own. Group/user is more for preventing a site from accessing other site (so one site's weak site weak security doesn't result in all of the sites getting hacked). Plus FPM will make the instance of apache run in that user/group so it doesn't need to be writable by nobody, but only the user of the site itself.
454
Off-topic / Re: Help with apache2
« on June 1st, 2012, 01:01 PM »
There are a couple of things you can do, one is run every site in their own user/group using suPHP/PHPSuExec/PHP-FPM (one of these, fpm being recommended). Apart from that you can install php suhosin and enable open_basedir (even though this shouldn't be required if you got user/group properly configured, but never hurts). There are a few other things that I'm probably forgetting, but search around.
455
Quote from Nao on June 1st, 2012, 12:04 AM
I have no idea how you guys can put up with learning tens of thousands of foreign words, and in the case of French, learn their *gender* as well...
I got no idea as well, that's why I barely passed in my 5 years of French.
456
What can I say?

* Dragooon likes this
457
Plugins / Re: Hooking up data loading
« on May 31st, 2012, 12:03 PM »
Quote from Arantor on May 30th, 2012, 07:51 PM
Well, more for boasting about when places get hacked into and sharing all the details of who did so :/
Apparently it's to do with preventing piracy. A company convinced the court that blocking these sites (pastebin, vimeo, dailymotion and a plethora of torrent sites) can reduce piracy. Fine, I see some logic in blocking torrent sites, but pastebin, Vimeo and DM are fairly legit video sharing sites...
458
Plugins / Re: Hooking up data loading
« on May 30th, 2012, 07:09 PM »
Bomp since Arantor brought it up.

PS : High court banned pastebin in my country...WTF?
459
Plugins / Re: Hooks for loadMemberData and loadMemberContext
« on May 30th, 2012, 05:49 PM »
Quote from Arantor on May 30th, 2012, 05:43 PM
Did you call it weQuery in the end? Anyway, it's the doohickey you wrote ;)
Ohh....I had completely forgotten about it :P.
460
Plugins / Re: Hooks for loadMemberData and loadMemberContext
« on May 30th, 2012, 05:08 PM »
Quote from Arantor on May 30th, 2012, 04:22 PM
*nods* Something needs to be done, guess I need to go read up about wesqlQuery and implementing it. Life is just 'complicated' right now :(
No rush, but what's wesqlQuery?
461
Plugins / Hooks for loadMemberData and loadMemberContext
« on May 29th, 2012, 10:17 AM »
It'd be great to have a hook for these 2 functions so that additional fields from member's table can be loaded which may be added by plugins. Even a basic hook would suffice.
462
Features / Re: Thought system
« on May 27th, 2012, 01:42 PM »
Sorry if I missed something in the discussion, but honestly Wall and Notifications are 2 very different things. Wall allows to subscribe to the public activity of the user, whereas notifications can be used by plugins etc. as well in order to notify the user (something which doesn't make sense as a wall feature). As a plugin author I'd be delighted to have a notification system which allows a more intermediate form of communication for things which are not important enough for things that'd warrant a PM or E-Mail (I got a couple of ideas of plugins that can use a notification system).
463
Features / Re: Disable animation on mobile devices
« on May 23rd, 2012, 01:31 PM »
Quote from Nao on May 23rd, 2012, 11:46 AM
And in chrome?

WTF electrical power is down in my neighborhood and it looks like it's gonna last got a while... Right when I was back in business after a hectic morning outside.... >_<
Chrome Beta for Android? It's better, still not up to iOS' level.
464
Features / Re: Disable animation on mobile devices
« on May 23rd, 2012, 08:59 AM »
Quote from nend on May 23rd, 2012, 06:42 AM
Haven't had any trouble with animations. I am running CM7 on a Samsung GTI5500 @ 600mhz with 187mb RAM and Android 2.3.7 using Opera Mobile.

My setup though is heavily modified from what you would find in a traditional 2.3.7 CM7 installation.
I'm running CM9 (Android 4.0.4) on GT-N7000 @ 1.6GHz with 1GB RAM and I can't stand the standard jQuery animations. Hell, the CSS3 animations are barely tolerable in Android's default browser.
465
Features / Re: Disable animation on mobile devices
« on May 21st, 2012, 04:41 PM »
Quote from Nao on May 21st, 2012, 04:39 PM
I thought jQuery used CSS3 animations when available..?
Nope, there are some extensions that do that though.