Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error: Register_globals Is Disabled In Php.ini


Guest

Recommended Posts

Posted

Wanting to setup osCommerce using a godaddy hosted account (linux hosting) and I believe I followed the instructions to the letter (have setup up php bulletin boards in the past so I know it works) and getting the following error trying to get to the /catalog/install directory

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

Any else run into this error before?

 

Thanks

Posted
Wanting to setup osCommerce using a godaddy hosted account (linux hosting) and I believe I followed the instructions to the letter (have setup up php bulletin boards in the past so I know it works) and getting the following error trying to get to the /catalog/install directory

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

Any else run into this error before?

 

Thanks

 

 

Hello, you need to create a file called '.htaccess' in the directory you wish to enable register_globals (ve sure to include it in both catalog and admin)|with the contents: 'php_flag register_globals' on the first line

 

this will sort out your problem :-)

 

Cheers

 

David

Posted
Hello, you need to create a file called '.htaccess' in the directory you wish to enable register_globals (ve sure to include it in both catalog and admin)|with the contents: 'php_flag register_globals' on the first line

 

this will sort out your problem :-)

 

Cheers

 

David

 

 

 

David, when I put that code on the first line (or any line for that matter) i get a different error

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] 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.

 

Frustrating :angry:

Posted
David, when I put that code on the first line (or any line for that matter) i get a different error

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] 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.

 

Frustrating :angry:

 

Try it like this

<IfModule mod_php4.c>
 php_value register_globals 1
</IfModule>

 

Grtz,

 

Arjan Gelderblom

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Posted

Hi i downloaded the latest version of oscommerce for windows and uploaded to my windows2003 server and tried to run the install directory its throwing me this error.

 

For /catalog/install i got this error message

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

 

For /catalog/ i get this error

 

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

 

mine is a windows2003 with php and mysql also available. could you please let me know what best way can i use to sort and get this installed. I tried in linux and had no errors at all.

 

 

regards

venkat

Posted
David, when I put that code on the first line (or any line for that matter) i get a different error

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] 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.

 

Frustrating :angry:

 

Sounds silly, but did you remove the ' ' from 'php_flag register_globals' i.e: php_flag register_globals?

 

David

Posted
Hi i downloaded the latest version of oscommerce for windows and uploaded to my windows2003 server and tried to run the install directory its throwing me this error.

 

For /catalog/install i got this error message

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

For /catalog/ i get this error

 

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

 

mine is a windows2003 with php and mysql also available. could you please let me know what best way can i use to sort and get this installed. I tried in linux and had no errors at all.

regards

venkat

 

This gives both solutions to your problem:

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

 

If you would like to know the best of the two it depends on what you want to do.. try searching google what register_globals does so you can think if you want it on/off for all sites (php.ini) or if you want it just on for this one (.htaccess). .htaccess example has been given!

 

Grtz,

 

Arjan Gelderblom

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Posted
Try it like this

# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
   SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
<IfModule mod_php4.c>
 php_value register_globals 1
</IfModule>

 

Still getting the register globals error--even after a total reinstall, is the above code correct. Sorry to sound so stupid.

Posted
# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
   SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
<IfModule mod_php4.c>
 php_value register_globals 1
</IfModule>

 

Still getting the register globals error--even after a total reinstall, is the above code correct. Sorry to sound so stupid.

 

Are you using PHP4 or PHP5? That could be a difference too... if it's 5 try changing

<IfModule mod_php4.c>

To:

<IfModule mod_php5.c>

 

Grtz,

 

Arjan Gelderblom

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Posted
use manual installation (ftp the files and edit the 2 configure.php files to match your server). The use the register globals module.

http://www.oscommerce.com/community/contributions,2097

 

and this has all the files for a stock osc.

http://www.oscommerce.com/community/contributions,2957

 

BUT can anybody tell me where my catalog diretory is I have instaled with Fantastico and I don't know how to start I get this error mesage: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...