For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > February 2005 > Re: [PHP-INSTALL] installing BOTH php-cli and php-cgi at the same









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] installing BOTH php-cli and php-cgi at the same
Brad Kowalczyk

2005-02-26, 3:56 am

Edward Peschko wrote:
> hey all,
>
> I've got a bit of a conundrum - I want to install *both*
> php-cli and php-cgi at the same time, but am running into
> 'issues'. However, this doesn't seem possible with php-5.03.
>
> I configure with:
>
> ./configure --prefix=<prefix> --with-libxml-dir=<prefix>
> --with-apxs=<prefix>/bin/apxs --with-mysql=<prefix>
> --with-config-file-path=<prefix> --with-zlib
> --with-gettext --enable-libgcc --with-readline=<prefix>
> --enable-cgi
>
> BUT the make process only creates a cli version of php. I can still
> use the php I've built with apche (because it creates a module,
> libphp5.so and installs it in the libexec directory, but no
> cgi build.
>
> I'd like to be able to have the cli version of php installed as
> <prefix>/bin/php-cli, and the cgi version of php installed as
> <prefix>/bin/php, so I could use both at the same time. Is that too
> much to ask? Is there a way to do this?
>
> Ed
>


I'm not 100% certain but I dont think you can build the apache module
and the cgi at the same time (I've never tried it), its generally one or
the other. Building the cli and the cgi together is not an issue.


--
Brad Kowalczyk
Web Developer
www.ibiscode.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com