I want to compile PHP 4.4.9 on Red-Hat Linux with FastCGI support but
it fails. I've compiled it with the following options:
./configure --prefix=/usr/local/php --enable-fastcgi
--with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql
--with-zlib-dir=/usr/lib/ --enable-versioning --enable-track-vars=yes
--enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes
--enable-ftp --enable-calendar --with-config-file-path=/etc --with-gd
--with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --enable-discard-path
--enable-force-cgi-redirect --with-mcrypt --enable-sockets
--enable-bcmath --with-freetype-dir=/usr/lib/
But after make and make install (without failures) the command
php -v shows me the following:
PHP 4.4.9 (cli) (built: Aug 14 2010 18:04:54)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
I think it should be (cgi-fcgi) and not (cli).
Why it wont work, configure options should be right to compile with
fcgi support.
I need fast-cgi for lighttpd.
Crashdemon
Why would you ever want to use a version of PHP which has been
unsupported for years?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
What's the error message you get when you compile it?
> But after make and make install (without failures) the command
> php -v shows me the following:
>
> PHP 4.4.9 (cli) (built: Aug 14 2010 18:04:54)
> Copyright (c) 1997-2008 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
>
> I think it should be (cgi-fcgi) and not (cli).
If you are running "php -v" and you aren't getting the following error "bash:
php: command not found", then you should get it saying "cli" as that is what
you are using when you call php from command line, if you want to check if you
are using "cgi-fcgi" then you need to call it from your web server (simplest
way is just create an index.php file which just contains "<php? phpinfo(); ?>"
and then go to that page).
> Why it wont work, configure options should be right to compile with
> fcgi support.
>
> I need fast-cgi for lighttpd.
Install your lighttpd and check what you get.
By the way, as Jerry mentioned, the php4 is no more supported and can have
many serious bugs which never will be patched (if not you yourself do _all_
the patching).
I guess your RedHat does come with php4 as it is, it feels quite outdated too,
I would suggest you update your system (if you are using RedHat 8 or 9, update
to Fedora 13, if you are using RedHat EL 3.x or 4.x, then upgrade to RedHat EL
5.6 or 6 in a near future).
When you compile things, I hope you been smart enough to make a proper rpm
that matches the naming that RedHat uses, if not, you may get dependency
problems when yo0u install something that depends on php, which can cause the
system to install the default RedHat php package which will then overwrite
your own compiled binaries.
Summary:
1. Upgrade your RedHat to a current version
2. Build php5 RPMs which you install (threaded support would allow you to use
Apache with worker MPM which will give you the same or better speed than
lighttpd).
--
//Aho