Why doesn't "make install" generate libphp5.so?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric West

    Why doesn't "make install" generate libphp5.so?

    First, thanks for taking the time to read this message.

    I am trying to build a LAMP stack for the first time, and have
    encountered the following problem:

    CentOS 4.3
    mysql 4.1.20
    apache 2.2.3
    php 5.1.6

    I've compiled and installed apache as follows:

    ==apache===

    ./configure --prefix=/usr/local/apache2 --enable-module=so

    make

    make install

    =====

    That appears to work perfectly. The problem comes when I try and
    compile and install PHP.

    ==php==

    ./configure --prefix=/usr/local/php
    --with-mysqli=/usr/bin/mysql_config
    --with-apx2=/usr/local/apache2/bin/apxs

    make

    make install

    ====

    According to my reading, a "libphp5.so " is supposed to be generated
    during this process, but there is no such file on the system after the
    fact, which is certainly a problem.

    Can anybody perhaps provide guidance as to why this file would NOT be
    generated?

    Please let me know if I can provide further details to help track down
    the problem.

    Thanks,
    Eric

  • Mateusz Markowski

    #2
    Re: Why doesn't "make install" generate libphp5.so?


    Eric West napisal(a):
    First, thanks for taking the time to read this message.
    >
    I am trying to build a LAMP stack for the first time, and have
    encountered the following problem:
    >
    CentOS 4.3
    mysql 4.1.20
    apache 2.2.3
    php 5.1.6
    >
    I've compiled and installed apache as follows:
    >
    ==apache===
    >
    ./configure --prefix=/usr/local/apache2 --enable-module=so
    >
    make
    >
    make install
    >
    =====
    >
    That appears to work perfectly. The problem comes when I try and
    compile and install PHP.
    >
    ==php==
    >
    ./configure --prefix=/usr/local/php
    --with-mysqli=/usr/bin/mysql_config
    --with-apx2=/usr/local/apache2/bin/apxs
    >
    I think you've misspelled this line. It should be:
    --with-apxs2=/usr/local/apache2/bin/apxs
    (you have apx2 there should be apxs2)
    make
    >
    make install
    >
    ====
    >
    According to my reading, a "libphp5.so " is supposed to be generated
    during this process, but there is no such file on the system after the
    fact, which is certainly a problem.
    >
    Can anybody perhaps provide guidance as to why this file would NOT be
    generated?
    >
    Please let me know if I can provide further details to help track down
    the problem.
    >

    Comment

    • Eric West

      #3
      Re: Why doesn't "make install" generate libphp5.so?

      Wow. That's embarrassing... Thanks so much!

      The created the libphp5.so where it needed to be. When restarting
      Apache, I started getting an error related to "html entities". I
      googled about, and found somebody with a similar issue, so I heeded
      their advise and ran:

      ./configure --disable-all --prefix=/usr/local/php
      --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --enable-so

      followed with

      ./configure --prefix=/usr/local/php
      --with-mysqli=/usr/bin/mysql_config
      --with-apx2=/usr/local/apache2/bin/apxs

      make
      make install

      which took care of the "html_entit ies" complaint.

      Now Apache restarts, but whenever I ask for a ".php" page, I get the
      following in my error log:

      [Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
      Segmentation fault (11)

      Is this something I need to address in PHP or in Apache?

      Thanks for any help,
      Eric


      On Oct 23, 11:55 am, "Mateusz Markowski" <mate...@bsdmai l.orgwrote:
      Eric West napisal(a):
      >
      First, thanks for taking the time to read this message.
      >
      I am trying to build a LAMP stack for the first time, and have
      encountered the following problem:
      >
      CentOS 4.3
      mysql 4.1.20
      apache 2.2.3
      php 5.1.6
      >
      I've compiled and installed apache as follows:
      >
      ==apache===
      >
      ./configure --prefix=/usr/local/apache2 --enable-module=so
      >
      make
      >
      make install
      >
      =====
      >
      That appears to work perfectly. The problem comes when I try and
      compile and install PHP.
      >
      ==php==
      >
      ./configure --prefix=/usr/local/php
      --with-mysqli=/usr/bin/mysql_config
      --with-apx2=/usr/local/apache2/bin/apxsI think you've misspelled this line. It should be:
      --with-apxs2=/usr/local/apache2/bin/apxs
      (you have apx2 there should be apxs2)
      >
      make
      >
      make install
      >
      ====
      >
      According to my reading, a "libphp5.so " is supposed to be generated
      during this process, but there is no such file on the system after the
      fact, which is certainly a problem.
      >
      Can anybody perhaps provide guidance as to why this file would NOT be
      generated?
      >
      Please let me know if I can provide further details to help track down
      the problem.

      Comment

      • Eric West

        #4
        Re: Why doesn't &quot;make install&quot; generate libphp5.so?

        Hmmm... I restarted apache again, and it seems to be working. I'm
        serving up PHP!

        Thanks for your time,
        Eric

        On Oct 23, 12:52 pm, "Eric West" <pumpkinheadgi. ..@gmail.comwro te:
        Wow. That's embarrassing... Thanks so much!
        >
        The created the libphp5.so where it needed to be. When restarting
        Apache, I started getting an error related to "html entities". I
        googled about, and found somebody with a similar issue, so I heeded
        their advise and ran:
        >
        ./configure --disable-all --prefix=/usr/local/php
        --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --enable-so
        >
        followed with
        >
        ./configure --prefix=/usr/local/php
        --with-mysqli=/usr/bin/mysql_config
        --with-apx2=/usr/local/apache2/bin/apxs
        >
        make
        make install
        >
        which took care of the "html_entit ies" complaint.
        >
        Now Apache restarts, but whenever I ask for a ".php" page, I get the
        following in my error log:
        >
        [Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
        Segmentation fault (11)
        >
        Is this something I need to address in PHP or in Apache?
        >
        Thanks for any help,
        Eric
        >
        On Oct 23, 11:55 am, "Mateusz Markowski" <mate...@bsdmai l.orgwrote:
        >
        Eric West napisal(a):
        >
        First, thanks for taking the time to read this message.
        >
        I am trying to build a LAMP stack for the first time, and have
        encountered the following problem:
        >
        CentOS 4.3
        mysql 4.1.20
        apache 2.2.3
        php 5.1.6
        >
        I've compiled and installed apache as follows:
        >
        ==apache===
        >
        ./configure --prefix=/usr/local/apache2 --enable-module=so
        >
        make
        >
        make install
        >
        =====
        >
        That appears to work perfectly. The problem comes when I try and
        compile and install PHP.
        >
        ==php==
        >
        ./configure --prefix=/usr/local/php
        --with-mysqli=/usr/bin/mysql_config
        --with-apx2=/usr/local/apache2/bin/apxsI think you've misspelled this line. It should be:
        --with-apxs2=/usr/local/apache2/bin/apxs
        (you have apx2 there should be apxs2)
        >
        make
        >
        make install
        >
        ====
        >
        According to my reading, a "libphp5.so " is supposed to be generated
        during this process, but there is no such file on the system after the
        fact, which is certainly a problem.
        >
        Can anybody perhaps provide guidance as to why this file would NOT be
        generated?
        >
        Please let me know if I can provide further details to help track down
        the problem.

        Comment

        • Andy Hassall

          #5
          Re: Why doesn't &quot;make install&quot; generate libphp5.so?

          On 23 Oct 2006 09:52:16 -0700, "Eric West" <pumpkinheadgia nt@gmail.comwro te:
          >Now Apache restarts, but whenever I ask for a ".php" page, I get the
          >following in my error log:
          >
          [Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
          >Segmentation fault (11)
          >
          >Is this something I need to address in PHP or in Apache?
          Probably PHP (and then it's probably one of the libraries loaded by one of the
          extensions loaded by or compiled into PHP), but you need to get a core dump and
          run it through gdb to find out where to dig.

          Look up the Apache CoreDumpDirecto ry directive to tell it where to write the
          dump.

          See also http://bugs.php.net/bugs-generating-backtrace.php

          Do you get a similar segfault from the commandline version of PHP? If so that
          obviously narrows it down a bit ;-)

          --
          Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
          http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

          Comment

          Working...