Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 05:45:40 AM

Pages: [1]   Go Down
  Print  
Author Topic: Error message when Installing OSCommerce...Help Please...  (Read 1552 times)
afbou3
Newbie
*
Offline Offline

Posts: 3


« on: September 20, 2006, 03:12:00 PM »

Hello  Help,

I'm new to lunarpages and oscommerce. I'm tried to install oscommerce but when I try to login I get the following error message:


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.

I tried to contact support by email but the response was very confusing. I contacted by phone and the first time the tech told me he dont know php and email support. I tried to follow the directions in the email but this time the install couldn't even be completed. I contacted support by phone another time and the tech was confused as well. When he tried to get help for they they wanted me to pay $75.

I just wanted to know if anyone on here is willing to help me understand this.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Here is the email I received:


Ticket Subject : Error message when installing oscommerce

Reply:
Hello,

Because we use suPHP to parse php files, you have the option of using a custom
php.ini file.

Your account can have multiple php.ini files on your account in different
folders so you can customize the php processing in different folders should
your script require it.  A php.ini file will not inherit down into subfolders,
however, you can create a .htaccess file in the same folder as the php.ini file
and place the following code into it:

suPHP_ConfigPath /home/username/public_html/path/to/php.ini

where "username" is your cPanel username.  This will cause the php.ini file to
effect all subfolders, unless a php.ini file is in a subfolder, at which point
the php.ini in the subfolder takes precendence.

In php.ini, you will need to use the actual php.ini syntax instead of the
php_value or php_flag syntax you would normally use in .htaccess (Which should
not be used at all):

setting_name = setting_value

So, this means if you move the settings from .htaccess to php.ini, you must
convert the format. Let's say you have the following line in your .htaccess
file:

php_value register_globals 0

the corresponding php.ini format is as follows:

register_globals = Off

Notice how the value 0 becomes Off and 1 becomes On. Now if your php_value has
quotes like the following, for example:

php_value include_path ".:/home/user/lib"

The corresponding php.ini format is:

include_path = ".:/home/user/lib"

and so on. You can see a list of entries you can use in your php.ini file at
http://us2.php.net/manual/en/ini.php. You should only use the settings you
need to change in your php.ini.

For the PHP settings you do not have in your php.ini file, PHP will use our
default configurations.



Your response will be greatly appreciated. Thank you in advance.

Fallon
Logged
tarheit
Galactic Royalty
*****
Offline Offline

Posts: 467


WWW
« Reply #1 on: September 21, 2006, 05:27:35 AM »

This post may explain how to setup a custom php.ini file a bit better:
http://www.lunarforums.com/forum/index.php?topic=33814.0

You can set register_globals = On (or Off) as necessary for osCommerce
(Steps 1, 2 and 3.  Ignore step 4 as it applies only to mambo/joomla installations)

(I am a bit surprised you had any problem because I thought that register_globals was On by default on most servers.)

-Tim
Logged

GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #2 on: September 21, 2006, 05:44:13 AM »

I think on newer servers register_globals is being set to off by default... could be wrong though. Still, my preference is to have it turned off and then essentially override it if needed with import_request_variables(). I'm somewhat surprised osCommerce requires that it be on.

Of course, I also thought I posted something about this last night... think I might need more sleep....
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #3 on: September 21, 2006, 05:48:43 AM »

Okay, not loosing my mind... it is here:
http://www.lunarforums.com/forum/index.php?topic=35182.msg264148#msg264148

For future reference, be careful with starting multiple threads on the same topic since it can get confusing later on trying to keep track of the different responses and who said what in each... best to just keep it all in one spot. If you think you might have posted it the wrong forum, or if you aren't sure where to post it, just pick one, then a mod can move it to a more appropriate forum if needed... Smile

Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
katrina1
Guest
« Reply #4 on: September 21, 2006, 06:01:55 AM »

register_globals are set off on the new servers.

afbou3, you have "register_globals=On" in your .htaccess file in public_html. Remove that line but leave the other. It belongs in php.ini and I do see it in there.

Looks like the rest has been taken care of.
Logged
afbou3
Newbie
*
Offline Offline

Posts: 3


« Reply #5 on: September 21, 2006, 09:29:55 AM »

Thank you all for your replies. I truely appreciate the help and support. For some reason I'm still getting the error. Even after I removed "register_globals=On" from the .htaccess file in public_html.
Logged
katrina1
Guest
« Reply #6 on: September 22, 2006, 09:01:16 PM »

If you are still seeing the error, PM me and we'll get that taken care of for you.  Bouncin for Joy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: