Results 1 to 3 of 3
Thread: Howto for suexec, php as cgi
-
08-28-2007, 03:25 PM #1New Member
- Join Date
- Jul 2007
- Posts
- 2
Howto for suexec, php as cgi
I've been attempting to develope a server running apache 2+, php 5, and I was running into issues installing php as cgi.... All my scripts require The shebang:
#!/usr/bin/php at the top to execute properly. Anyone know a good site/how to that explains how to do this?
ps, has anyone else here run suexec with apache? If so, could you tell me what you compiled it with? Just curious, as I think i'm doing everything right, yet I still fail
-
08-28-2007, 05:29 PM #2Web Hosting Master
- Join Date
- Jan 2006
- Location
- Athens, Greece
- Posts
- 1,481
You have scripts that are for PHP as CGI? If not I would suggest installing PHP as an Apache Module. As a module you want need the shebang.
A good site that explains this is php.net. If you follow the steps exactly you can't miss it. True.
-
08-29-2007, 12:02 AM #3New Member
- Join Date
- Jul 2007
- Posts
- 2
Yeah, I've already been able to run php as an apache module, I was just curious about how to get rid of the shebang when running php as cgi....Many cpanel environments run php coupled with suexec, so the script runs as the user, but your files never require this shebang... I was just wondering if anyone out there new the actual technical equivalent of doing this...by hand.