edbrown Posted February 25, 2004 Posted February 25, 2004 I'm trying to install OsCommerce on a shared server and I'm getting the following error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! I don't have access to the PHP.INI file. How can I install OsCommerce? Ed Brown www.go-britain.com
epass Posted February 25, 2004 Posted February 25, 2004 I also have this problem. Don?t know what to do. /epass
detsouvalas Posted February 25, 2004 Posted February 25, 2004 Try to enable register_globals just for yourself ... I modified my .htaccess file and included following lines at the beginning # Set Globals ON php_flag register_globals on It worked just fine locally (apache/win XP) and on my online 'net space' (shared web server on apache/*nix). Last but not least, make a search in osCommerce forums, it's a question/problem discussed very often until now! Antonios Antonios
epass Posted February 25, 2004 Posted February 25, 2004 still don?t work. Added in .htaccess # enable register_globals php_flag register_globals on
Guest Posted February 25, 2004 Posted February 25, 2004 ask your host if they will enable register_globals for you
epass Posted February 25, 2004 Posted February 25, 2004 They won?t because of security reasons. in .htaccess it?s written register_globals 1 And i've tried both 1 and on. When is .htaccess executed?
OceanRanch Posted February 25, 2004 Posted February 25, 2004 Your host probably also has the Apache site configuartion "Allow Overides" set to none. So your individual .htaccess is ignored by apache at run time. Time to consider looking for a new host...... Tom
Guest Posted February 25, 2004 Posted February 25, 2004 go here to understand how to do things. basically to set via htaccess file you have to have your httpd.conf file set to allow overrides. do you have access there?
detsouvalas Posted February 25, 2004 Posted February 25, 2004 Ah, well then ... If you are good in php or if you have the necessary courage and patience, you could try to apply one of the user submitted propositions on www.php.net, on how to overturn the "register_globals off" and then "turn off" (by commenting out) the osC warning/error message. (Please note, you are on your own for doing this, it's just an idea that could work and I don't know if there are any security risks for your future shop). You could also try to install the CVS version of osC (with any advantage and disadvantage that this version may have), which, if I remember well, is (or at least the catalog is) "register_globals off"-compliant ... Otherwise ... wait for osC 2.2 MS 3 to be released :-) or change the hosting company! B) If you need to know more about .htaccess, make a google search (that's the answer for the "where" question!) ;-) Antonios Antonios
edbrown Posted February 26, 2004 Author Posted February 26, 2004 I use Hostway as my ISP and they came back with the solution below: Hi, You are setting up a third party product, OsCommerce, on your shared hosting site. it is apparent that part of it's configuration, this requires a php.ini file to be created and then uploaded to your FTP web site, into the following path: /path/removed/for/security/cgi-bin/ The php.ini file is a not a standard file that ISP's such as Hostway will provide automatically, it is your responsiblity as the site administrator to create this. For more info on how to create a standard php.ini, see: http://uk2.php.net/configuration http://tracker.tradedoubler.com/click?p=12...=967926&g=19587 Ed Brown www.go-britain.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.