Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    osCommerce/.htaccess

    I recently uploaded osCommerce. As soon as it was uploaded I went to install it and I got this problem

    Code:
    FATAL ERROR: register_globals is disabled in php.ini, please enable it!
    Now, I was reading on the osCommerce forum and they said to create a .htaccess file and put php_value register_globals 1 in it. First off I know how to setup a .htacces. I tried creating one in notepad and I was able to create the file. Then I pasted php_value register_globals 1 in it saved it and uploaded it. When I upload it, the file disappears and when I try look at the site, it comes up with

    Code:
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator,  and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    So I have edit the .htaccess with nothing in it and upload it.

    If anyone could help I would be very grateful!
    "Great Spirits have often encountered violent opposition from mediocre minds"
    ....Einstein
    http://link.palgn.com.au/?m=l&u=392l

  • #2
    New Coder
    Join Date
    Jan 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just had a look at the error log in cpanel and it's saying this

    /public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

    I have also tried using this, but no go either php_flag register_globals on

    public_html/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
    "Great Spirits have often encountered violent opposition from mediocre minds"
    ....Einstein
    http://link.palgn.com.au/?m=l&u=392l

  • #3
    New Coder
    Join Date
    Jan 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anyone know the solution??
    "Great Spirits have often encountered violent opposition from mediocre minds"
    ....Einstein
    http://link.palgn.com.au/?m=l&u=392l

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    for flags such as register_globals try
    php_flag register_globals on

    However, if your host has used php_admin_flag or php_admin_value in one of the httpd configuration files then you can not override this via .htaccess/ini_set etc.

    Another possible issue (which would produce the error you are getting) is PHP may be running as a CGI in which case the .htaccess flags won't work anyway.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #5
    New Coder
    Join Date
    Jan 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok thanks a lot I will try that now!
    "Great Spirits have often encountered violent opposition from mediocre minds"
    ....Einstein
    http://link.palgn.com.au/?m=l&u=392l


  •  

    Posting Permissions

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