Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where can i download php-cgi for redhat? 1

Status
Not open for further replies.

farley99

MIS
Joined
Feb 12, 2003
Messages
413
Location
US
where can i download php-cgi for redhat?
 
RedHat does not supply a package called php-cgi. I belive Mandrake does, though. You might try looking at for a package by that name.

The RedHat-supplied PHP RPMs might also actually supply a stand-alone PHP interpreter which can be used as a CGI engine.

The source code from when compiled, can produce either an Apache module or both a module and a stand-alone PHP interpreter that can be used with CGI.


Want the best answers? Ask the best questions: TANSTAAFL!!
 
So it give you the option to chose cgi when compiling it?
 
how do i tell the configure script to create an Apache Module
 
I run PHP as a shared module, so I hand the configure script the input "--with-apxs=[path to Apache's apxs command]"

That makes it mod-php not cgi-php right?
 
Here's how I run the configure script:

./configure --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-openssl --enable-bcmath --with-dom --enable-ftp --with-mysql=/usr --with-zlib --with-mcrypt=/usr --with-curl --enable-calendar --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-gd --enable-gd-native-ttf --enable-exif

Once I've run configure, then make, then make install, I have a PHP module installed in Apache and also a standalone PHP interpreter which can be used as a CGI script interpreter.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top