LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-21-2012, 12:09 PM   #1
jstuardo
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
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
 
Old 02-21-2012, 12:41 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,882

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
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
 
Old 02-21-2012, 09:17 PM   #3
jstuardo
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling PHP 5.1.6 from source - php -v and phpinfo() version discrepancy nicky77 Linux - Software 7 03-05-2010 03:44 PM
Ubuntu amd64 (x86_64)version 7.04 issues with compiling php from source LDZ420 Linux - Software 5 08-23-2007 09:24 AM
Which version of Apache? PHP? Randux Slackware 6 05-22-2006 04:05 AM
apache and php compiling problem brijesh Linux - Networking 2 12-17-2005 05:27 AM
compiling apache with php saavik Linux - Networking 3 09-11-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration