register_globals and .htaccess

Discussion in 'Installation/Configuration' started by BeLuBehrens, Mar 5, 2007.

  1. BeLuBehrens

    BeLuBehrens New Member

    I intend the following:
    I would like to generally have the register_globals = off, that am already like that. Now would I like unite listings with one .htaccess to file on on to place.

    I already made the following:

    1.) .htacces file provides with contents “php_flag register_globals on”

    2.) Httpd.conf changed. Now this looks in such a way:

    <Directory /var/www/*/web>
    Options +Includes -Indexes
    AllowOverride All
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all

    My httpd.cong lies in the listing etc./apache2/
    I think that am correct with SUSE or give it still another another for it in question come?

    3.) All service again started.

    Unfortunately there is the error message:
    … 500 Internal server error error…

    The error.log says:
    [Mon Mar 05 21:39: 37 2007] [alert] [client XXX] /var/www/web11/web/.htaccess: php_flag emergency allowed here

    Where is the error?

    Can someone help me further?

    Thank You!
    Last edited: Mar 5, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I recommend to put the line:

    php_flag register_globals on

    in the apache directives field of the website and not in a .htaccess file.
  3. BeLuBehrens

    BeLuBehrens New Member

    Thank You Till!

    Thank you Till!

    That is really the simplest and best method.

    Thanks for the fast answer!

Share This Page