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!

Reconfigure PHP-CGI with IMAP and MYSQL support 1

Status
Not open for further replies.

Sleidia

Technical User
Joined
May 4, 2001
Messages
1,284
Location
FR
Hello,

I have a module version of PHP 4.1 plus a CGI version of PHP 4.3 installed on a RedHat 7.2 system.

I've just found out that I've installed the CGI version without the IMAP and MYSQL support.

As I'm about to run ./configure again, I have two questions :

1) Will running "./configure" with the new settings be enough or will I have to run "make" and "make install" again?

2) What should be the --options like for IMAP and MYSQL support? I thought I should use " ./configure --with-imap=shared --with-mysql=shared" but I'm wondering if I have to specify the paths of some dirctories (such as the one for IMAP) or if the CGI version will automatically use the directories already used by the module version.

Thanks a lot for the help.
Have a nice day !

 
You'll have to recompile the software.

You'll need to specify the location of the libraries. I have MySQL support enabled, and I used --with-mysql=/usr. I'm not using IMAP support, but it should be the same.

The exact parameters you pass to the configure script depends on whether you want PHP to include the code for MySQL and IMAP to to use the libraries externally. If you just specify the path, the compile script will include the code for MySQL and IMAP support into the engine. This will make the engine larger, but a little faster.

To enable MySQL support using external libraries, use --with-mysql=shared,/usr



Want the best answers? Ask the best questions: TANSTAAFL!!
 

Thanks for the info, Sleipnir.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top