debx46 htacess php-cgi error save as not dispaly
<p>I am trying to follow the logic of a custom php-cgi build that keeps generating errors, I have followed the guides as below.</p>

<p>my config is as follows
/home/myuser/blah.com/cgi-bin/php.cgi</p>

<p>httpd.conf</p>

<pre><code>NameVirtualHost *:80
&lt;VirtualHost *:80&gt;
ServerAdmin webmaster@blah.com
ServerName v2.blah.com
ServerAlias v2.blah.com
DocumentRoot /home/myuser/blah.com
&lt;Directory "/home/myuser/blah.com/"&gt;
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
ErrorLog /home/myuser/logs/blah.com.in-error_log
CustomLog /home/myuser/logs/blah.com.in-access_log common 
&lt;/VirtualHost&gt;
</code></pre>

<p>.htaccess</p>

<pre><code>Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
&lt;FilesMatch "^php5?\.(ini|cgi)$"&gt;
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
&lt;/FilesMatch&gt;
</code></pre>

<p>when i request the page it offers to save the php.cgi (27meg) and the errorlog records
     [Thu Jun 14 06:27:23 2012] [error] [client 192.168.200.100] File does not exist: /home/myuser/blah.com/cgi-bin/a.php</p>

<p>custom php build </p>

<pre><code> PHPFEATURES="--prefix=${INSTALLDIR} \
--with-config-file-path=${INSTALLDIR}/etc/php5/${DOMAIN} \
--enable-fastcgi \
--enable-force-cgi-redirect \
--with-xml \
--with-libxml-dir=${INSTALLDIR} \
--with-freetype-dir=${INSTALLDIR} \
--enable-soap \
--with-mhash=${INSTALLDIR} \
--with-mcrypt=${INSTALLDIR} \
--with-zlib-dir=${INSTALLDIR} \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-gd \
--enable-gd-native-ttf \
--enable-memory-limit \
--enable-ftp \
--enable-exif \
--enable-sockets \
--enable-wddx \
--with-iconv=${INSTALLDIR} \
--enable-sqlite-utf8 \
--enable-calendar \
--with-curl=${INSTALLDIR} \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--with-mysql=/usr \
--with-mysqli \
--without-pear \
--with-gettext \
--with-imap=${INSTALLDIR} \
--without-imap-ssl
--with-m4=${INSTALLDIR} \
--with-autoconf=${INSTALLDIR} 
"
</code></pre>

<p>any help would be great.
thx
Art</p>
