Cannot save Global Configuration changes: Difference between revisions
From Joomla! Documentation
| Line 20: | Line 20: | ||
== ''' Note on systems with SELinux ''' == | == ''' Note on systems with SELinux ''' == | ||
When dealing with SELinux we need to update context of the /var/www/html/sites/ to read and write: | When dealing with SELinux we need to update context of the /var/www/html/sites/ to read and write:<br> | ||
# chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/ | <nowiki># chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/</nowiki> | ||
To check a SELinux context use ls command with -Z option. | To check a SELinux context use ls command with -Z option. | ||
Example: | Example:<br> | ||
# ls -Z settings.php | <nowiki># ls -Z settings.php</nowiki> | ||
-r--r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 settings.php | -r--r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 settings.php<br> | ||
For files copied from ~/ you may have wrong context as: | For files copied from ~/ you may have wrong context as:<br> | ||
# ls -Z default.settings.php | <nowiki># ls -Z default.settings.php</nowiki> | ||
-rw-r--r--. 6226 6226 unconfined_u:object_r:user_home_t:s0 default.settings.php | -rw-r--r--. 6226 6226 unconfined_u:object_r:user_home_t:s0 default.settings.php | ||
Latest revision as of 20:07, 16 January 2012
Should this be in the FAQ page?
One Fix for this problem (at least)
Having struggled with this problem for 2 days, I was very surprised to find that there is a simple solution.
The answer appears to be to add this line to the .htaccess file in the root directory of the specific Joomla installation:
"Here's what works for me. I'm using Joomla 1.5.3, SEF: on, Apache mod_rewrite; on. Just add this line to your .htaccess."
SecFilterEngine Off
The author of this fix is to be found here: http://forum.joomla.org/viewtopic.php?p=1289015&sid=ff0da8dfe820f605d8dd5faf09222fb0#p1289015
Just don't forget to comment out this line after changing one's site configuration ...
hope that this helps others. John K
Note on systems with SELinux
When dealing with SELinux we need to update context of the /var/www/html/sites/ to read and write:
# chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/
To check a SELinux context use ls command with -Z option.
Example:
# ls -Z settings.php
-r--r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 settings.php
For files copied from ~/ you may have wrong context as:
# ls -Z default.settings.php
-rw-r--r--. 6226 6226 unconfined_u:object_r:user_home_t:s0 default.settings.php