+ Reply to Thread
Results 1 to 3 of 3

Thread: magic_quotes_gpc - Host or Script?

  1. #1
    Join Date
    Dec 2010
    Posts
    1

    Question magic_quotes_gpc - Host or Script?

    I contacted my host (GoDaddy) to have them turn off "magic_quotes_gpc" as I got the following error during installation:

    Code:
    You have "magic_quotes_gpc" actually set to "ON" at your server while you should have it set to "OFF". Contact your host support and ask to turn it off.
    GoDaddy replied with:

    Thank you for contacting online support. This setting is not one that is on your server but rather within your scripting itself. Unfortunately, because we do not provide coding support, we are unable to determine what specifically in your code may cause this command.

    If you determine there is no issue with the code itself and believe the issue is server related, please reply with specific evidence of this and we will investigate the matter further.
    I googled turning the setting on and off, and the one solution I found was:

    1) In your CPanel's File Manager (or any FTP client), locate the file /public_html/.htaccess
    2) Edit the file .htaccess thru your CPanel's File Manager (or any FTP client) and add the following line at the end of your .htaccess file:

    php_flag magic_quotes_gpc Off

    3) Save .htaccess file. You are done!
    This results in a "500 Internal Service Error" when visiting the install/index.php file, and goes away if I remove the line.

    How do I proceed?
    Thanks ahead of time,

    Adam.

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default Re: magic_quotes_gpc - Host or Script?

    OR is complaining that PHP's "magic quotes" are turned ON. Magic quotes are an optional and antiquated PHP server setting which is controlled by your host. Your host just needs to set it to OFF (magic_quotes_gpc = Off) in PHP for you. Examples you find on the web for disabling this via .htaccess are not always going to work for all hosts, especially if you are using slowdaddy. You can expect most things you try there to give you 500 internal server errors.

    Just a heads-up, Godaddy is not a good host for running Open-Realty, you may struggle for quite a while getting everything working because the support is so poor. A good host for instance would already know about PHP's magic quotes feature and how to turn it on/off.
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  3. #3
    Join Date
    Jun 2009
    Posts
    1

    Default Re: magic_quotes_gpc - Host or Script?

    The value I had to use in .htaccess was

    Code:
    php_value magic_quotes_gpc off
    Cheers
    Patrick

+ Reply to Thread

Similar Threads

  1. Moving to a new host - almost there ;) need help
    By czaras in forum Installation/Configuration Help (CLOSED)
    Replies: 7
    Last Post: 09-06-2010, 05:40 PM
  2. Web Host
    By tlr100006 in forum General Help (CLOSED)
    Replies: 3
    Last Post: 08-29-2006, 10:06 PM
  3. Need help in after i moved from one host to another
    By johannes in forum Installation/Configuration Help (CLOSED)
    Replies: 20
    Last Post: 06-28-2006, 05:10 PM
  4. Wierd Issue with script? is this php or the script?
    By Spotsforsale in forum Installation/Configuration Help (CLOSED)
    Replies: 0
    Last Post: 05-15-2006, 07:00 PM
  5. host doesn't allow register_globals on
    By tomhanna in forum HELP (CLOSED)
    Replies: 2
    Last Post: 07-13-2005, 08:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts