PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Is permission 755 really needed to run Quickcache?

Quick Cache Plugin. Speeds up WordPress®.

Is permission 755 really needed to run Quickcache?

Postby simon » May 4th, 2011, 4:13 pm

Hello,

Is it really needed to set the wp-config to 755 chmod or can we set it only to 755 only when we change configuration?

I am asking this cause my wp-config was hacked several time while it was on 777....
and now im on 644 but keeps giving me the error :

permissions: Please check permissions on /wp-config.php. Quick Cache needs write-access to this file. Permissions need to be 755 or higher.

Please advice,
Simon
User avatar
simon
Registered User
Registered User
 
Posts: 6
Joined: May 4, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby ovidiu » May 6th, 2011, 8:00 am

please read up on linux permissions
the dangerous part is the last bit so 755 is way less dangerous than 777.
and all that depends on how you run your apache: as mod_php, suPhp or FastGI with suexec...
User avatar
ovidiu
Registered User
Registered User
 
Posts: 8
Joined: April 15, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby simon » May 6th, 2011, 9:44 am

ovidu,

Thanks for the reply.
Right now i have it set to 444 just to make sure. I was hacked both on 777 and 755.
Also in the source of my pages i still get the quick cache messages that page is cached and next cache will be at ....

this means its working right ?
User avatar
simon
Registered User
Registered User
 
Posts: 6
Joined: May 4, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby ovidiu » May 6th, 2011, 11:57 am

you need to understand what you are doing there. read this: http://www.zzee.com/solutions/linux-permissions.shtml

quick summary: 444 means: read only! so no, the cache cannot be written if it is read only!

the right permission depends on your config as I said: who does your webserver run as? www-data? or as your user/group? Find out!
User avatar
ovidiu
Registered User
Registered User
 
Posts: 8
Joined: April 15, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby simon » May 8th, 2011, 1:37 pm

Ovidu,

Yes.. I know 444 on the wp-config is read only...

I thought the 755 OR 777 on the wp config is Only needed so we could configure the Settings of Quick Cache but thats not the case i think...?

My cache dir is still 755 and it writes cached pages to that dir still.

In the source of my pages i see that every hour it writes new a cached page just like when i had wp-config on 755 or 777! :

<!-- This Quick Cache file was built for ( www.mydomain.com/ ) in 0.42681 seconds, on May 8th, 2011 at 6:35 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 8th, 2011 at 7:35 pm UTC -->


Thats why i think its still working!

Thanks again.
User avatar
simon
Registered User
Registered User
 
Posts: 6
Joined: May 4, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby ovidiu » May 8th, 2011, 1:51 pm

I guess its only needed to activate and deactivate QuickCache, since all it seems ot add is this line for activating quick cache: define('WP_CACHE', true);
User avatar
ovidiu
Registered User
Registered User
 
Posts: 8
Joined: April 15, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby simon » May 9th, 2011, 5:37 am

yes, so its working ;) :)
User avatar
simon
Registered User
Registered User
 
Posts: 6
Joined: May 4, 2011

Re: Is permission 755 really needed to run Quickcache?

Postby williamblake621 » January 19th, 2012, 1:17 pm

wow such a decent discussion which help me a lot :) thanks for decent thread.
User avatar
williamblake621
Registered User
Registered User
 
Posts: 1
Joined: November 30, 2011


Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron