Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-28-2005, 10:26 AM   PM User | #1
onggie
New Coder

 
Join Date: Jan 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
onggie is an unknown quantity at this point
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
onggie is offline   Reply With Quote
Old 02-28-2005, 10:48 AM   PM User | #2
onggie
New Coder

 
Join Date: Jan 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
onggie is an unknown quantity at this point
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
onggie is offline   Reply With Quote
Old 03-03-2005, 07:34 AM   PM User | #3
onggie
New Coder

 
Join Date: Jan 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
onggie is an unknown quantity at this point
Anyone know the solution??
__________________
"Great Spirits have often encountered violent opposition from mediocre minds"
....Einstein
http://link.palgn.com.au/?m=l&u=392l
onggie is offline   Reply With Quote
Old 03-04-2005, 03:13 AM   PM User | #4
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,896
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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)
firepages is offline   Reply With Quote
Old 03-04-2005, 10:27 PM   PM User | #5
onggie
New Coder

 
Join Date: Jan 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
onggie is an unknown quantity at this point
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
onggie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:52 AM.


Advertisement
Log in to turn off these ads.