logo-responsive

  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.

Joomla 3 magic quotes on shared hosting

Posted by on in Joomla administration help
  • Font size: Larger Smaller
  • Hits: 17469
  • 0 Comments
  • Subscribe to this entry
  • Print

In order to disable magic quotes the following solution worked for me on a shared hosting account.  If you are having an issue with Magic Quotes on your shared hosting account please try the following.

In your joomla folder create a file called php.ini

NOTE:
1A: If your site is example www.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
extension=pdo.so
extension=pdo_mysql.so

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?

Rate this blog entry:

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest
Guest Friday, 07 August 2020

Newsletter




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   AUG20 at checkout

    AUGUST    

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.