php4 with apache on macosx: configuration question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arnaud Delobelle

    php4 with apache on macosx: configuration question

    Hi

    I have MacOS X 10.3 (not the server edition), which includes apache and
    php4. But php hasn't been compiled --with-gd, and I need it, so I
    downloaded the source (4.3.4) and configured it with options

    '--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw'
    '--with-libpng' '--with-png-dir=/sw' '--with-gd'
    '--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw'
    '--enable-cli'.

    After make && make install, I've got my new php in /usr/local/bin, which
    I can use from the CLI. But how do I get apache to use this version of
    php instead of the one bundled with MacOS? I guess (though I don't know
    anything much about httpd.conf) that I should put something like

    LoadModule php4_module /path/to/new/libphp4.so

    in httpd.conf but I can't find any libphp4.so anywhere (apart from the
    old one in /usr/libexec). I don't really understand what I'm doing
    here, so any help that brings some clarity to my confused mind will be
    appreciated.


    --
    Arnaud
  • Arnaud Delobelle

    #2
    Re: php4 with apache on macosx: configuration question

    Arnaud Delobelle wrote:
    [color=blue]
    > Hi
    >
    > I have MacOS X 10.3 (not the server edition), which includes apache and
    > php4. But php hasn't been compiled --with-gd, and I need it, so I
    > downloaded the source (4.3.4) and configured it with options
    >
    > '--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw'
    > '--with-libpng' '--with-png-dir=/sw' '--with-gd'
    > '--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw'
    > '--enable-cli'.
    >
    > After make && make install, I've got my new php in /usr/local/bin, which
    > I can use from the CLI. But how do I get apache to use this version of
    > php instead of the one bundled with MacOS? I guess (though I don't know
    > anything much about httpd.conf) that I should put something like
    >
    > LoadModule php4_module /path/to/new/libphp4.so
    >
    > in httpd.conf but I can't find any libphp4.so anywhere (apart from the
    > old one in /usr/libexec). I don't really understand what I'm doing
    > here, so any help that brings some clarity to my confused mind will be
    > appreciated.
    >[/color]

    I can't believe I forgot to configure php --with-apxs...
    Sorry for the silly post.

    --
    Arnud

    Comment

    Working...