#40059 [Bgs->Csd]: CGI installation not working
ID: 40059
User updated by: jaha at kosova dot de
Reported By: jaha at kosova dot de
-Status: Bogus
+Status: Closed
Bug Type: CGI related
Operating System: SuSE 10.1
PHP Version: 4.4.4
New Comment:
OK, thank you. I thought that it maybe could be any incompability with
SuSe which is using UTF-8 as system charset and apache is running with
"ISO" german.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 09:38:04] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2007-01-08 09:03:22] jaha at kosova dot de
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 this bug report at http://bugs.php.net/?id=40059&edit=1
Thread (3 messages)