I recently uploaded osCommerce. As soon as it was uploaded I went to install it and I got this problem
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
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
So I have edit the .htaccess with nothing in it and upload it.
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.
If anyone could help I would be very grateful!
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
Anyone know the solution??
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.
ok thanks a lot I will try that now!