php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40059 CGI installation not working
Submitted: 2007-01-08 09:03 UTC Modified: 2007-01-11 13:44 UTC
From: jaha at kosova dot de Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 4.4.4 OS: SuSE 10.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jaha at kosova dot de
New email:
PHP Version: OS:

 

 [2007-01-08 09:03 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-11 09:38 UTC] 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-11 13:44 UTC] jaha at kosova dot de
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 09:01:34 2025 UTC