#19378 [NEW]: Parse error in PHP executable as Apache CGI
| From: | ken at kyler dot com | Date: | Thu, 12 Sep 2002 18:45:03 +0000 |
| Subject: | #19378 [NEW]: Parse error in PHP executable as Apache CGI | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19256@lists.php.net to get a copy of this message | ||
From: ken@kyler.com
Operating system: FreeBSD 4.5-STABLE
PHP version: 4.2.3
PHP Bug Type: Apache related
Bug description: Parse error in PHP executable as Apache CGI
PHP 4.2.3 compiled on a FreeBSD 4.5-STABLE box with the following options:
--with-config-file-path=/usr/local/etc/php.standalone \
--disable-pear \
--enable-discard-path \
--with-readline=/usr \
--enable-versioning \
--with-regex=system \
--with-gd=/usr/local \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-zlib \
--with-mysql=/usr/local \
--enable-trans-sid \
--prefix=/usr/local
Apache is configured to use PHP as both a module (which works fine) and a
CGI (see below)
## for mapserver & PHP as a CGI
ScriptAlias /cgi/ /usr/local/share/apache/cgi/
AddType application/x-httpd-php-cgi .phm
Action application/x-httpd-php-cgi /cgi/php
When the following is opened in Apache, I get the following error "Parse
error: parse error in /usr/local/share/apache/cgi/php on line 3713"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php echo phpinfo();?>
</body>
</html>
I've gotten this error on 2 separate FreeBSD servers. I use the PHP4 port
in the lang ports collection.
PHP works fine from the commandline. It just fails under apache.
Ken
--
Edit bug report at http://bugs.php.net/?id=19378&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19378&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19378&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19378&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19378&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19378&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19378&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19378&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19378&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19378&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19378&r=globals