Module Installation Permission Problems

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
UserIsSimple
Forum Members
Forum Members
Posts: 15
Joined: Thu Apr 23, 2009 1:00 am

Module Installation Permission Problems

Post 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
Last edited by UserIsSimple on Fri May 08, 2009 6:03 pm, edited 1 time in total.
Pierre M.

Re: Module Installation Permission Problems

Post 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.
UserIsSimple
Forum Members
Forum Members
Posts: 15
Joined: Thu Apr 23, 2009 1:00 am

Re: Module Installation Permission Problems

Post 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
Pierre M.

Re: Module Installation Permission Problems

Post by Pierre M. »

Please show relevant extracts of System Information. And may be some information about your hosting.

Pierre M.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Module Installation Permission Problems

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
UserIsSimple
Forum Members
Forum Members
Posts: 15
Joined: Thu Apr 23, 2009 1:00 am

Re: Module Installation Permission Problems

Post 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.
Last edited by UserIsSimple on Thu Jun 25, 2009 7:41 pm, edited 1 time in total.
alby

Re: Module Installation Permission Problems

Post 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
UserIsSimple
Forum Members
Forum Members
Posts: 15
Joined: Thu Apr 23, 2009 1:00 am

Re: Module Installation Permission Problems

Post 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.
alby

Re: Module Installation Permission Problems

Post 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
UserIsSimple
Forum Members
Forum Members
Posts: 15
Joined: Thu Apr 23, 2009 1:00 am

Re: Module Installation Permission Problems

Post 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.
alby

Re: Module Installation Permission Problems

Post 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
Post Reply

Return to “CMSMS Core”