Problem with PHP in CGI mod
| From: | Cédric Petter | Date: | Mon, 20 Jun 2005 19:14:44 +0000 |
| Subject: | Problem with PHP in CGI mod | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16318@lists.php.net to get a copy of this message | ||
Hi everybody
Some days ago, I have post a question in this list.
My question was :
How it is possible to have PHP 4 and PHP 5 with apache on the same Web
Server.
The answer was : use CGI mod for PHP 4 or / and PHP 5
So I've tried to install PHP 4 as CGI mod, and I've had the next problem
When I was seen a page an error
Warning: Unexpected character in input: '' (ASCII=15) state=1
in /Path/To/php.cgi on line 3326
Parse error: parse error, unexpected '*' in /path/to/php.cgi
on line 3326
So I've decide to try with PHP 5, and then no problems!!
I've use the next configuration :
./configure
--prefix=/usr/local/php504 --enable-cgi --disable-cli --disable-pear
--enable-discard-path --with-config-file-path=/usr/local/lib
--with-libxml-dir=/usr/local/libxml2619 --enable-magic-quotes
--with-expat-dir=/usr/local/expat1958 --with-zlib=/usr/local/zlib122
--with-bz2=/usr/local/bzip103 --enable-exif --enable-ftp
--with-gd=/usr/local/gd2033 --with-gettext --enable-mbstring
--with-mime-magic
--with-mysql=/usr/local/mysql4112 --enable-calendar
--with-pgsql=/usr/local/postgresql802 --enable-gd-native-ttf --with-ttf
--with-freetype-dir=/usr/local/freetype215/
--with-jpeg=/usr/local/libjpeg6b/
--with-tiff-dir=/usr/local/libtiff --with-png-dir=/usr/local/png128
--with-iconv=/usr/local/iconv191 --with-mhash=/usr/local/mhash092
And that's very strange because I've use the same config for PHP4!!
if you have an idea, that's welcome
If you have some questions about my config, contact me!!
Cedric Petter