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
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
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
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
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
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
Hi
How to check whether PHP is installed as CGI or Apache module?
Thanks
Binay
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
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
* 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
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
* 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
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
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:
* 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
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
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
* 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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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/
>
> 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
>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
Hi, I've compiled PHP as CGI in /usr/local/php/ . Does anyone know what I can write in
httpd.conf file?
Tanks
35 matches
Mail list logo