If this is your first visit, check our documentation. To post, register or login.

safe_mode = ON ??

Locked

Started by chrisco on 23 Jun 2006, 6:59 AM · Views: 2,063

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Jun 2006, 6:59 AM
#1
chrisco avatar

chrisco

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

safe_mode = ON ??

This is my first try installing Zen Cart. I've installed osCommerce before on another server.

The install is reporting Safe Mode is on, but I've looked at /etc/php.ini and at the php.ini that is specific to my VirtualHost, and in both cases, "SAFE_MODE = Off".

Could I be missing another php.in or is something else wrong?

Thanks!
Chris

23 Jun 2006, 7:10 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: safe_mode = ON ??

If you click the "PHP Info" link in the middle of the System Inspection page, you can scroll down to the line that mentions safe_mode. Chances are it says local is on.

Zen Cart is picking up this setting based on the result of the PHP function ini_get('safe_mode'), so it's telling you what mode your PHP is actually running in.

You can run with it on, but there are a few caveats, some of which I mentioned here:
http://www.zen-cart.com/forum/showthread.php?t=32189

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jun 2006, 7:24 AM
#3
chrisco avatar

chrisco

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Re: safe_mode = ON ??

Thanks for your reply.

It lists on "ON" for "Local Value" and "OFF" for "Master Value".

These are the php.ini files I've found:
[root@dedicated etc]# locate php.ini
/etc/virtualhosting/templates/apache/etc/php.ini
/etc/php.ini
/etc/php.ini.rpmnew
/home/virtual/site1/fst/etc/php.ini
/home/virtual/site2/fst/etc/php.ini
/home/virtual/site3/fst/etc/php.ini
/home/virtual/site4/fst/etc/php.ini
/home/virtual/site5/fst/etc/php.ini
/home/virtual/site6/fst/etc/php.ini
/home/virtual/site7/fst/etc/php.ini
/home/virtual/site8/fst/etc/php.ini
/home/virtual/site9/fst/etc/php.ini
/home/virtual/site10/fst/etc/php.ini
/home/virtual/site11/fst/etc/php.ini
/home/virtual/site12/fst/etc/php.ini
/home/virtual/site13/fst/etc/php.ini
/home/virtual/site13/fst/tmp/etc/php.ini
/home/virtual/site13/fst/tmp/tmp/etc/php.ini
/home/virtual/site13/fst/tmp/tmp/tmp/etc/php.ini
/home/virtual/site13/fst/tmp/tmp/tmp/tmp/etc/php.ini
/home/virtual/site14/fst/etc/php.ini
/home/virtual/site15/fst/etc/php.ini

I've looked in:
/etc/virtualhosting/templates/apache/etc/php.ini
/etc/php.ini
/etc/php.ini.rpmnew
/home/virtual/site14/fst/etc/php.ini (the specific virtual site in question)

and they all say SAFE_MODE = Off. Could it be turned on somewhere else? I don't know where else to look.

Thanks,
Chris

24 Jun 2006, 1:04 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: safe_mode = ON ??

If you edited the local etc/php.ini file then it may still be the case that the service has to be stopped and restarted for the change to take effect.

Vger

24 Jun 2006, 6:49 PM
#5
chrisco avatar

chrisco

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Re: safe_mode = ON ??

thanks for the reply.

I never set "safe_mode" to ON anywhere, nor did I call "ini_set" anywhere, unless Ensim set up the site that way automatically.

I could find no instance of "safe_mode" being set to On in any php.ini file.

Is there some place in the Ensim source code I should look?

I went ahead and installed the cart anyway. All I need is to demo the most basic functionality of the cart for a couple people that have very minimal requirements.

Chris

24 Jun 2006, 9:10 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: safe_mode = ON ??

Hi, Well I doubt you'd be able to modify anything in the Ensim Power Tools install of Zen Cart - unless you are an ace Python language programmer. The fault wouldn't be there anyway.

If you are getting that error then it's set to 'On' somewhere on the server, either that or the server has not been restarted since it was set to Off.

Vger

24 Jun 2006, 9:20 PM
#7
chrisco avatar

chrisco

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Re: safe_mode = ON ??

Does Zen Cart come in Power Tools section of some Ensims? We have Ensim Basic 4.0.2-7. It has osCommerce but not Zen Cart. This is my first experience with Ensim, and with Zen Cart (I have a few months exp. with osC), and I have zero Python experience.

I uploaded the latest zen cart distro that I got from zen-cart.com.

Everything is working fine for what I need right now. This Safe_mode thing may or not turn out to be an issue if/when my clients ask me to move forward with Zen Cart.

Thanks,
Chris

24 Jun 2006, 9:50 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: safe_mode = ON ??

Hi, Whether Ensim Power Tools offers any particular programme is down to the individual hosting company - because there is an API version of Power Tools now available which allows hosts to make installs of other programmes/versions available. But in reality this will be limited to large hosts, because the API is in Python.

It was your mention of looking into the Ensim code which led me to believe you had an install of Zen Cart available via Power Tools ...sorry for any misunderstanding.

Vger

26 Jun 2006, 3:23 AM
#9
fluffytigger avatar

fluffytigger

Zen Follower

Join Date:
Dec 2005
Location:
My Own Fluffy Place, Pangea
Posts:
377
Plugin Contributions:
0

Re: safe_mode = ON ??

Look at your apache configure file for your control panel, I use PLESK and PLESK add a DIRECTORY directive with php_admin_value that set safe mode to ON for the web hosting directories.

You can either use htaccess or add another apache config section for the directory where ZC is installed and turn it off.

Yeah! I'm small! I'm Fluffy! Stick tongue out