"Modules folder is not writable" etc, [SOLVED]
Posted: Thu Nov 29, 2012 12:40 am
Hello to everybody. I'm currently building a web site now on actual web server. I tested cmsms on my own computer via MAMP and didn't experience this problem that I'm struggling with now.
When I go to the Modules-section in the admin console, I get the following error message:
The web server has safe mode off, and as far as I can understand from the view my ftp-software provides me, I'm able to see and change the file and folder permissions. For Modules-folder the permissions are currently 777, folders inside it have permissions 705. Same applies to the Uploads-folder. This is also verified in the system information. So I have now ensured that the safe mode is off, and the file system permissions are sufficient, as suggested by the Module Manager error message, so now what?
Somewhere it was suggested that incorrect paths from config.php to these files might result in these error messages, because cmsms might interpret not having sufficient permissions to write to these folders, if it fails to do so, even if the reason in fact was that the folders didn't exist in the place mentioned in the config.php -file. The installation didn't write root_path/url or uploads_path/url -variables to the config-file, it only contained:
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'username;
$config['db_password'] = 'password';
$config['db_name'] = 'database name';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'my timezone';
(obviously with the actual values there...)
Although from what I read i gathered that mentioning root- and upload -pahts isn't necessary, I tried adding those paths to the config. Everething still seems to be working as before, but this unfortunately applies also to the error messages. My additions didn't help. I added something like this:
$config['root_path'] = '/home/username/public_html';
$config['uploads_path'] = '/home/username/public_html/uploads';
Have I formulated these correctly, or do you wiser ones suspect these would be any help anyway? Are there other places than just the config.php that might contain paths to Uploads-folder (or root, or modules), that might be wrong and causing the problem?
Other stuff that I've checked is the System Information, and only red X there is the max_execution_time (value is 10), which at least according to my logic shouldn't have affect on this problem. Permissions-section there doesn't express any distress, everything is marked with the green ok-sign:
tmp /home/username/public_html/tmp (0777)
templates_c /home/username/public_html/tmp/templates_c (0705)
modules /home/username/public_html/modules (0777)
File Creation Mask (umask) /home/username/public_html/tmp/cache (0705)
config_file 0444
The CMSMS version is 1.11.2.1 "Isabela"
Php-version is 5.3.8-pl0-gentoo
Database is MySQL, version 5.1.49, Apache version I actually don't know where to find.
Versions of the installed modules are
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7
If anyone might have an idea how to solve this issue, I'd be forever grateful.
When I go to the Modules-section in the admin console, I get the following error message:
If I proceed to the Module Manager-page, I get an error message worded a bit differently:"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."
Result is obviously, that I'm not able to add any new modules to my site (particularily gallery was what I needed), I can't upload the xml-files nor add them from a list in the Module Manager. Module Manager actually lets me browse the list of modules in the Available Modules-tab, but the "Status/Action" for all of them is "Cannot download"."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."
The web server has safe mode off, and as far as I can understand from the view my ftp-software provides me, I'm able to see and change the file and folder permissions. For Modules-folder the permissions are currently 777, folders inside it have permissions 705. Same applies to the Uploads-folder. This is also verified in the system information. So I have now ensured that the safe mode is off, and the file system permissions are sufficient, as suggested by the Module Manager error message, so now what?
Somewhere it was suggested that incorrect paths from config.php to these files might result in these error messages, because cmsms might interpret not having sufficient permissions to write to these folders, if it fails to do so, even if the reason in fact was that the folders didn't exist in the place mentioned in the config.php -file. The installation didn't write root_path/url or uploads_path/url -variables to the config-file, it only contained:
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'username;
$config['db_password'] = 'password';
$config['db_name'] = 'database name';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'my timezone';
(obviously with the actual values there...)
Although from what I read i gathered that mentioning root- and upload -pahts isn't necessary, I tried adding those paths to the config. Everething still seems to be working as before, but this unfortunately applies also to the error messages. My additions didn't help. I added something like this:
$config['root_path'] = '/home/username/public_html';
$config['uploads_path'] = '/home/username/public_html/uploads';
Have I formulated these correctly, or do you wiser ones suspect these would be any help anyway? Are there other places than just the config.php that might contain paths to Uploads-folder (or root, or modules), that might be wrong and causing the problem?
Other stuff that I've checked is the System Information, and only red X there is the max_execution_time (value is 10), which at least according to my logic shouldn't have affect on this problem. Permissions-section there doesn't express any distress, everything is marked with the green ok-sign:
tmp /home/username/public_html/tmp (0777)
templates_c /home/username/public_html/tmp/templates_c (0705)
modules /home/username/public_html/modules (0777)
File Creation Mask (umask) /home/username/public_html/tmp/cache (0705)
config_file 0444
The CMSMS version is 1.11.2.1 "Isabela"
Php-version is 5.3.8-pl0-gentoo
Database is MySQL, version 5.1.49, Apache version I actually don't know where to find.
Versions of the installed modules are
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7
If anyone might have an idea how to solve this issue, I'd be forever grateful.