Re: [PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
I guess what I'm really asking is do the php_admin environment variables that can get set in Apache get passed to the CGI version of php when called as a CGI ? Tim. Curt Zirzow wrote: * Thus wrote Tim Traver: Hi all, In the quest to secure php script running, I am starting to think about run

Re: [PHP] Running PHP as CGI

2004-11-26 Thread Curt Zirzow
* Thus wrote Tim Traver: > Hi all, > > In the quest to secure php script running, I am starting to think about > running php as a cgi instead of through the module. > > I generally set the open_basedir directory within the apache > configuration file for individual hosts. If I ran php as a CGI,

[PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
Hi all, In the quest to secure php script running, I am starting to think about running php as a cgi instead of through the module. I generally set the open_basedir directory within the apache configuration file for individual hosts. If I ran php as a CGI, would that directive still be in effec

[PHP] Running PHP as CGI

2003-07-21 Thread David Goodchild
Can someone direct me as to how to install PHP on a linux system as CGI? I wish to attempt to use posix_setuid() functions. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] running php as cgi script

2002-11-18 Thread Ford, Mike [LSS]
> -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: 17 November 2002 20:55 > To: php-general > Subject: Re: [PHP] running php as cgi script > > > Well, I've got a few test scripts to run by following the > suggestions from > the p

Re: [PHP] running php as cgi script

2002-11-17 Thread Jason Wong
On Monday 18 November 2002 04:55, Scott wrote: > Well, I've got a few test scripts to run by following the suggestions from > the posts. There's just one thing that's not quite right yet. The > "#!/usr/bin/php" line appears at the top of the page. For instance when I > run the following script f

Re: [PHP] running php as cgi script

2002-11-17 Thread Scott
Well, I've got a few test scripts to run by following the suggestions from the posts. There's just one thing that's not quite right yet. The "#!/usr/bin/php" line appears at the top of the page. For instance when I run the following script from the cgi-bin: #!/usr/bin/php The phpinfo page

Re: [PHP] running php as cgi script

2002-11-15 Thread Scott
I'm not intending to run the script from the shell. What I am trying to do is encrypt emails with Gnupg. The problem is Gnupg runs as my user name and php runs as nobody. So I'm trying to run a php script as cgi to deliver the data to Gnupg since a cgi script will run as my username. I am usi

Re: [PHP] running php as cgi script

2002-11-15 Thread bahwi
Haha, well I posted my version number because I haven't tested the new one that actually comes default with a CLI. So I don't know if the end tags are necessary or not. Marco Tabini wrote: No, that was actually my mistake, and you were right. I guess I've either had too much to drink, or too li

Re: [PHP] running php as cgi script

2002-11-15 Thread @ Edwin
Hello Marco, "Marco Tabini" <[EMAIL PROTECTED]> wrote: > If you look at the error he's getting, I think there's something a bit > more critical than the PHP tags... You're right. Most probably there's something more... > although you're right and I missed > that :-

Re: [PHP] running php as cgi script

2002-11-15 Thread Marco Tabini
No, that was actually my mistake, and you were right. I guess I've either had too much to drink, or too little. I'll try and post again in a couple of hours and let's see which of the two is the case :-) Marco On Fri, 2002-11-15 at 23:26, bahwi wrote: > Oh, sorry, I'm running the 4.2.3 standalon

Re: [PHP] running php as cgi script

2002-11-15 Thread bahwi
Oh, sorry, I'm running the 4.2.3 standalone version(from FreeBSD Ports system) and I have to use the tags still. It looks like a CGIwrap problem, but I'm not familiar with that. =/ --Joseph http://www.josephguhlin.com/ Marco Tabini wrote: Joseph, I think he's trying to run the script from the s

Re: [PHP] running php as cgi script

2002-11-15 Thread Marco Tabini
If you look at the error he's getting, I think there's something a bit more critical than the PHP tags... although you're right and I missed that :-( d'oh! Marco On Fri, 2002-11-15 at 23:20, @ Edwin wrote: > > "Scott" <[EMAIL PROTECTED]> wrote: > > > I'm trying to run a simple test php script a

Re: [PHP] running php as cgi script

2002-11-15 Thread @ Edwin
... and yes, you forgot the semi-colon :) Also, are you trying to do something like these? http://www.phpbeginner.com/columns/ray/cli - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running php as cgi script

2002-11-15 Thread @ Edwin
"Scott" <[EMAIL PROTECTED]> wrote: > I'm trying to run a simple test php script as a cgi script on my ISP's server > and haven't been able to get it to work, although according them it is > possible. > > I have an example from a book which gives the following steps: > > 1. Put the script in the

Re: [PHP] running php as cgi script

2002-11-15 Thread Marco Tabini
Joseph, I think he's trying to run the script from the shell--in which case it looks okay to me (besides perhaps a terminating semicolon on the last line) Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Che

Re: [PHP] running php as cgi script

2002-11-15 Thread @ Edwin
Hello, "Scott" <[EMAIL PROTECTED]> wrote: > > Forgot to include the error I'm getting is: > > CGIwrap Error: System Error: execv() failed > > Error: No such file or directory (2) > > Although the file and path are correct. > Are you sure it's correct? Most cgi-bin folders are located outside you

Re: [PHP] running php as cgi script

2002-11-15 Thread bahwi
That is in no way a correct php program. What error are you getting on the page? Or are you seeing the source? If you are seeing the source when you try to view the script it is a problem on their end(they may want them named as .cgi instead of .php, although rare now, this might be how they ar

Re: [PHP] running php as cgi script

2002-11-15 Thread Marco Tabini
The script looks ok to me... The difference that you probably see is the first line. This is the "shebang", a line that tells the script interpreter which application the script should be interpreted with. This, together with the permissions you've provided, makes the script "self-executing", in t

Re: [PHP] running php as cgi script

2002-11-15 Thread Scott
Forgot to include the error I'm getting is: CGIwrap Error: System Error: execv() failed Error: No such file or directory (2) Although the file and path are correct. On Friday 15 November 2002 10:52 pm, you wrote: > I'm trying to run a simple test php script as a cgi script on my ISP's > server

[PHP] running php as cgi script

2002-11-15 Thread Scott
I'm trying to run a simple test php script as a cgi script on my ISP's server and haven't been able to get it to work, although according them it is possible. I have an example from a book which gives the following steps: 1. Put the script in the cgi-bin 2. run chmod 755 3. include "#!/usr/bin

[PHP] Running PHP as CGI under apache

2001-08-15 Thread Bob Jones
I'm trying to run a script as CGI under apache, instead of using the apache module, because the module is safe-mode enabled and I need to bypass that for one script. If you put this script into a file (.cgi) and give it executable permissions, you can run it from the command line