---
title: "How to turn magic_quotes_gpc off"
description: "Many Open Source Software programs like Drupal, Prestashop, Joomla, Etc., require magic_quotes_gpc to be turned off. The snapshot to the right shows the magic quotes On in the phpinfo.php page. This..."
url: https://www.inmotionhosting.com/support/edu/software/turn-magic-quotes-gpc-off/
date: 2013-05-10
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Software"]
type: post
lang: en
---

# How to turn magic_quotes_gpc off

[![Parameters OK Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/05/edu_prestashop1.5_350_magic-quotes-on.png)](/support/wp-content/uploads/2013/05/edu_prestashop1.5_350_magic-quotes-on.png)

Many Open Source Software programs like Drupal, Prestashop, Joomla, Etc., require *magic_quotes_gpc* to be turned off. The snapshot to the right shows the magic quotes *On* [in the phpinfo.php page](/support/website/how-to-create-a-phpinfo-page/). This article will show you how to turn *maging_quotes_gpc* off on your server.

## Turning magic_quotes_gpc off

1. [Login into your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. [Go to the File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/), select your* public_html* directory and click **Go**.
3. Open your* php.ini* with the [code editor](/support/edu/cpanel/file-manager-code-editor/).[![Code view of magicquotes Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-4-magic-quotes.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-4-magic-quotes.png) Find the **magic_quotes_gpc** line like the code below and change it **from On to Off**. (See image to the right) ;Magic quotes ; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = On Your php.ini should have the following code. ;Magic quotes ; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off Save the changes.
4. [Make the php.ini recursive in the .htaccess](/support/edu/wordpress/pages-vs-posts/).
5. [![Parameters OK Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/05/edu_prestashop1.5_350_magic-quotes-off.png)](/support/wp-content/uploads/2013/05/edu_prestashop1.5_350_magic-quotes-off.png) Visit your *phpinfo* page by going to your domain and adding phpinfo.php at the end of the URL like the example below. https://example.com/phpinfo.php
