Page 1 of 1

Module Installation Permission Problems

Posted: Thu May 07, 2009 6:52 pm
by UserIsSimple
Hello,

I have tried to install several modules with XML files in the admin panel. But the installation always fails. It says it couldn't install "file XYZ" because of permission problems.

The CMOD-rights on the "module" folder are set to 777. I encountered that the installation routine creates the subfolder "ModuleWhatever" with the CHMOD-rights 747. After that, it installs the files in the module-folder. After that it fails: The routine tries to install some more subfolders but it has not enough rights to do that.

So I thought there must be a problem with the CHMOD-right 747 on the module folder. So I tried to create all the subfolders manually previously to the installation. I've created them via FTP and with CHMOD-rights 777. After that I ran the installation again and it worked.

But this can not be the solution. :-) Is it possible to change a setting so the installation routine will also use CHMOD 777 for subfolders? If yes, could it cause security issues if I would change it to 777?

Maybe this whole thing is not a CMSMS issue but a server issue. If yes, does anybody know what I would need to change on the server settings?

My configuration: latest CMSMS version, OS: Linux/Unix

Thanks,
Stefan

Re: Module Installation Permission Problems

Posted: Mon May 11, 2009 1:42 pm
by Pierre M.
Try 775 and 755 instead of 777. Some hosting providers have specific security configurations.
But you'd rather search the forum (with google) for 775 and 755.

Have you tried the SSH install ? It is easier to control fiel permissions (ls -l, chmod -R, etc).

BTW, please tell us "1.5.4" rather than "latest".

Pierre M.

Re: Module Installation Permission Problems

Posted: Wed Jun 10, 2009 3:02 pm
by UserIsSimple
Hello,

My problem still exists. SSH install is not possible for me because I do not have shell access.

- I’ve tried set CHMOD 775 and 755 on the “Module”-folder. However, the installation always fails.
- I’ve discovered that the CHMOD rights of the subfolder in the Module-folder (e.g. subfolder “skeleton”) will get the CHMOD rights 755 during installation

Do I maybe have to change CHMOD rights on a php-script which installs the modules? I’ve changed the CHMOD on the file “admin/listmodules.php”, but without any success.

I have no clue what else I could try to do. :-( Can someone help me?

Stefan

Re: Module Installation Permission Problems

Posted: Mon Jun 15, 2009 7:23 pm
by Pierre M.
Please show relevant extracts of System Information. And may be some information about your hosting.

Pierre M.

Re: Module Installation Permission Problems

Posted: Mon Jun 15, 2009 9:12 pm
by tyman00
Log files might also point you to the right permissions issue so you know where to begin. Check them out and see what they say.

Re: Module Installation Permission Problems

Posted: Thu Jun 25, 2009 7:36 pm
by UserIsSimple
Pierre M. wrote: Please show relevant extracts of System Information. And may be some information about your hosting.

Pierre M.
----------------------------------------------
Here it is:

Cms Version: 1.5.4

Installed Modules:

  I don't think that's relevant. The issue occurs with every module (e.g. "Skeleton")

Config Information:

   * php_memory_limit:
   * process_whole_template: false
   * max_upload_size: 16000000
   * default_upload_permission: 664 ( I have changed this setting, but it didn't help)
   * assume_mod_rewrite: true
   * page_extension: .php
   * internal_pretty_urls: false
   * use_hierarchy: true


Php Information:

   * phpversion: 5.2.5
   * md5_function: An (Ja)
   * gd_version: 2
   * tempnam_function: An (Ja)
   * magic_quotes_runtime: Aus (Nein)
   * memory_limit: 64M
   * max_execution_time: 30
   * safe_mode: An (Ja)
   * session_save_path: /srv/www/htdocs/web385/phptmp/ (0770)


Server Information:
   * Server Api: cgi-fcgi
    * Server-Software (server_software): Apache/2.2.3 (Linux/SUSE)
    * folder "modules": /srv/www/htdocs/web385/html/pg/cmsms/modules (0777) Erfolgreich abgeschlossen ("Erfolgreich" = successful)



----------------------------------------------

My webhoster is www.firestorm.ch. I don't know what else could be relevant for this issue. If you would need specific configuration parameters, I could ask my webhoster.
Unfortunately I can't find any useful information in the log files.

Re: Module Installation Permission Problems

Posted: Thu Jun 25, 2009 7:46 pm
by alby
You have safe mode enabled that create problem to install/uploads/....
Try to download tar.gz of module, uncompress in your locale PC, upload via FTP in modules folder and install in ListModules

Alby

Re: Module Installation Permission Problems

Posted: Thu Jun 25, 2009 8:35 pm
by UserIsSimple
alby wrote: You have safe mode enabled that create problem to install/uploads/....
Try to download tar.gz of module, uncompress in your locale PC, upload via FTP in modules folder and install in ListModules
I know that the install procedure with tar.gz would work. But it doesn't solve the xml installation problem. Some modules have only xml installations available, but no tar.gz installations.
I will try to disable safe_mode and look if this solves the problem. I am just wondering why nobody else have had this problem before.

Re: Module Installation Permission Problems

Posted: Thu Jun 25, 2009 8:43 pm
by alby
UserIsSimple wrote:
alby wrote: You have safe mode enabled that create problem to install/uploads/....
Try to download tar.gz of module, uncompress in your locale PC, upload via FTP in modules folder and install in ListModules
I know that the install procedure with tar.gz would work. But it doesn't solve the xml installation problem. Some modules have only xml installations available, but no tar.gz installations.
I will try to disable safe_mode and look if this solves the problem. I am just wondering why nobody else have had this problem before.
Because safe_mode is evil  :)
If module has xml only, install in local environment and upload module folder

Alby

Re: Module Installation Permission Problems

Posted: Wed Jul 08, 2009 1:12 pm
by UserIsSimple
alby wrote: You have safe mode enabled that create problem to install/uploads/....
My **** hoster doesn't want to disable the safe_mode. Is there a specific function, disabled by safe_mode, which is responsible for my problem?

If I know the function and can explain to my hoster that there is no other possibility to perform this task without the function, he maybe enables it for me.

Re: Module Installation Permission Problems

Posted: Wed Jul 08, 2009 1:29 pm
by alby
UserIsSimple wrote: If I know the function and can explain to my hoster that there is no other possibility to perform this task without the function, he maybe enables it for me.
There is not a specific function but of your php process
The only one is install via FTP

Alby