Disable Magic Quotes GPC for Joomla

Published on: October 14, 2014
Difficulty: Medium

When installing Joomla on a shared package, the pre-installation checklist will often show an error next to the “Magic Quotes GPC Off” value:

——————————————————————————————————————————————
joomla_magic_quotes
——————————————————————————————————————————————

To resolve this issue, use the following steps (replace USER and JOOMLAINSTALL with the username of the cPanel account and joomla install directory in question):


1. Using either cPanel file manager or SSH, navigate to the install directory of Joomla (e.g. /home/USER/public_html/JOOMLAINSTALL)

2. Open the file named “php.ini”. If there is no “php.ini” file in the directory, create the file and add the following:



magic_quotes_gpc = Off

3. Open the file named”.htaccess”. If there is no “.htaccess” file in the directory, create the file and add the following:



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

4. Refresh the Joomla installer and the error should be gone.

If there are any issues, please do not hesitate to contact us for assistance.



Back To Top