Hello the list,

I have a problem when I try to install Apache+PHP+FastCGI.

When I start Apache I have the following error messages :

[Tue Feb 11 17:23:43 2003] [info] created shared memory segment #1605632
[Tue Feb 11 17:23:43 2003] [notice] Apache/1.3.27 (Unix) mod_fastcgi/2.4.0
configured -- resuming normal operations
[Tue Feb 11 17:23:43 2003] [info] Server built: Feb 11 2003 18:16:40
[Tue Feb 11 17:23:43 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Feb 11 17:23:43 2003] [notice] FastCGI: process manager initialized
(pid 2122)
[Tue Feb 11 17:23:43 2003] [warn] FastCGI: server "/bin/php" started (pid
2124)
PHP Fatal error:  input in flex scanner failed in - on line 1

Fatal error: input in flex scanner failed in - on line 1
[Tue Feb 11 17:23:43 2003] [warn] FastCGI: server "/bin/php" (pid 2124)
terminated by calling exit with status '0'
[Tue Feb 11 17:23:48 2003] [warn] FastCGI: server "/bin/php" restarted (pid
2125)
PHP Fatal error:  input in flex scanner failed in - on line 1

Could help me to find out what is wrong ?


Below my conf :

Installation & configuration on Linux RH 7.3 :

sablotron : (XML engine)
-----------

./configure --prefix=/usr/local/sablotron
make && make install


fcgi-2.2.2 :
------------
./configure --prefix=/usr/local/fcgi
make && make install

php 4.3.0:
----------
./configure --prefix=/usr/local/php --with-mysql --with-apache=/usr/local/ap
ache_1.3.27 --with-xslt-sablot=/usr/local/sablotron/ --enable-xslt --with-fa
stcgi=/usr/local/fcgi
make && make install

mod_fastcgi 2.4.0:
------------------

"tar xcvf" of the tarball in the apache_1.3.27/src/modules directory & "mv
mod_fastcgi-2.4.0 fastcgi"

apache 1.3.27 :
---------------
./configure --prefix=/usr/local/apache --activate-module=src/modules/fastcgi
/libfastcgi.a
make && make install

(I tried also
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/li
bphp4.a --activate-module=src/modules/fastcgi/libfastcgi.a - by using the
PHP module - but I have the same problem)

- I've  configured and installed Apache in a chrooted environment (root =
/usr/local/apapche) with all required libraries and files to run Apache
(Apache works fine and Apache with only PHP (without FastCGI) works fine
too).

- I put the php binary from /usr/local/php/bin in the /usr/local/apache/bin
directory

- I put all FastCGI libraries (in /usr/local/fgci/lib) in the lib directory
in my chrooted env. Perhaps I forgot to add some bin or lib files ?

- In my httpd.Conf, I put the following lines to handle fastcgi :

#Fast-CGI
FastCgiServer /bin/php         <= path in my chrooted env (ie
/usr/local/apache/bin)
AddHandler php-fastcgi .php
 <Location /fast-cgi>                    <= root directory for my ".php" files
     SetHandler fastcgi-script
 </Location>
Action php-fastcgi /bin/php

.... and I have the error messages when I try to start the Apache web
server:


Thank you in advance for your help.

Best Regards

Stephane Rozes


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to