Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
magic_quotes_gpc
  • Posted: 25.09.2004, 04:12
     
    sickleofzeus
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    29.04.05
    Posts:
    2
    HI,

    I am in the first installation phase and have been struggling with the fact that on my apache web server has magic_quotes_gpc OFF by default. I am hosting more than one Apache-PHP-MySQL site and would prefer to turn on magic_quotes_gpc for just the PostNuke portion.

    So far my attempts to place:

    php_flag magic_quotes_gpc ON
    CHMOD check

    into a .htaccess file as instructed under the installation guidelines have been unsuccessful. I understood from the instructions that I should place the .htaccess file into the apache root. In my case this is /var/www/htdocs/ .

    I am concerned that this is going to negatively impact the other PHP-MySQL driven site because of the potential for applying excessive escape slashes to the other web site.

    Is there another location to place the .htaccess file?

    Such as /var/www/htdocs/postnuke/html/ ?
  • Posted: 24.10.2004, 19:33
     
    starrbuck
    rank:
    Softmore Softmore
    registered:
     October 2004
    Status:
    offline
    last visit:
    11.04.07
    Posts:
    80

    sickleofzeus

    I am in the first installation phase and have been struggling with the fact that on my apache web server has magic_quotes_gpc OFF by default. I am hosting more than one Apache-PHP-MySQL site and would prefer to turn on magic_quotes_gpc for just the PostNuke portion.

    So far my attempts to place:

    php_flag magic_quotes_gpc ON
    CHMOD check

    into a .htaccess file as instructed under the installation guidelines have been unsuccessful.


    The "CHMOD check" is actually part of the next section below on the screen. You supposedly only should put the first line in your .htaccess file. The second line is the header to the next area on the screen.

    However, this didn't work for me either. Everything seems to be working, though, so I question whether this is really needed anyway.
  • Posted: 24.10.2004, 20:15
     
    Kenshino
    rank:
    Professional Professional
    registered:
     September 2004
    Status:
    offline
    last visit:
    31.07.08
    Posts:
    935
    Your host might not allow URL rewriting, therefore your htaccess file won't work.
  • Posted: 24.10.2004, 20:30
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    The only thing that would affect the .htaccess from working would be if overrides were disabled. If Mod_Rewrite isn't enabled, that wouldn't affect the .htaccess, just any rewrite rules.
    I thought we had gotten past the need for Magic Quotes tho.
  • Posted: 24.10.2004, 20:32
     
    starrbuck
    rank:
    Softmore Softmore
    registered:
     October 2004
    Status:
    offline
    last visit:
    11.04.07
    Posts:
    80
    Right, it might not, but I could fix that. :wink:

    My host is my personal machine, which was built last Sunday and has been running Fedora Core 2 Linux for all of 6 days.

    My point was that it doesn't appear to do anything by changing this setting in .htaccess files with the default Apache configuration, and not turning on magic_quotes_gpc doesn't seem to have caused any issues (yet).

    BTW, nice avatar! :shock:
  • Posted: 24.10.2004, 20:34
     
    starrbuck
    rank:
    Softmore Softmore
    registered:
     October 2004
    Status:
    offline
    last visit:
    11.04.07
    Posts:
    80

    mhalbrook

    I thought we had gotten past the need for Magic Quotes tho.


    Exactly. Not having them enabled doesn't appear to be causing any difficulties. Maybe this should be verified and this warning removed from future installs...

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula