SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't worry, this is an (probably) easy fix. Use these commands

    ./configure <options>
    make
    su
    make install

    You need to be root to write and delete files from some of the other dirs, other than your home directory.

  2. #2
    SitePoint Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been trying to follow some of the PHP/MySQL tutorials. But I've come across some problems when trying to install PHP as a dynamically linked object.

    I use Red Hat 6.2, Apache 1.3.12, and PHP4.0.2.

    I can run the ./configure script (below) no problems.

    ./configure --prefix=/usr/local/php \
    --with-apxs=/usr/sbin/apxs --with-xml

    The 'make' command also does not produce any errors. But when I enter the 'make install' command, it goes through the normal screens full of data then ends with the following:

    ...
    make[1]: Entering directory `/tmp/downloads/php-4.0.1pl2'
    /usr/sbin/apxs -i -a -n php4 libs/libphp4.so
    cp libs/libphp4.so /usr/lib/apache/libphp4.so
    cp: cannot create regular file `/usr/lib/apache/libphp4.so': No such file or directory apxs:Break: Command failed with rc=65536 make[1]: ***
    [install-sapi] Error 1 make[1]: Leaving directory `/tmp/downloads/php-4.0.1pl2'
    make: *** [install-recursive] Error 1
    [root@localhost php-4.0.1pl2]#


    I have tried everything, read the README files, other tutorials, but still nothing.

    If anyone could help out it would greatly appreciated.

    THANKS!

    PS. I finally got it set up as a static module, but would really like to know what is wrong with the dynamic module! And aparently, the dynamic module is the better way to go.

  3. #3
    SitePoint Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As you can see from my command prompt, I was already logged in as root from the start, so I don't think that could be the problem.

    Thanks for the suggestion anyway.

    Anyone else have any ideas?

  4. #4
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I noticed the error happens a little bit after apxs does it's thing. You might be having a problem with apxs.

    Normally should only be a problem in RHL6.1 but you might try checking out your apxs (in /usr/sbin/apxs).

    The apxs script RedHat ships is broken. Look for this line:
    my $CFG_LIBEXECDIR = 'modules';

    If you see the above line, change it to this:

    my $CFG_LIBEXECDIR = '/usr/lib/apache';

    check out the PHP FAQ... it talks about that problem and another problem that you might be having with apxs http://www.php.net/FAQ.php#6.11

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by Candy:
    I've been trying to follow some of the PHP/MySQL tutorials. But I've come across some problems when trying to install PHP as a dynamically linked object.

    I use Red Hat 6.2, Apache 1.3.12, and PHP4.0.2.

    I can run the ./configure script (below) no problems.

    ./configure --prefix=/usr/local/php \
    --with-apxs=/usr/sbin/apxs --with-xml

    The 'make' command also does not produce any errors. But when I enter the 'make install' command, it goes through the normal screens full of data then ends with the following:

    ...
    make[1]: Entering directory `/tmp/downloads/php-4.0.1pl2'
    /usr/sbin/apxs -i -a -n php4 libs/libphp4.so
    cp libs/libphp4.so /usr/lib/apache/libphp4.so
    cp: cannot create regular file `/usr/lib/apache/libphp4.so': No such file or directory apxs:Break: Command failed with rc=65536 make[1]: ***
    [install-sapi] Error 1 make[1]: Leaving directory `/tmp/downloads/php-4.0.1pl2'
    make: *** [install-recursive] Error 1
    [root@localhost php-4.0.1pl2]#


    I have tried everything, read the README files, other tutorials, but still nothing.

    If anyone could help out it would greatly appreciated.

    THANKS!

    PS. I finally got it set up as a static module, but would really like to know what is wrong with the dynamic module! And aparently, the dynamic module is the better way to go.
    <HR></BLOCKQUOTE>



    ------------------
    Paul F. De La Cruz
    Sr. Programmer For The Dream Center & Missionary to the Inner-City of Los Angeles

  5. #5
    SitePoint Zealot
    Join Date
    May 2000
    Location
    UK
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get the same error, except an apxs warning appears aswell as the error you are getting Candy:

    apxs:Warning: Sorry, no DSO support for Apache available
    apxs:Warning: under your platform. Make sure the Apache
    apxs:Warning: module mod_so is compiled into your server
    apxs:Warning: binary `/usr/local/apache'.
    apxs:Warning: Continuing anyway...

    I still can't figuree it out as I have tried everything, including the suggestions posted here and at the php site. Someone please help?

    ------------------
    Joel Moss
    FREE Web Tools at: HomepageTools.com
    $15 domain names at:HomepageNames.com

  6. #6
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Joel,

    Did you compile/install the copy of Apache you're using yourself? It looks like there is no dynamic module support in it! What distribution/version of Linux are you using?


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!


Bookmarks

Posting Permissions

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