Problem Installing Apache 2.2.8, MySQL 5.0 Client and PHP 5.2.5 On Fedora 8 (64-Bit)

Discussion in 'Installation/Configuration' started by asyadiqin, Apr 8, 2008.

  1. asyadiqin

    asyadiqin New Member

    I am trying to install the following :-

    Apache 2.2.8 (64-Bit)
    MySQL Client 5.0 (64-Bit)
    PHP 5.2.5 (64-Bit)

    I managed to install Apache and MySQL Client using yum, but had to compile PHP 5.2.5 as the current yum package only list PHP 5.2.4. (Note: My manager insisted that I install these versions, ie. PHP 5.2.5, etc... so no point telling me to stick to the current older versions :( )

    Anyway, everything goes smoothly with Apache and MySQL Client, but when I try to compile PHP, it gave me errors. This is how I compile PHP

    This is the error that I get ....

    I googled and found a site that suggested that I make the symlinks below and to change the compile options to --with-mysql=/opt

    This is the error that I get when I compile it after that.
    This is what is in config.log
    FYI, I installed the following MySQL packages using yum
    Anyone have any idea what I did wrong or is there any missing package that I should install first?

    It would be good if someone were to write a "Howto Guide" to install LAMP from source rather than using yum. I'm sure there are many who would like that as yum have its limitations, ie. older packages, etc...

    Thanks and hope someone can help me with this problem.
     
  2. o.meyer

    o.meyer HowtoForge Supporter

    Hi asyadiqin,

    you should wait a few days - PHP 5.2.5 (5.2.5-2.fc8) is already in the Fedora testing-repository and will be pushed into the stable-repository in short.

    Best regards,

    Olli
     
  3. asyadiqin

    asyadiqin New Member

    Thanks olli. I have a deadline to meet as this is not the only project I have now. I might be able to delay for a week, but if anyone do have any solutions, it would be really great as I and anyone who read this post, would be learning something too.
     
  4. falko

    falko Super Moderator

  5. asyadiqin

    asyadiqin New Member

    Would building a new RPM from source avoid the error message that I get when I compile PHP 5.2.5? I have never build a RPM from source and wouldn't know where to start or how to modify the PHP 5.2.5 source SPEC file to be as what I wanted it to be as when I compile it. I am sorry if this sound newbie-ish, but maybe a more detailed explanation on what you suggested. Thanks falko.

    PS: Where can I download PHP 5.2.5 src.rpm? Again ... sorry for this newbie question ... :p
     
    Last edited: Apr 9, 2008
  6. falko

    falko Super Moderator

    Download the PHP 5.2.4 src.rpm and replace the PHP 5.2.4 sources in it with the PHP 5.2.5 sources. Afterwards, replace all references to 5.2.4 with 5.2.5 in the spec file.
     

Share This Page