LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need to recompile PHP? (https://www.linuxquestions.org/questions/linux-software-2/need-to-recompile-php-142220/)

griffey 02-04-2004 11:06 AM

Need to recompile PHP?
 
Hey folks,

I am running a Dell server with RedHat Enterprise ES 3.0. I have also installed Apache 2.0.48, mySQL, PHP 4.3.4, and ColdFusion MX. We are taking over a website from another University, and the website already implements some of these technologies.

After moving the website and doing some primary testing, my colleague at the other University sent me an email and said "The Crop Profile Webservice in PHP depends on the WDDX functions being available in PHP."

I am not using RHN packages for Apache or mySQL or PHP--I compiled them all on my own.

When I compiled PHP originally, I did

./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs

I need to add --enable-wddx

I compiled PHP this way yesterday on a test server, and now need to add the wddx part on the production server.

My gut is to just remove the PHP installation that I already have and then recompile with the proper arguments. Something like:

rm -rf /usr/local/php-4.3.4

And then just start over with the PHP installation?

Will this cause problems with Apache, mySQL, etc.?

Thanks in advance for the advice.

Mike

jtshaw 02-04-2004 11:12 AM

Don't remove the old one, the make install should take care of that. You might want to look into any other options you might want. My configure line for php is about a page long it seams. If you want to run horde or imp (for webmail) you are going to need a bunch of options.

griffey 02-04-2004 11:16 AM

Wow JT, thanks for the fast reply!

I will ask my cohort at MSU if he can think of anything else I should add to the ./configure line and go from there!

Thanks so much for the help!

Mike

adrianc.grigoras 02-18-2009 08:24 AM

Hi,

I found this post. After we recompile php, we need to recompile all the modules that are previously compiled(mmcache, sql_relay) or we just add them into php.ini?

We recompile the same version.

servat78 02-18-2009 06:52 PM

If only some compilation option was changed, but otherwise the same PHP version is used, then you should be safe to use the old modules. If the modules did run without the need for WDDX then they will also run with WDDX, for the plain reason that they do not use that functionality.

Debian


All times are GMT -5. The time now is 12:46 AM.