Trouble Installing PHP & MYSQL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • frankgerlach@gmail.com

    Trouble Installing PHP & MYSQL

    I am experiencing problems when installing PHP5/MYSQL.
    I did
    ./configure --with-mysql=/usr/local/mysql --disable-libxml
    --with-zlib-dir=/home/frank/zlib-1.2.2

    make
    make install

    The build process did not report any errors.

    Now, I cannot find libphp5.so, which I would like to register with
    Apache.

    Can somebody tell me what went wrong ?

    Thanks for your help !

  • Mark Swinson

    #2
    Re: Trouble Installing PHP & MYSQL

    I'm also having problems finding the apache module for PHP.
    I'm doing the following calls

    ./configure --prefix=/local/web --enable-module=so
    make
    make install

    Mark

    <frankgerlach@g mail.com> wrote in message
    news:1110835602 .296293.21820@g 14g2000cwa.goog legroups.com...[color=blue]
    >I am experiencing problems when installing PHP5/MYSQL.
    > I did
    > ./configure --with-mysql=/usr/local/mysql --disable-libxml
    > --with-zlib-dir=/home/frank/zlib-1.2.2
    >
    > make
    > make install
    >
    > The build process did not report any errors.
    >
    > Now, I cannot find libphp5.so, which I would like to register with
    > Apache.
    >
    > Can somebody tell me what went wrong ?
    >
    > Thanks for your help !
    >[/color]


    Comment

    • frankgerlach@gmail.com

      #3
      Re: Trouble Installing PHP &amp; MYSQL

      I found out that one has to build apache from source and then do the
      php build against the apache source build, using the --with-apxs2
      option.
      Like this:
      ../configure --with-mysql=/usr/local/mysql --disable-libxml
      --with-zlib-dir=/home/frank/zlib-1.2.2
      --with-apxs2=/usr/local/apache2/bin/apxs --with-gd
      After "make" and "make install" the shared lib (eg. libphp5.so) will be
      placed in apache's module directory and will be loaded by apache when
      doing a LoadModule statement in httpd.conf.
      All this said, I still have trouble to build with jpeg enabled... Any
      help on this is appreciated.

      Comment

      • Joe Webster

        #4
        Re: Trouble Installing PHP &amp; MYSQL

        <frankgerlach@g mail.com> wrote in message
        news:1111182363 .561473.184730@ o13g2000cwo.goo glegroups.com.. .[color=blue]
        > I found out that one has to build apache from source and then do the
        > php build against the apache source build, using the --with-apxs2
        > option.
        > Like this:
        > ./configure --with-mysql=/usr/local/mysql --disable-libxml
        > --with-zlib-dir=/home/frank/zlib-1.2.2
        > --with-apxs2=/usr/local/apache2/bin/apxs --with-gd
        > After "make" and "make install" the shared lib (eg. libphp5.so) will be
        > placed in apache's module directory and will be loaded by apache when
        > doing a LoadModule statement in httpd.conf.
        > All this said, I still have trouble to build with jpeg enabled... Any
        > help on this is appreciated.
        >[/color]

        Well did you successfully build GD w/ jepg support? That has to be
        working first. The GD readme was always enough for me to get it to compile.
        Then recompile PHP and you should be okay.


        -Joe


        Comment

        • frankgerlach@gmail.com

          #5
          Re: Trouble Installing PHP &amp; MYSQL

          Got it finally working.
          That is my configure command line:
          ../configure --with-mysql=/usr/local/mysql
          --with-zlib-dir=/home/frank/zlib-1.2.2
          --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir
          --with-png-dir
          I had to copy the jpeg header files (like jpeglib.h) to
          /usr/local/include in order to have it built.

          Comment

          Working...