Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oscommerce not compatible with php5 ?


feelexit

Recommended Posts

i m using php4 before, installing oscommerce is not a problem, as long as i follow instructions. installation is really easy.

 

now i switch to php5. i guess for security reason, global_var is turned off by defualt. and also other config are changed. it gives me alot trouble to install oscommerce. I download latest windows server suit from www.devside.net,

 

my windows box : winxp home edition, php5, mysql 4.3

 

I just couldn't install oscommerce on php5. Just curious if some1 run oscommrece on php5, give me some tips how you you did it.

 

my stuck on 3rd step, after i entered all DB info, click continue button. next page showed up, but only showed up half, not completely. its weired , cuz ,no error message, so i dont know how to debug it.

 

now , i m ready to switch back to php4, but still want to give php5 another shot.

 

please help me out, thanx

Link to comment
Share on other sites

i m using php4 before, installing oscommerce is not a problem, as long as i follow instructions. installation is really easy.

 

now i switch to php5. i guess for security reason, global_var is turned off by defualt. and also other config are changed. it gives me alot trouble to install oscommerce. I download latest windows server suit from www.devside.net,

 

my windows box : winxp home edition, php5, mysql 4.3

 

I just couldn't install oscommerce on php5. Just curious if some1 run oscommrece on php5, give me some tips how you you did it.

 

my stuck on 3rd step, after i entered all DB info, click continue button. next page showed up, but only showed up half, not completely. its weired , cuz ,no error message, so i dont know how to debug it.

 

now , i m ready to switch back to php4, but still want to give php5 another shot.

 

please help me out, thanx

 

Hi, I had the same problem yesterday when I was installing it on PHP5, Apache 2, and MySQL4.

 

It's a big shame that they haven't gotten their act together to support an initiative by PHP to make their platform more secure by turning off the global variables.

 

Anyway, basically you just have to trust that oscommerce's software is secure, and you'll just have to turn on global vars.

 

The relevent section of the php.ini file should look like:

---------------------------

; This directive describes the order in which PHP registers GET, POST, Cookie,

; Environment and Built-in variables (G, P, C, E & S respectively, often

; referred to as EGPCS or GPC). Registration is done from left to right, newer

; values override older values.

variables_order = "GPCS"

 

; Whether or not to register the EGPCS variables as global variables. You may

; want to turn this off if you don't want to clutter your scripts' global scope

; with user data. This makes most sense when coupled with track_vars - in which

; case you can access all of the GPC variables through the $HTTP_*_VARS[],

; variables.

;

; You should do your best to write your scripts so that they do not require

; register_globals to be on; Using form variables as globals can easily lead

; to possible security problems, if the code is not very well thought of.

register_globals = On

 

; Whether or not to register the old-style input arrays, HTTP_GET_VARS

; and friends. If you're not using them, it's recommended to turn them off,

; for performance reasons.

register_long_arrays = On

----------------------------------

 

Once you do that it will work a treat, but read up on the php website in regards to global vars to make sure you don't expose yourself when you're installing other PHP scripts.

 

Read the info at

 

http://php.net/manual/en/security.registerglobals.php

 

-----------------------------------

 

Happy reselling!

Link to comment
Share on other sites

I have osC running just fine under php5 with Register Globals disabled (using the Contribution).

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...