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.

easyapache and PHP

Discussion in 'EasyApache' started by binaer, Aug 19, 2005.

  1. binaer

    binaer Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hello community

    How can I set some other Parameters for PHP to compile in easyapache?
    We're running on FreeBSD...

    WHM makes PHP and PDFLib with this:
    --with-pdflib

    but we need

    --with-pdflib=<path>

    anyone an idea?
     
  2. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    Try this:

    1. Open a terminal window "A" and and run /scripts/easyapache as root.
    2. Open another terminal window "B" and edit /home/cpapachebuild/buildapache/modules/php_prep. Find the --with-pdflib line and change it to --with-pdflib=<path>
    3. Select option 6 in the easyapache menu in terminal window "A".
    4. Complete the process to recompile apache.
     
  3. binaer

    binaer Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hello

    I've only found this section:
    ----------
    if [ "$SETMODULE{'php-pdflib'}" = "1" ]; then
    ./fetchfile PDFlib-6.0.2-FreeBSD5.tar
    if [ ! -e "PDFlib-Lite-$PDFVER.tar.gz" ]; then
    echo "Unable to fetch PDFlib-Lite-$PDFVER.tar.gz"
    exit
    fi
    echo -n "Untarring PDFlib"
    tar xvf PDFlib-6.0.2-FreeBSD5.tar
    echo "Done"
    cd PDFlib-6.0.2-FreeBSD5/bind/c
    $configure $LIBDIR --prefix=/usr
    $make
    $makeinstall install
    cd $TOPLEVEL
    fi
    -----------

    and others, but:
    Pattern not found: --with-pdf
     
  4. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    try this, but instead of searching for the mysqli line, look for the pflib line and edit as appropriate:

     
Loading...

Share This Page