The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP - Adding more than buildapache offers?

Discussion in 'EasyApache' started by JustinK, Sep 6, 2002.

  1. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Can anyone share how one might enable additional modules/program for use with php manually using buildapache.sea? I was reading through an old post on how to do it, but I believe the file structure of the build has been changed slightly and I don't want to mess up the build at all by editing the wrong file.
     
  2. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Anyone? I don't like bumping threads, but I need to know how to do this without killing something in the process. Just have to add in an extra --with-something to the php compile. Looked through the previous instructions, but with the current file structure for the buildapache directory, the file said to be edited doesn't seem to be the one to edit anymore.
     
  3. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    What we do is build whatever it is we're adding (pdflib, for instance), then drill down into the php-4.x.x folder:

    rm config.cache -f
    make clean

    Then

    ./configure (--with-options)
    make
    make install

    Restart apache.
    Done.
     
  4. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    ooh... that's much simpler than going through the whole build. :) Thank you for your time Annette. I know you're busy there.
     
  5. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    Sure - always happy to help.
     
  6. gmarton

    gmarton Member

    Joined:
    Jan 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    When I try to do the above i get an error:
    php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

    I looked into that problem, changed the --with-mysql to --with-mysql=/usr and it creates apache problems.

    I'm back to square one. Luckily I backed up libphp4.so and also /scripts/easyapache has no problem recompilionh php. Btw easyapache does configure php with only --with-mysql

    All I want to do is add pdflib.
    Anyone has the same issue?

    TIA
     
  7. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Busy? What is she/he busy with?
     
  8. thomas

    thomas Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Since that post is over 8 months old, does it really matter? :confused:
     
  9. thomas

    thomas Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6

    Had the same problem, Annette helped me with that.


    So, stick to --with-mysql and just run 'make install' after that warning.
     
  10. gmarton

    gmarton Member

    Joined:
    Jan 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Done that, It crashed apache causing cpanel sending me emails until i ran /scripts/easyapache.

    I tried the php source in buildapache and also downloaded it to a different locationsso I could always resort to easyapache.

    The odd thing is that easyapache has no problem compiling it, it only has this problem doing it manually.

    PHP folks know about this:
    http://www.php.net/manual/en/faq.build.php#faq.build.mysql.tempnam

    They say its a warning and everything should work fine. It does not work for me.

    All I want to do is have pdflib.
    Thanks
     
  11. gmarton

    gmarton Member

    Joined:
    Jan 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    I forgot, no binary gets generated either.
     
  12. Hoster2k

    Hoster2k Well-Known Member

    Joined:
    Jun 17, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    You seem to have a problem sexy_guy. Why do you make un-called for remarks?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page