Re: [PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Nilesh Govindarajan
On 06/27/2011 10:13 PM, Grant Peel wrote: > Hi all, > > Up to this point we have been running PHP as an Apache 22 module. > > We would like to rebuild PHP over the next few weeks to run it as a CGI/CLI > PHPSuexec system. > > I am hoping there may be others that have made this migration and might

[PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Grant Peel
Hi all, Up to this point we have been running PHP as an Apache 22 module. We would like to rebuild PHP over the next few weeks to run it as a CGI/CLI PHPSuexec system. I am hoping there may be others that have made this migration and might have a step by step how to (so far research shows it s

[PHP] PHP as CGI: Denial of Service?

2004-09-28 Thread Florian Effenberger
Hello there, PHP set up as CGI (either with binfmt and suEXEC or via suPHP) can expose your system to a denial of service attack. Even a very simple page like can bog down a server completely if the reload button on the browser is pressed continously for some seconds. I already tried the RMax

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread raditha dissanayake
Binay wrote: But when after lotttsss of hair pulling couldn't make turck run with 4.3.8 , finally decided to check type (mode) of PHP installation. I m sorry for convience caused. I admire your attitude. Many others would have come out with a flame in response to my message. Please let me tip

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread Binay
x27;t make turck run with 4.3.8 , finally decided to check type (mode) of PHP installation. I m sorry for convience caused. Thanks Binay - Original Message - From: "raditha dissanayake" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 24, 2004 1:40

Re: [PHP] PHP as CGI or Module

2004-09-24 Thread raditha dissanayake
Binay wrote: Hi How to check whether PHP is installed as CGI or Apache module? Thanks Binay I assume this is a spin of from your thread on turck mmcache. I am pretty sure you have not read the mmcache docs or searched for google on this. Because there are countless articles on installing turc

[PHP] PHP as CGI or Module

2004-09-23 Thread Binay
Hi How to check whether PHP is installed as CGI or Apache module? Thanks Binay

Re: [PHP] php as CGI and $_POST

2004-06-05 Thread Peter Risdon
David T-G wrote: Peter -- ...and then Peter Risdon said... % % David T-G wrote: % % > bash-2.05a$ /usr/local/bin/php -v % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % You probably need the cgi version - not the command line one you % actually have. Ooohhh... Ouch. So there are

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > bash-2.05a$ /usr/local/bin/php -v % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % that cli should be cgi. % % I'm assuming you compiled php with something like: %configure --wit

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > Peter -- > > ...and then Peter Risdon said... > % > % David T-G wrote: > % > % > bash-2.05a$ /usr/local/bin/php -v > % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) > % > % You probably need the cgi version - not the command line one you > % actu

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Peter -- ...and then Peter Risdon said... % % David T-G wrote: % % > bash-2.05a$ /usr/local/bin/php -v % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % You probably need the cgi version - not the command line one you % actually have. Ooohhh... Ouch. So there are *three* possibl

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > Curt, et al -- > > ...and then Curt Zirzow said... > % > % * Thus wrote David T-G ([EMAIL PROTECTED]): > % > > % > My code is as simple as > % > > % > #!/usr/local/bin/php > % > % What does '/usr/local/bin/php -v' show? > > Doesn't seem to scary

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread Peter Risdon
David T-G wrote: Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > My code is as simple as % > % > #!/usr/local/bin/php % % What does '/usr/local/bin/php -v' show? Doesn't seem to scary to me: bash-2.05a$ /usr/local/bin/php -v PHP 4.3.4

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > My code is as simple as % > % > #!/usr/local/bin/php % % What does '/usr/local/bin/php -v' show? Doesn't seem to scary to me: bash-2.05a$ /usr/local/bin/php -v PHP 4.3.4 (cli) (built:

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > > and know that it works as intended, but now I seem completely unable to > get any $_POST (or even $_GET) data into the script. I suspect, from > reading the manual and noting the warnings, that any GET data will be > ignored, and that's fine, but I

[PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Hi, all -- I am working up a CGI script to take advantage of Apache's suEXEC so that the web server can manipulate files as the site owner. I have already managed a simple $f = fopen("/path/to/docroot/testfile",'w') ; fwrite($f,"hi!\n") ; fclose($f) ; and know that it works as intended, b

[PHP] PHP as CGI becomes a zombie when loaded too often

2004-05-28 Thread Florian Effenberger
Sorry for posting this again and again, but I still experience this problem and there seems to be no way for me to solve it. I've got confirmation from others that this problem is not only mine, so please take the time to read this. I've tried Apache 1.3 and 2.0, both on Linux 2.4. I've tried using

Re: [PHP] php as cgi and module at same time

2004-04-10 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > is it possible to have php installed with apache as cgi and module both at > the same time...?? Yes. See php.net/install Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] php as cgi and module at same time

2004-04-10 Thread Andy B
is it possible to have php installed with apache as cgi and module both at the same time...?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php as cgi with static libraries?

2004-02-19 Thread Marten Lehmann
that's what I already did (--enable-static=db4), but after that a 'ldd php' still showed me references to libdb.so. I don't want to build php with absolutely no dynamic libaries, only certain libaries shall be compiled in statically. Still no answer? Is noone experienced enough in the building-p

Re: [PHP] php as cgi with static libraries?

2004-02-16 Thread Marten Lehmann
Hello, You will need to build php yourself, take a look at configure --help: $ ./configure --help | grep static --enable-static[=PKGS] build static libraries [default=yes] that's what I already did (--enable-static=db4), but after that a 'ldd php' still showed me references to libdb.so. I don

Re: [PHP] php as cgi with static libraries?

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 17:19, Marten Lehmann wrote: > when I'm building php as a cgi-module, a 'ldd php' shows a list of some > libraries, that are linked in dynamically. How can I link some of them > statically into the php-binary? I can't rely of external libs in some cases. You will need to bu

[PHP] php as cgi with static libraries?

2004-02-15 Thread Marten Lehmann
Hello, when I'm building php as a cgi-module, a 'ldd php' shows a list of some libraries, that are linked in dynamically. How can I link some of them statically into the php-binary? I can't rely of external libs in some cases. Regards Marten -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Thanks very much to all, Ok, I understand now.. so I need to install php as a cgi oppose to the module apache. Do you have some good page that can help me to configure and compile correctly the php as cgi? Thanks in advance, Kisses, Ivone --- Kelly Hallman <[EMAIL PROTECTED]> wrote: > On Fri, 28

Re: [PHP] php as cgi script

2003-11-28 Thread Kelly Hallman
On Fri, 28 Nov 2003, Nicole Lallande wrote: > Ivone -- > You are using a PERL invocation for php. PHP scripts begin the # sign is a comment in PERL - not in PHP. # also denotes a comment in PHP. Though #! is not a comment, per se. (However, if you feed the file directly to some interpreter lik

Re: [PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Hi Nicole! Thanks for your reply! I'm a little confused: Do I need to compile the php as cgi? I thought it was when you wanted to run php from commanline: as ./pruebacgi.php (Servers-CGI/Commandline) But in my case I want to call a php like that: http://xx.yy.zz/cgi-bin/pruebacgi.php and this

Re: [PHP] php as cgi script

2003-11-28 Thread Nicole Lallande
Ivone -- You are using a PERL invocation for php. PHP scripts begin with the # sign is a comment in PERL - not in PHP. To run php as cgi you need to install the php cgi version (as opposed to the apache modular installation.) That will allow you to run cgi scripts on the command line. http:

[PHP] php as cgi script

2003-11-28 Thread Ivone Uribe
Hello all! I have this problem: I need to run a php (http://xx.yy.zz/cgi-bin/pruebacgi.php) that contains that line #!/usr/local/bin/php -q I get it an error from my apache log: malformed header from script. Bad header= php [options] -r : /www/cgi-bin/pruebacgi.php I hope someone can help

[PHP] PHP as CGI-Modul not only from /cgi-bin

2002-10-16 Thread Jochen Kächelin
How do I have to install PHP with Apache 2.0.43 as CGI module so that every user can execute PHP scripts from every point under their home directories? And how can I configure Apache so that they do not need to start every PHP script with something like #!/usr/bin/php ..? -- Jochen Kae

RE: [PHP] php as CGI

2001-05-16 Thread scott [gts]
y, May 16, 2001 2:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] php as CGI > > > Hi, > > I'm new to pgp and I'm trying to configure it as an Apache cgi. What do I > need to put into the httpd.conf to enable it? I tried the example from the > manual, but it doe

[PHP] php as CGI

2001-05-16 Thread Beech Rintoul
Hi, I'm new to pgp and I'm trying to configure it as an Apache cgi. What do I need to put into the httpd.conf to enable it? I tried the example from the manual, but it doesn't work. Also will php3 scripts work in php4? I'm using php4 and apache-1.3.19 with mysql. Any assistance would be appreci

RE: [PHP] PHP as CGI

2001-02-19 Thread ..s.c.o.t.t..
gt; -Original Message- > From: Hrishi [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 19, 2001 03:31 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP as CGI > > > > > > AddType application/x-httpd-php .php > > Action application/x-httpd-php /usr/local/

Re: [PHP] PHP as CGI

2001-02-19 Thread Hrishi
> > AddType application/x-httpd-php .php > Action application/x-httpd-php /usr/local/php > > A) I'm not sure you need the "." on ".php" > i've tried both with and without the '.' , but the server always responds : --- Not Found The requested URL /usr/bin/php4/test.php was not found on this ser

Re: [PHP] PHP as CGI

2001-02-19 Thread Richard Lynch
>Hi, I've compiled PHP as CGI in /usr/local/php/ . Does anyone know what I can write in >httpd.conf file? > >Tanks I think it's: AddType application/x-httpd-php .php Action application/x-httpd-php /usr/local/php A) I'm not sure you need the "." on ".php" B) You can add more extensions: ...x-htt

[PHP] PHP as CGI

2001-02-18 Thread Federico Ragazzoni
Hi, I've compiled PHP as CGI in /usr/local/php/ . Does anyone know what I can write in httpd.conf file? Tanks