#40059 [NEW]: CGI installation not working
| From: | jaha at kosova dot de | Date: | Mon, 08 Jan 2007 09:03:22 +0000 |
| Subject: | #40059 [NEW]: CGI installation not working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-107310@lists.php.net to get a copy of this message | ||
From: jaha at kosova dot de
Operating system: SuSE 10.1
PHP version: 4.4.4
PHP Bug Type: CGI related
Bug description: CGI installation not working
Description:
------------
Hello,
I've installed php4 as cgi over php5 on apache2 and the server is giving
me the following error:
Warning: Unexpected character in input: '' (ASCII=15) state=1 in
/usr/share/php4/bin/php on line 4063
Parse error: syntax error, unexpected T_STRING in /usr/share/php4/bin/php
on line 4063
The Script-file (index.ax) is containing:
<?php
echo "test";
?>
php4 is configured with:
./configure --enable-force-cgi-redirect --prefix=/usr/share/php4
--datadir=/usr/share/php4/php4 --bindir=/usr/share/php4/bin
--libdir=/usr/share/php4 --sysconfdir=/etc/php4 --with-_lib=lib
--with-config-file-path=/etc/php4 --with-exec-dir=/usr/lib/php4/bin
--disable-debug --enable-bcmath --enable-calendar --enable-ctype
--enable-dbase --enable-discard-path --enable-exif --enable-filepro
--enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf
--enable-inline-optimization --enable-magic-quotes
--enable-mbstr-enc-trans --enable-mbstring --enable-mbregex
--enable-memory-limit --enable-shmop --enable-sigchild --enable-sysvsem
--enable-sysvshm --enable-track-vars --enable-trans-sid
--enable-versioning --enable-wddx --with-bz2 --with-dom --with-ftp
--with-gdbm --with-gettext --with-gmp --with-mhash --with-mysql
--with-ndbm --with-readline --with-t1lib --with-ttf
--with-freetype-dir=yes --with-xml --with-zlib=yes --with-openssl
--with-curl --without-readline --with-imap-ssl --with-iconv
in apaches httpd.conf has the following lines been added:
<Directory "/usr/share/php4/bin">
Order allow,deny
allow from all
Options +ExecCGI
AllowOverride None
</Directory>
ScriptAlias /php4/ "/usr/share/php4/bin/"
AddType application/x-httpd-ax .ax
Action application/x-httpd-ax /php4/php
Reproduce code:
---------------
<?php
echo "test";
?>
Expected result:
----------------
test
--
Edit bug report at http://bugs.php.net/?id=40059&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40059&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40059&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40059&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40059&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40059&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40059&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40059&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40059&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40059&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40059&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40059&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40059&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40059&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40059&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40059&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40059&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40059&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40059&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40059&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40059&r=mysqlcfg