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 have
Hi Tedd,
In your .htacess file add this:
# handler for phpsuexec. -- makes following prefixes considered for
php
FilesMatch \.(htm|html|pl)$
SetHandler application/x-httpd-php
/FilesMatch
Thanks for the code. I placed it in the .htaccess file for the
output templates, but
At 5:10 PM -0700 8/18/09, sono...@fannullone.us wrote:
I've searched high and low for an answer to this. Hopefully
someone here might know. Can PHP be used under a CGI? I tried to
put the following code on one of my perl shopping cart pages but it
doesn't work:
?php
echo select
-Original Message-
From: sono...@fannullone.us [mailto:sono...@fannullone.us]
Sent: Tuesday, August 18, 2009 5:10 PM
To: PHP General List
Subject: [PHP] PHP and CGI
I've searched high and low for an answer to this.
Hopefully someone
here might know. Can PHP be used
Peter Law wrote:
I am learning Php and have a web site host where scripts have to be in the
cgi-bin. What is put in the original web page to call a script from the
cgi-bin? The info from the web host is below.
Something like this may be useful to you:
Make two files.
Name one of them:
where did you place your php.ini?
In the root of my application in www. /home/mydomaine/www
Thanks,
Christian,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have you tried
#!/usr/local/lib/php -c /home/mydomaine/www
--
I not know English well, but I know 7 computer languages.
On Oct 31, 2004, at 2:32 AM, Christian Ista wrote:
where did you place your php.ini?
In the root of my application in www. /home/mydomaine/www
Thanks,
Christian,
--
PHP General
#!/usr/bin/php -c /path/to/php.ini
I tried this
#!/usr/local/lib/php -c php.ini
In the php.ini :
register_globals = on
but that's not work
Any idea ?
Christian,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
where did you place your php.ini?
regards,
Jonel
--
I not know English well, but I know 7 computer languages.
On Oct 30, 2004, at 2:48 AM, Christian Ista wrote:
#!/usr/bin/php -c /path/to/php.ini
I tried this
#!/usr/local/lib/php -c php.ini
In the php.ini :
register_globals = on
but that's
On Fri, 29 Oct 2004 21:14:27 +0200, Christian Ista [EMAIL PROTECTED] wrote:
Someone else told me it's possible to have a php.ini by website. Could you
tell me where put in and what in ?
php -c /path/to/php.ini
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
php -c /path/to/php.ini
Could you explain ??
My php pages are in /home/mysite/www
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 29 Oct 2004 21:45:24 +0200, Christian Ista [EMAIL PROTECTED] wrote:
php -c /path/to/php.ini
Could you explain ??
This is how you specify which php.ini file to use with a cgi binary
php. Is that not what you asked?
When you use php as a cgi binary (not as mod_php) you can run php a
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
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 PM
Subject: Re: [PHP] PHP as CGI
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
This is one of those questions that will get lot's of different answers
depending on your responders perspective. This is my view;
PHP can be executed as a CGI or as a MOD by Apache (or most web servers).
This means that Apache can load a fresh copy of PHP with each browser
request to the server
As I know, if you run PHP as a module for Apache is faster than running
as CGI. Also Python scripts can be run as a module(faster) or as CGI. The
main disadvantage for Python as a module is that you don't get all the
facilities of CGI.
--
PHP General Mailing List (http://www.php.net/)
To
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
* 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 know
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:
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
* 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 to me:
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* possible
* 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
% actually have.
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
* 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
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
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
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
Ivone --
You are using a PERL invocation for php. PHP scripts begin with
?php
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.
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
On Fri, 28 Nov 2003, Nicole Lallande wrote:
Ivone --
You are using a PERL invocation for php. PHP scripts begin ?php
#! is not a perl invocation, it is a Unix convention to tell the shell
which program should be used to process the file contents. If you are
running PHP as a CGI from a
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
PHP can be installed as either a CGI or an Apache module. There is
documentation on this in the PHP readme files.
Pretty much everything I read said that its always better to use the
Apache Module version. (apparently its much more stable and secure)
-Original Message-
From: Scott
Looked through all of those 11 README files and they don't say much about
it.
Donald Tyler [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
PHP can be installed as either a CGI or an Apache module. There is
documentation on this in the PHP readme files.
Pretty much everything I read
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]):
Looked through all of those 11 README files and they don't say much about
it.
Traditionally php had two modes:
1. module
2. cgi/commandline
the cgi/commandline could be used interchangably.
Now there are three modes:
1. module
2. cgi
PHP comes in three major compilations: module, CGI, and CLI. The module
only works for web server (that I know of) and is the fastest way to
serve PHP based content from a web server. CGI can be run for either the
shell, or from the web server. There is a performance hit when run from
the web
I would expect compiled C/C++ to be faster as there is no need for
the code to be interperated and compiled on each request.
Is it possible to compile PHP to improve the speed execution ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i did a quick google, and found the following. hope it helps
http://phpcomplete.com/articles.php?sec=readArticleid=306
http://www.php-accelerator.co.uk
plus, there is something called PHP bcompiler (byte compiler).
I dont know the details of any of these, but should help. maybe others
can
]
cc: [EMAIL PROTECTED]
Asunto: Re: [PHP] PHP or CGI in C/C++
01/08/2003 08:45
Hello,
This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at
13:38, lines prefixed by '' were originally written by you.
Greetinx,
I'm a newbie and wondering which PHP script or CGI in C/C++
generally
can
run/respond faster via http from the same server doing the same
tasks.
I
On Jul 31, 2003, David Nicholson claimed that:
|Hello,
|
|This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at
|13:38, lines prefixed by '' were originally written by you.
| Greetinx,
| I'm a newbie and wondering which PHP script or CGI in C/C++
|generally
| can
| run/respond faster
Greetinx,
Greetinx to you to.
I'm a newbie and wondering which PHP script or CGI in C/C++ generally can
run/respond faster via http from the same server doing the same tasks.
CGI is inherently slow. The way I understand it, php as CGI will
probably be pretty much the same speed as C/C++ as
CGI meaning perl?
SpyProductions Support Team wrote:
Does PHP use less system resources than CGI on a server?
I have a bulletin board which is incredibly active, but there is a PHP
sister to it.
Thanks,
-Mike
--
The above message is encrypted with double rot13 encoding. Any unauthorized
Sorry, yes. :)
-Mike
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 4:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP vs. CGI
CGI meaning perl?
SpyProductions Support Team wrote:
Does PHP use
Mike --
...and then SpyProductions Support Team said...
%
% Does PHP use less system resources than CGI on a server?
Now that we know that by 'CGI' you mean 'perl' we're at least getting
*somewhere*. We don't really know what you mean, though, so I''ll see if
I can fill out the truth table for
Three advantages I like:
1- no more cgiwrap.
2- thus I can work in any directory and am not bound to cgi-bin
3- Sheer ease of coding. A lot easier to learn, it's open-source and newsgroups are
more helpful. Perl groups are less helpful, programmer centred and not newbie-friendly.
Just my 2ยข
--
John Taylor-Johnston wrote:
Three advantages I like:
1- no more cgiwrap.
2- thus I can work in any directory and am not bound to cgi-bin
'being bound to cgi-bin' is a function of how the server is set up, not
'cgi' itself. I've worked on systems where anything ending in .cgi
was treated as a cgi
execution failed in
/[dir-path]/index.php on line 71
any more clues?
thanks!
/bw
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:46 PM
To: Boris Wong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php and cgi
On Tue, 2 Apr 2002, Boris Wong
try exec() or back-ticks ``
see how that goes
Martin
-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php and cgi
hi,
i was wondering if anyone knows how i can execute a cgi script
(with
On Tue, 2 Apr 2002, Boris Wong wrote:
i was wondering if anyone knows how i can execute a cgi script
(with -rwxrwxrwx mode) written in perl from within php?
i tried
?php
include ('mycgi.cgi');
?
This worked for me:
?php
virtual(/cgi-bin/progname);
?
ALthough I did use absolute paths
is your file extension .php?
hugh
- Original Message -
From: SpyProductions Support Team [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 11:25 AM
Subject: [PHP] PHP and CGI
I did some research in the archives on this, but couldn't come up with a
straight
No, it is in a CGI script.
And I can't recompile PHP for cgi extensions. :(
-Mike
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:43 PM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] PHP and CGI
is your file extension .php
]; php
[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 12:07 PM
Subject: RE: [PHP] PHP and CGI
No, it is in a CGI script.
And I can't recompile PHP for cgi extensions. :(
-Mike
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2
]]
Sent: Tuesday, February 12, 2002 3:20 PM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] PHP and CGI
That I know, the file with the php code needs to have the
extension of .php
I absolutely don't know anything about CGI, but could you somehow
include
a .php file in your script?
- Original
-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:20 PM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] PHP and CGI
That I know, the file with the php code needs to have the extension of .php
I absolutely don't know anything about CGI, but could you somehow include
a .php
I made some time to test, and no dice. The comment doesn't seem to matter.
:(
Thanks,
-Mike
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 3:26 PM
To: 'hugh danaher'; [EMAIL PROTECTED]; php
Subject: RE: [PHP] PHP and CGI
: Tuesday, February 12, 2002 2:28 PM
To: Darren Gamble; php
Subject: RE: [PHP] PHP and CGI
I made some time to test, and no dice. The comment doesn't seem to matter.
:(
Thanks,
-Mike
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 3:26
PROTECTED];
php
Subject: RE: [PHP] PHP and CGI
Good day,
The php file can have whichever extension that you
want, provided that the
webserver understands which application is
associated with which
extension.
If you want to run a PHP script as a CGI or
without the webserver , just
On 8/24/2001 10:54 AM this was written:
I know this question has been asked many times before so I am not asking
again :-) What I am asking is how I can search the forum, is there a web
based system that I can use to search???
Well, there's a Newgroup:
news.php.net
There is an archive on
you need to:
./configure [whatever options]
make
make test
make install (as root)
then you need to edit Apache httpd.conf
appropriately and restart the daemon.
then, it should work
-Original Message-
From: Beech Rintoul [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001
So sprach Dddogbruce (@home.com) am Mon, Apr 16, 2001 at 03:12:25PM -0700:
?
$greeting = "Hello!"
echo "$greeting"
?
Since I also have this problem, I tried your suggestion, and it didn't work.
However, I expected this, because apache doesn't know which interpreter to
use to exec this
On Monday 16 April 2001 22:40, you wrote:
Hi..
I'm tring to use a php-script like cgi, but the only thing i got is
"Internal Server Error..."
That's my test-script..
---
#!/bin/php -q
Are you 100% sure that it's /bin/php ? That's
On Tue, 17 Apr 2001, Christian Reiniger wrote:
Are you 100% sure that it's /bin/php ? That's a pretty unusual location
for PHP to be installed in. /usr/bin/php or /usr/local/bin/php are the
common ones
Yeah, my php interpreter is on /usr/bin/php, i just made a symlink on
/bin..., but it's
?
$greeting = "Hello!"
echo "$greeting"
?
g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Rush" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Sent: Tuesday, March 20, 2001 2:33 PM
Subject: Re: [PHP] PHP/Perl/CGI Question
on 3/20/01 02:21 PM, [EMAIL PROTECTED] splat open and thusly melted:
What am I doing wrong? Why is it printing the php tags instead
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:
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 server.
-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/php
A) I'm not sure you need the &q
69 matches
Mail list logo