LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   After compiling PHP 5.3.10, apache is still using the old version (https://www.linuxquestions.org/questions/linux-server-73/after-compiling-php-5-3-10-apache-is-still-using-the-old-version-930525/)

jstuardo 02-21-2012 11:09 AM

After compiling PHP 5.3.10, apache is still using the old version
 
Hello...

I have downloaded PHP source files and compile it. The problem I am having is that apache is still using the old version of PHP.

I realized that libphp5.so file stored in apache folder is the older and no new libphp5.so file that should be generated. I see this is Makefile but that .so file was not generated in libs folder.

libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so

Any help will be greatly appreciated

Thanks
Jaime

bathory 02-21-2012 11:41 AM

Hi,

Did you use "--with-apxs2=..." in your ./configure options?
If you did, you can find libphp5.so under php-5.3.10/.libs and php-5.3.10/libs. Then you can copy it to the apache modules directory and restart apache

Regards

jstuardo 02-21-2012 08:17 PM

Hello..

I was using that option but I got an error... so I needed to recompile Apache first and then PHP... now all works.

Best regards
Jaime


All times are GMT -5. The time now is 06:13 PM.