Install PHP as CGI with Apache

From: Date: Thu, 20 Nov 2003 20:06:52 +0000
Subject: Install PHP as CGI with Apache
Groups: php.install 
Request: Send a blank email to php-install+get-12286@lists.php.net to get a copy of this message
i am trying to install php as a cgi for apache (i need system regex so it has to be cgi) and i just keep on getting "No Input File Specified" i have added AddHandler application/x-httpd-php .phtml Action application/x-httpd-php "/cgi-bin/php" to my httpd.conf file and i have tried changing all of these in my php.ini file, none of witch helped, i tested just about anything that remotely made sense and every combination of them doc_root cgi.force_redirect cgi.fix_pathinfo here is my configure command ./configure -with-mysql --with-bz2 --with-gd --enable-ftp --with-mysql-sock --with-ttf --with-freetype-dir --with-t1lib --enable-calendar --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-regex=system --enable-dbase --enable-dbx --enable-versioning --enable-force-cgi-redirect i have tried removing --enable-force-cgi-redirect but that only allowed it to work when i got the page with http://mysite.com/cgi-bin/php/path/to/file.phtml witch is no good i'm using .phtml so i can have some files (.php) use the apache module witch works fine (it is faster right) and the .phtml files use the cgi version so they can use the system regex library, disabling the module didn't help i am using php4.3.4 and have tried it with apache 2.0.48 and apache 1.3.29, both gave me the exact same result, i am running this on linux so does anyone have any clues as to what is causing this and how i can get it to work, i have been working at this for days now and it is still not working Thanks in Advanced!

« previous php.install (#12286) next »