Page 1 of 1

modules installing..... Aaaarghhhhh no luck Help help help

Posted: Sun Oct 14, 2007 11:42 pm
by woxman
Hi all !
Hope I can find some knowledge over here. Since a week i've been trying to install new modules (Cataloger and CustomContent) but for some reason it does not work.

I've tried to upload the XML file but i get a message that my rights are not according to the neede standards (777). Ive changed and changed etc. but it does not work. I made some maps that the modules need and put them in 777 mode and tried to install the xml file again. Now i have a partioal installed module (but not working, DTD version missing) and guess what. All maps are back in 757 and i'm no longer able to change them into 777 (ws_ftp). I even can't delete them (with my owner rights)
The error by uploading xml files had to do with corrupt files (tried older versions as well) Yes, my server is in PHP safe mode and can't be upgraded unless i pay more for an extra big account (which i don't need)

So then, the other option is to download and install from the module manager. No luck eighter. Here i get a checksum error.

I did manage to upload the complete maps with all files into my server but the module manager does not see / recognize them so i can't use it.

So far.... Anyone any solutions ??

Looking forward :-)

Herb

Re: modules installing..... Aaaarghhhhh no luck Help help help

Posted: Mon Oct 15, 2007 12:11 am
by michelG
Give the experts more details:

- CMSms version
- module versions
- installed at root or in sub-folder
- server configuration: unix? apache version? hosted?
- etc.

more they know, better will be the help!


Michel

Re: modules installing..... Aaaarghhhhh no luck Help help help

Posted: Mon Oct 15, 2007 11:48 am
by woxman
Right so...

CMS 1.1.4.1 (but problem occured with older version as well)
Cataloger 0.5 / 0.5.1 / 0.5.2 etc - 0.5.5
CustomContent 1.4.3 up to  1.4.9 (tried them all)
CMS is installed in root and in a subfolder for testing purposes
Hosted server
Php safe mode

Funny thing is when I log in into my website by the control panel, I see the submaps as well and I can't remove them here too. It's created by the user apache

When i remove the maps through the online software provided by the hoting servce I can remove them. Then, i create them again manually, and reinstall the module. Now it's working but hell of work.

So when I let CMS do installation by XML files a user called Apache creates maps and chmods to 757 instead of 777

getting more and more confusing.....

Anyone anything ?

Re: modules installing..... Aaaarghhhhh no luck Help help help

Posted: Mon Oct 15, 2007 1:13 pm
by RonnyK
Herb,

as you're running in safe_mode the best way to install is using the zip-files from the dev-area, extract them and then transfer the modules to your domain. From the "Extensions -> Modules" you should then do the install, as you only transferred the file. This way, a little more work then using "Extensions -> Module Manager" is the workaround for running in Safe_Mode as well. The modules will then have the proper user set as owner to pass the check Safe_mode does.

Ronny

Re: modules installing..... Aaaarghhhhh no luck Help help help

Posted: Wed Oct 31, 2007 2:48 pm
by warden
There are a lot of posts about using CMSMS on a host with safe_mode is on. I know as I am setting up a site and my new host has PHP set up with safe_mode on.

After reading this post I used the tool webadmin.php mentioned there and can now succesfully install models through the Module Manager. The process involves more clicks but is quite straightforward once you know how. And that's why I want to share with you how I solved it.

So, this is a Howto about installing modules using the Module manager when your host has PHP running in safe_mode.

The key element is a script named webadmin.php. It can be found at: http://wacker-welt.de/webadmin/
Download it and upload it to some directory on your host.

IMPORTANT: webadmin.php is a filemanager without any security measures of it's own. So be sure to place it in a password protected directory or delete it when you're finished.

In the Module Manager find the module you want to install and cllick the Download & Install link. Let's say you want to install the FrontEndUsers module.

With safe_mode on you'll probably get an error:

Error!

Could not create a file (permissions problem?) /home/httpd/vhosts/your_domain/httpdocs/modules/FrontEndUsers/templates/userlist.tpl


Everytime the Module Manager tries to create a directory and fails because safe_mode doesn't allow this it displays an error message similar to the one above.

Start webadmin.php in a new browser tab or window and navigate to the 'modules' directory. You'll see that the directory 'FrontEndUsers' has been created and when you go into it you'll find a lot of files. However the Module Manager was not able to create the required directory 'templates'.

Now manually create the directory 'templates' inside the 'FrontEndUsers' directory using webadmin.php.

Go back to the Module Manager page and hit your browsers Back button.
Again click the Download & Install link for the FrontEndUsers module.

This time another error is thrown at you. However, if you use webadmin.php to examine the content of the 'templates' directory you just created, you'll see that the Module Manager has put files in it. By creating the required directory manualy you enabled Module Manager to continue the installation.

The new error is something like this:

Error!

Could not create a file (permissions problem?) /home/httpd/vhosts/your_domain/httpdocs/modules/FrontEndUsers/lang/ext/pl_PL.php


This time create the directory 'lang' and repeat the above steps.
Do the same for the directory 'ext'.
Alternatively you could create both directories and then return to the Module Manager.

Simply create every directory you see in the error messages. Eventually Module Manager reports a successful installation of the module.

I hope this helps.
Ron