If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Host is installing PHPSUEXEC. Docs sound like it's detrimental to ZenCart.

Host is installing PHPSUEXEC. Docs sound like it's detrimental to ZenCart.

Locked

Started by yizit on 6 Jun 2008, 6:35 PM · Views: 1,555

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Jun 2008, 6:35 PM
#1
yizit avatar

yizit

New Zenner

Join Date:
Jul 2005
Location:
Connecticut - USA
Posts:
50
Plugin Contributions:
0

Post #1 by yizit

Is anyone familiar with PHPSUEXEC? Reading some of the documentation the Host sent along with the notice, it seems as if this is going to present a problem with Permissions, .htaccess, and requiring php.ini files to handle php_flags.

If no one is familiar with PHPSUEXEC, I can paste some of this Host's explanations in here which could act as a quick overview of what, in my humble opinion, could be detrimental to the setting up and running of ZenCart.

They talk about "work-arounds" and "fixes" but, since I'm not a programmer, would I be better off moving the 2 stores I have on their Servers? I hope someone can help because their implementation of PHPSUEXEC is imminent.

Thanks.

6 Jun 2008, 7:00 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

We run SUEXEC and PHPSUEXEC on all servers but also support Zen Cart so have any solutions required. When we installed it, we scripted a routine to re-set all files and folders to what was required so that here were no account issues with any directly supported script.

It is thought of as a more secure environment and one that helps with file ownership that is an issue with some scripts.

Hopefully, your host has thought this through and has readily available solutions for the Zen Carter's they have and not leave it up to you to determine what needs alteration.

You can check your current htaccess for any "flag" or "register" entries, as both of these are not supported under SUEXEC or PHPSUEXEC

Zen-Venom Get Bitten

6 Jun 2008, 8:39 PM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #3 by merlinpa1969

thanx Kobra beat me to it,

we run php as cgi on all of our servers, and have NO issues,

Zen cart PCI compliant Hosting

8 Jun 2008, 8:10 PM
#4
wdave avatar

wdave

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Post #4 by wdave

phpsuexec is common on shared servers. It allows php scripts to be run per-user rather than the more unsecure way of having the apache user run every script. Any php apps that worked under mod_php should work just fine under phpsuexec. The only modifications are usually pertaining to configuration.

So, the "workarounds" (or, really, new configurations) are:

**Permissions: **
Ensure your php scripts are not world-writeable (should never have been in the first place!). Sometimes, though, permissions need to be set even lower (check with your host).

**Any .htaccess php_flags must be removed and set in php.ini instead: **
.htaccess is what we used to modify php flags with mod_php. That method will be unavailable when your server switches over to phpsuexec. So, let's say you need magic_quotes_gpc set to off but your server's default php.ini has them turned on. With mod_php, you would have created a .htaccess file in your web server root that contained php_flag magic_quotes_gpc off. With phpsuexec, every directory that contains php files that require magic quotes off must have within the same directory a copy of php.ini with magic_quotes_gpc set to off.

Well, that may have been more techinical info than anyone wanted. The main questions: Is php configuration more of a pain with phpsuexec? Yes. Is the security that is gained by using phpsuexec worth it? In my opinion, absolutely yes. Does Zen Cart run in a phpsuexec environment? Yes.

More info from the horse's mouth:

https://www.zen-cart.com/tutorials/index.php?article=226