Page 1 of 1

File Permissions on 1.9.4.2

Posted: Mon Jul 11, 2011 2:06 am
by w333zer
Hi,

I have a file permission problem somewhere (I think!). I have done a fresh install of 1.9.4.2 and was just about to install some modules which I use on other sites but Module Manager is telling me "WARNING: Insufficient directory permissions to install modules. You may also be experiencing problems with PHP Safe mode. Please ensure that safe mode is disabled, and that file system permissions are sufficient."

Also on the modules page I get a similar message. "The modules folder (and/or the uploads folder) is not writable, if you would like to install modules by uploading an XML file you need ensure that these folders have full read/write/execute permissions (chmod 777). Safe mode may also be in effect."

Initially I though it was PHP running in safe mode but my provider has now turned that off and I have double checked.

System Information is all good apart from:

Test for remote URL (test_remote_url): Caution
fopen: Connection failed!

By my understanding fopen is only used for updates so it shouldnt make any difference (at the moment anyway).

So what I have tried:

Permission on modules folder (and sub directories) set to 777
Permission on uploads folder set to 777
Changed file creation mask to 002 and 000 - output is the same
Results
Owner: N/A
Permissions: N/A

I thougt this was very weird - it should at least give me what the permissions are.

Anyone got any suggestions? I'm at a bit of a loss as to what to do next. Everything else seems to be running perfectly.

Cheers W

Re: File Permissions on 1.9.4.2

Posted: Tue Jul 19, 2011 2:28 am
by w333zer
Ok, Just an update as I still cant get Module Manager to work or update.

I have read http://forum.cmsmadesimple.org/viewtopi ... 05&start=0 and learnt a lot about permissions and even got a copy of webadmin.php to look at changing permissions (by the way that's an amazing script).

But I think I have concluded the problem is one of file ownership and the way Plesk handles that ownership. For example, I have a cmsms running on cpanel and using webadmin.php I can see the Owner and the Group are the same user whereas running webadmin.php on Plesk the Owner and Group have different users.

Also, the output of the File Creation Mask is - Owner: N/A Group: N/A.

So I am going back to my host web24.com.au - only now they want to know how to replicate the problem.

It's getting all rather frustrating. Anybody with any suggestions? Or had issues with sites running Plesk?

Re: File Permissions on 1.9.4.2

Posted: Mon Jul 25, 2011 10:17 am
by SanderDuif
We're running CMSMS sites on Plesk and have no problems with file permissions. In our case the files are either uploaded through FTP (with the FTP user) or SSH (different user). After installing we always make sure all files are under the FTP user and give 777 permissions to the modules directory.

In that case the webuser (Apache) has write permissions to the modules folder.

Our File Creation test always outputs N/A - N/A as well but we don't have any problems installing modules through the module manager.

Can you check under "System Information" -> PHP if safe mode is really off? If it is your host would probably be the best place to ask for help.

Re: File Permissions on 1.9.4.2

Posted: Wed Jul 27, 2011 4:15 am
by w333zer
Ok, I tested the on another domain running cPanel and everything just worked...

So instead of any more head banging I decided to pull the pin with that host and go with another.

So in summary,
  • CMSMS is as always a fantastic product
  • CMSMS runs fantastically on cPanel
  • Plesk is a pain
So until someone convinces me otherwise I would not recommend anyone to use CMSMS running on Plesk... Beware, you are asking for issues.

Re: File Permissions on 1.9.4.2

Posted: Wed Jul 27, 2011 12:18 pm
by M@rtijn
w333zer wrote: So until someone convinces me otherwise I would not recommend anyone to use CMSMS running on Plesk... Beware, you are asking for issues.
SanderDuif wrote:We're running CMSMS sites on Plesk and have no problems with file permissions.
:-\