Re: [cgiwrap-users] php-cgiwrap and RPM install
Brought to you by:
nneul
From: Piotr K. <ma...@ma...> - 2002-02-18 14:02:07
|
On Fri, Feb 15, 2002 at 02:18:49PM -0800, Jeff Bert MTIA wrote: > use PHP-CGIWRAP. So I took the RPM source for PHP and in the spec file What is this PHP-CGIWRAP? Is that any package or just set of configuration lines? > #rpm -Uvh php-4.0.6......src.rpm > *** here I went to the .spec file and added "--enable-discard-path" to the > configure options. > #rpm -bb php-4.0.6......src.rpm > #rpm -ivh php-4.0.6......src.rpm Where do you install php binary version? "rpm -ivh php-4.0.6......src.rpm" would install just a sources again. Install the file with 'i386.rpm' at the end. > Maybe this is more of a PHP problem but I wanted to know if anyone has > successfully installed php-cgiwrap via an RPM install and if they did > anything more than I did... Yes, this is not a cgiwrap related, unless you run somewhere cgiwrap. From your mail I understand that you can not run php as a simple cgi script. Try execute any php script from the command line first: php -f script.php If successful, then copy it to script.cgi (or copy it to cgi-bin/ directory etc.) with the first line containing the php path: echo '#!/usr/bin/php' > script.cgi cat script.php >> script.cgi Try execute it via the web server. If you can see the php output in your browser, THEN you can add cgiwrap to the apache configuration. Regards, -- Piotr Klaban |