Find the answer to your Linux question:
Results 1 to 7 of 7
On Fedora the only method of installing PHP5 seems to be to compile it. Is their any resource out there that can supply PHP5 in binary form to avoid the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    Leura, NSW, Australia
    Posts
    5

    Installing PHP5


    On Fedora the only method of installing PHP5 seems to be to compile it. Is their any resource out there that can supply PHP5 in binary form to avoid the problems with compiling?

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    What problems do you have with compiling php? I have never had any. Compiling is always the best way to go imo.

  3. #3
    Just Joined!
    Join Date
    Feb 2005
    Location
    Leura, NSW, Australia
    Posts
    5
    I haven't even tried as yet. It seemed that as PHP5 and Fedora are both very popular pieces of software, binaries would be available. If it is as easy as you say I'll give compiling a go. Thanks for your comments.

  4. #4
    Just Joined!
    Join Date
    Feb 2005
    Location
    Leura, NSW, Australia
    Posts
    5
    Well I tried compiling it. Everything seems ok but Apache2 gets a "child pid 6212 exit signal Segmentation fault (11)" in the Apache error file whenever you try to load a php script. HTML works without error.

    So what I did was as follows. Any suggestions on what I might have done wrong would be appreciated. All configure, make etc worked without error.

    unzip download source into a new temp dir and cd to it

    check ./configure --help for options

    run as follows

    ./configure --with-mysql --with-apxs2=/usr/sbin/apxs


    make
    make install

    Edit /etc/httpd/conf/httpd.conf

    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so

    AddType application/x-httpd-php-source .phps


    From Distibution
    cp php.ini-dist /usr/local/lib/php.ini

    Edit /usr/local/lib/php.ini - no changes needed

    /usr/sbin/apachectl stop
    /usr/sbin/apachectl start

  5. #5
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    That's interesting. I don't know much about Apache though, so I can't really help you there. But are you using the latest version of Apache?

  6. #6
    Just Joined!
    Join Date
    Feb 2005
    Location
    Leura, NSW, Australia
    Posts
    5
    Thanks for the suggestion. Maybe it is an old version. I downloaded Fedora from Red Hat in the last couple of days but that doesnt' mean the Apache2 included is the latest. I check and get back to you.

    Greg

  7. #7
    Just Joined!
    Join Date
    Feb 2005
    Location
    Leura, NSW, Australia
    Posts
    5
    The version with Fedora that I have is 2.0.47, the latest from Apache is 2.0.53. I will upgrade and see what happens (what a bore!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •