Can't build PHP properly in Fedora Core 9

libphp5.so doesn't build

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 2025 Views - Last Post: 29 December 2010 - 07:58 AM

#1 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Can't build PHP properly in Fedora Core 9

Posted 22 December 2010 - 10:56 AM

Hello everyone,
Let me start by saying I'm very much an amateur when it comes to Linux system administration. I have been told that we need to update Apache and PHP to take care of some security holes. I have installed Apache 2.2.17 just fine, and it is up and running with our current version of PHP, 5.2.6. I need to update to 5.3.4, but I am having trouble getting that to work properly.

I have downloaded the tar.gz file from php.net, I have extracted it, I have run './configure' with our options, and I have run 'make' and 'make install'. Everything looks to build fine, and it is all installed in its proper place (/usr/local/lib/php), but when I have run a phpinfo() on one of our sites, I still see "PHP 5.2.6".

I read on the internet that libphp5.so didn't get built, and there was already that file in /usr/local/apache2/modules. So, I moved it to another folder, re-built and re-installed PHP, and no new libphp5.so file was created in the modules folder.

I have tried numerous times with 5.3.4; I have tried today installing 5.2.16 also with no luck. I tried removing all of our options from the config.nice file except for
--with-apxs2=/usr/local/apache2/bin/apxs

and nothing has worked.

Does anyone have any ideas about what could be wrong? I know that every system is configured differently, but any help would be appreciated. I will do the best I can to provide any information necessary.

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Can't build PHP properly in Fedora Core 9

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6727
  • View blog
  • Posts: 31,157
  • Joined: 10-May 07

Re: Can't build PHP properly in Fedora Core 9

Posted 22 December 2010 - 01:30 PM

When you are compiling php, is Apahche shut down?

Check under httpd.conf for the loadable php module. When you compile the new php, find where this module is. I think you are still loading the old one.
Was This Post Helpful? 0
  • +
  • -

#3 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 23 December 2010 - 07:17 AM

Yes, Apache is shut down.

I'm not sure what you mean when you say 'Check under httpd.conf.' In httpd.conf, I have 'LoadModule php5_module modules/libphp5.so', but that file never shows up in modules. I have kept the old one(from 5.2.6) in my home directory in case recompiling the old version never recreates libphp5.so.

Would there be any place in the install directory I could check? I have looked around in there but have never found anything.

Thanks.
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Can't build PHP properly in Fedora Core 9

Posted 23 December 2010 - 09:05 AM

Do you run make install as root?
Was This Post Helpful? 0
  • +
  • -

#5 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 23 December 2010 - 09:20 AM

View PostJackOfAllTrades, on 23 December 2010 - 08:05 AM, said:

Do you run make install as root?


Sorry, that might have helped...yes, I ssh into this server as root.

I have edited the config.nice file, run ./configure, then run make when that finishes, and finally, make install.

If I captured the output of make, would that provide any information?
Was This Post Helpful? 0
  • +
  • -

#6 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Can't build PHP properly in Fedora Core 9

Posted 23 December 2010 - 10:50 AM

Absolutely it would help.
Was This Post Helpful? 0
  • +
  • -

#7 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 07:41 AM

Here is the output of the make command:

Attached File(s)

  • Attached File  make.txt (186.57K)
    Number of downloads: 73

Was This Post Helpful? 0
  • +
  • -

#8 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 08:31 AM

There should be a config.log. Can you post that as well?
Was This Post Helpful? 0
  • +
  • -

#9 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 08:56 AM

Added .txt because I got a message saying "You are not permitted to upload this kind of file"

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

#10 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 09:03 AM

That file did not contain what I expected :S

I expected something like this at the top:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Apache CouchDB configure 0.10.2, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ./configure 




What is the entire command you issued to ./configure?
Was This Post Helpful? 0
  • +
  • -

#11 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 09:09 AM

I stripped it down to a bare minimum. This is the config.nice file

#! /bin/sh
#
# Created by configure

'./configure' \
 --with-apxs2=/usr/local/apache2/bin/apxs
"$@"


Was This Post Helpful? 0
  • +
  • -

#12 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 09:56 AM

Quote

--with-apxs[=FILE]

Build shared Apache module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs. Make sure you specify the version of apxs that is actually installed on your system and NOT the one that is in the apache source tarball.


Hmmm. It's been a long time since I built Apache/PHP from source. From that quote, are you sure that the version of the apxs tool to which you're pointing is the one for the latest version of Apache?

I'm going to move this to Web Servers & Hosting, maybe get some more input there.
Was This Post Helpful? 1
  • +
  • -

#13 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 27 December 2010 - 10:09 AM

Thanks for all of your input.

I am not absolutely positive about anything concerning this server install, lol. I just recently built Apache, and the build date of the apxs tool shows '2010-12-22 09:28', and that definitely would have been a build done by me, since this server had the same Apache version for the past couple of years or so.

Is there any way to determine which version of the apxs tool is installed, like a command-line command?
Was This Post Helpful? 0
  • +
  • -

#14 manafi   User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 46
  • Joined: 06-November 08

Re: Can't build PHP properly in Fedora Core 9

Posted 28 December 2010 - 12:23 PM

Does anyone have any tips on what I can try to get PHP built?
Was This Post Helpful? 0
  • +
  • -

#15 g-weebens   User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 39
  • Joined: 28-December 10

Re: Can't build PHP properly in Fedora Core 9

Posted 28 December 2010 - 10:31 PM

You should update Fedora to the latest. The latest release is Fedora 14.
After you update your system, then you should try to build PHP.
This is the first thing someone should have told you.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2