Welcome, Guest
Username: Password: Remember me

TOPIC: Joomla 3 Magic Quotes on shared hosting

Joomla 3 Magic Quotes on shared hosting 7 years 1 month ago #4198

  • JohnO
  • JohnO's Avatar
  • Offline
  • Administrator
  • Posts: 5553
  • Thank you received: 895
  • Karma: 99
If you are having an issue with Magic Quotes on your shared hosting account please try the following. This solution worked for me and should work for other shared hosting accounts (but not all)

1: In your joomla folder create a file called php.ini
1A: If your site is examplewww.joomlage.com then the folder to place the file in would be public_html
1B: If your site is installed in a folder example www.joomlage.com/joomla-templates then the folder to place the file in would be public_html/joomla-templates

Add the following lines to the php.ini file
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

2: Now in the same folder you should see a .htaccess file. Open it and add the following line to the top of the file. You will need to edit the user part to the correct path to your site. If you do not know what it is please contact your host and ask them.

SetEnv PHPRC /home/user/public_html/php.ini

If successful then Magic Quotes should now be turned off. If this solution did not work for you your host may have another one or you can check out some more here. How to turn off magic quotes on shared hosting?
Last Edit: 7 years 1 month ago by JohnO.
The administrator has disabled public write access.
Time to create page: 0.144 seconds
Powered by Kunena Forum


We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.

Use code   JAN21 at checkout


10% off Everything!

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.