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

php modes

Locked

Started by kehrli on 14 Dec 2008, 7:23 PM · Views: 1,415

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Dec 2008, 7:23 PM
#1
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

php modes

I'm installing ZenCart 1.3.8a onto a Linux host. It's a virtual private server, so I can set up the environment however I want. I'm getting a warning: "PHP API mode = cgi", and the associated info link warns that this can be problematic on some linux/unix servers.

I'd like to go ahead and change this setting in my environment, but I don't know what to change it to. I've seen other installations that say "PHP API mode = apache2handler". But I don't know if this is what I want or not. Before I write to support at my host and ask for the change, I wanted to know what I should change it to.

Thanks.

14 Dec 2008, 7:25 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: php modes

It's fine to run php = cgi
It's considered more secure that way as well. You just have to make sure to set the permission correctly. Most servers running php in cgi mode require folder permission to be set at 755 and files at 644.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

15 Dec 2008, 1:58 AM
#3
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: php modes

OK, thanks. My files/folders are set up that way, so I'm good.

28 Jan 2009, 9:41 AM
#4
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: php modes

I get the same install warning, So if its ok on a Linux server, Zen WHY does the install program declare a warning to the contrary?

ie " Running PHP as CGI can be problematic on some Linux/Unix servers.
Windows servers, however, "always" run PHP as a cgi module, in which case this warning can be ignored.

Must be a reason ?

The Poor Pay Twice.........remoteone.com.au