how to turn off magic quotes in .htaccess file for joomla?

I started using Joomla 3 and now have problems and on searching i found that magic quotes need to be off for it to function correctly.

I put these lines in the .htaccess file

php_value magic_quotes 0
php_flag magic_quotes off
php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc off

and Now I am getting Internal Server Error..

how to disable magic quotes in .htaccess file


in setup.php, change the code:

// Check for magic quotes gpc.
$option = new stdClass;
$option->label  = JText::_('INSTL_MAGIC_QUOTES_GPC');
$option->state  = (ini_get('magic_quotes_gpc') == true);
$option->notice = null;
$options[] = $option;

you see, force set to true.... then jol can be install done


Create a php.ini or php5.ini file with the following:

magic_quotes_gpc = Off

Put it in your Joomla 3 root. Then change the htaccess.txt in your Joomla 3 root to .htaccess. Add the following lines to the .htaccess file (at the top), don't forget to change php.ini to php5.ini when applicable :

<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule>

note: dont forget to change suPHP_ConfigPath with your path

reference from https://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3

链接地址: http://www.djcxy.com/p/26562.html

上一篇: 如何关闭Joomla 3的魔术引号gpc?

下一篇: 如何关闭joomla的.htaccess文件中的魔术引号?