Re: [PHP] PHP as CGI-CLI on FreeBSD/Apache22
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 > a step by step how to (so far research shows it should be reasonably simple > to do), and would be willing to share it. > > Right now we have > > FreeBSD 8.0 > Apache22 built from ports, with apache suexec enabled, > PHP5 Built from ports, > > Any hints are appreciated, > > -G PHP in CGI sucks at performance, you should give a thought to fastcgi + php + suexec as in here: http://forum.linode.com/viewtopic.php?t=2982 Though its written for ubuntu, you can derive some tricks from there. I don't know if php-fpm + suexec is possible. php-fpm is best for fastcgi. -- Regards, Nilesh Govindarajan @nileshgr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP as CGI or Module
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 my hat to you. best regards raditha -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP as CGI or Module
Hi, I knew that Turck does not work in CGI mode. But didn't find it worth checking cuz earlier it was working and my administrator said he only upgraded the php and did nothing. So i presumed that PHP is still running as apache module only. 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. 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 or Module > 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. To > cut a long story short you should compile php with --disbable-cgi to use > turck. Please google next time before posting. > > > > -- > Raditha Dissanayake. > > http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader > Graphical User Inteface. Just 128 KB | with progress bar. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP as CGI or Module
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. To cut a long story short you should compile php with --disbable-cgi to use turck. Please google next time before posting. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as CGI and $_POST
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 *three* possible PHP compiles: module, CGI, and CLI? So far as the php binary in /usr/local/bin is concerned there are two - cli and cgi. The module consists of different files (see the AddModule and LoadModule bits of httpd.conf). You can have both (I have made that my standard build for multi-homed machines) but need to muck about a bit for this. OK. To save us the cost of rebuilding at this host, is there any way to pass args to the CLI version of the script running as a CGI? You might find you start getting odd problems with http headers if you use the cli version. In general you're better off using the cgi one. But you can get this by recompiling but not installing php cgi, then copy the php executable to, say, /usr/local/bin/php-cgi and prefacing your scripts with this in the shebang. That would mean zero disruption for users on the machine. Peter. Thanks & HAND :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as CGI and $_POST
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 --with-apxs=/yada/apxs [other options] Yep. And with CLI enabled, too. % % What you need to do is recompile php with configure like: %configure --[other options] Gotcha. Thanks for the pointers. % % Then make will build a cgi binary in sapi/cgi/php, relative to your build % directory. If you want both versions (cgi and cli) you'll have to % manually place the cgi version of php somewhere else than % /usr/local/bin or name it something php_cgi. And then reference % that file in you php script. I found where our support crew had built the current version not quite six months ago, and that a lovely buildme file with our approximately 8 billion --with* params in it, so I just copied the tree, pulled apxs out, rebuilt, and copied the CGI php somewhere as you suggest. And now I have post data; yippee :-) Thanks also for your other response. Finding the build tree was definitely the easier route :-) HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgpJXoqkHNGmw.pgp Description: PGP signature
Re: [PHP] php as CGI and $_POST
* 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. > > Ooohhh... Ouch. So there are *three* possible PHP compiles: > module, CGI, and CLI? > > OK. To save us the cost of rebuilding at this host, is there any way to > pass args to the CLI version of the script running as a CGI? You might have getenv('QUERY_STRING') for GET data and *possibly* to get the POST data you can do something like: $fp = fopen('php://stdin', 'r'); while (!feof($fp) ) $buf .= fgets($fp, 1024); fclose($fp); Then of course you're going to have to parse the query_string and post data in order to get the variable names and values.. parse_str(getenv('QUERY_STRING'), $_GET); Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as CGI and $_POST
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 PHP compiles: module, CGI, and CLI? OK. To save us the cost of rebuilding at this host, is there any way to pass args to the CLI version of the script running as a CGI? Thanks & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgphoH93CTsi6.pgp Description: PGP signature
Re: [PHP] php as CGI and $_POST
* 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: > > 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 --with-apxs=/yada/apxs [other options] What you need to do is recompile php with configure like: configure --[other options] Then make will build a cgi binary in sapi/cgi/php, relative to your build directory. If you want both versions (cgi and cli) you'll have to manually place the cgi version of php somewhere else than /usr/local/bin or name it something php_cgi. And then reference that file in you php script. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as CGI and $_POST
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 (cli) (built: Jan 6 2004 15:27:52) You probably need the cgi version - not the command line one you actually have. Peter. Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies % % % Curt TIA & HAND :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as CGI and $_POST
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: Jan 6 2004 15:27:52) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies % % % Curt TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp1qcksBNrfz.pgp Description: PGP signature
Re: [PHP] php as CGI and $_POST
* 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 that I can provide that without even > messing about with a form that I might somehow be screwing up, so I > thought I'd try it... > > My code is as simple as > > #!/usr/local/bin/php What does '/usr/local/bin/php -v' show? Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi and module at same time
* 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 unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi with static libraries?
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-process (may affect gcc in general, not php-specific). Regards Marten -- 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?
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't want to build php with absolutely no dynamic libaries, only certain libaries shall be compiled in statically. -- 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?
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 build php yourself, take a look at configure --help: $ ./configure --help | grep static --enable-static[=PKGS] build static libraries [default=yes] -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi script
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 Nov 2003, Nicole Lallande wrote: > > Ivone -- > > You are using a PERL invocation for php. PHP > scripts begin > #! 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 webserver, chances are > good you do want > #!/path/to/php as the first line, and next line. > > I don't think you can pass a flag like > #!/usr/bin/php -q though, and I > doubt you would want to, since you still need to > send the headers upon > first output. If you did not send headers and just > started outputting, the > server would return a 500 Internal Server Error. > > The directory you're running it from needs to have > ExecCGI permission > (i.e. /cgi-bin/) and assuming no special setup has > been done, you probably > want to start the file off with that #! line as > mentioned above. Also, you > may want to try naming the file .cgi > > > 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 like perl, it > does have the benefit of being ignored as a > comment.) > > > 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. > > CGI stands for common gateway interface, which is > the interface between a > web server/request and some external program, so it > has little to do with > the command line. However, to run PHP from the > command line, you do need > to run it with the "CGI version" of PHP. The > question did not specify > needing to run PHP from the command line, but as a > CGI by the webserver. > > -- > Kelly Hallman > // Ultrafancy > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi script
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 like perl, it does have the benefit of being ignored as a comment.) > 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. CGI stands for common gateway interface, which is the interface between a web server/request and some external program, so it has little to do with the command line. However, to run PHP from the command line, you do need to run it with the "CGI version" of PHP. The question did not specify needing to run PHP from the command line, but as a CGI by the webserver. -- Kelly Hallman // Ultrafancy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi script
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 php has this line #!/usr/local/bin/php Do I have to compile a php as a cgi, or do I need to do something on the apache server? Please could you clarify my doubts. For example this is a sample of the code: \r\n";?> http://www.phone.com/dtd/wml11.dtd";> Test I really appreciate your help. Kisses, Ivone --- Nicole Lallande <[EMAIL PROTECTED]> wrote: > 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://www.php.net/manual/en/install.commandline.php > > Best regards, > > Nicole > > Ivone Uribe wrote: > > >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 >e>: /www/cgi-bin/pruebacgi.php > >I hope someone can help me! I don't know what can I > >do. > > > >In fact if I run any php that have this line > >#!/usr/local/bin/php > >I get an error like that > >Premature end of script headers: > >/www/cgi-bin/pruebacgi.php > > > > > > > >I have installed the php4.3.3 and apache 1.3.28. > > > >I configured the php with this line > >./configure --with-mysql > >--with-apache=../apache_1.3.28 --enable-track-vars > > > >Do I need to configure some else in my apache or > php > >configuration file. Whan can I do to solve this > >problem? > > > > > >Thanks in advance > >KISSES > >Ivone > > > > > > > > > > > >__ > >Do you Yahoo!? > >Free Pop-Up Blocker - Get it now > >http://companion.yahoo.com/ > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as cgi script
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://www.php.net/manual/en/install.commandline.php Best regards, Nicole Ivone Uribe wrote: 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 me! I don't know what can I do. In fact if I run any php that have this line #!/usr/local/bin/php I get an error like that Premature end of script headers: /www/cgi-bin/pruebacgi.php I have installed the php4.3.3 and apache 1.3.28. I configured the php with this line ./configure --with-mysql --with-apache=../apache_1.3.28 --enable-track-vars Do I need to configure some else in my apache or php configuration file. Whan can I do to solve this problem? Thanks in advance KISSES Ivone __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php as CGI
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 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 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 appreciated. > > Beech > -- > --- > Beech Rintoul - IT Manager - Instructor - [EMAIL PROTECTED] > /"\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission > \ / - NO HTML/RTF in e-mail | P.O. Box 230510 > X - NO Word docs in e-mail | Anchorage, AK 99523-0510 > / \ - > > > > > > > > > > > > > -- > 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] > -- 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]
RE: [PHP] PHP as CGI
i had a very similar problem when i first setup PHP/Apache on my linux box... i forgot to add a line to my httpd.conf and got all sorts of "Cant find this" "Cant find that" type of errors my mistake was that i did not set ScriptAlias and Action correctly, and thus apache was having all sorts of problems executing my scripts becuase i put the physical path to php after my Action directive, rather than alias it via a ScriptAlias directive.. (silly me thought i could do away with the ScriptAlias and just point to it directly) make sure you have both of these (or something similar) in your httpd.conf file: ScriptAlias /php/ "/physical/path/to/php" Action application/x-httpd-php "/php/php" (and make sure to "killall -HUP httpd" after any changes to the conf files, although you probably knew that already... :) hope it helps. > -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 "." 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. > > Apache/1.3.3 Server at www.website.com Port 80 > > --- > > the installed CGI is php 4.0.3pl1, > it runs fine from the command line. > > any ideas? > > thanks, > Hrishi > > -- > 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] > -- 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]
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 "." 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. Apache/1.3.3 Server at www.website.com Port 80 --- the installed CGI is php 4.0.3pl1, it runs fine from the command line. any ideas? thanks, Hrishi -- 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]
Re: [PHP] PHP as CGI
>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-httpd-php .php .php3 .htm .html .phtml C) Is there a php binary in a php directory? You'd want: /usr/local/php/php [Or did you just type that trailing / for fun?] -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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]