compile php

Discussion in 'Install/Configuration' started by joseph595, Aug 14, 2008.

  1. joseph595

    joseph595 New Member

    Guys, please help me, I'm new here.

    I had a cPanel server with php 4 and php 5 (apache 2.2.9) . I purchased a new server, installed lsws. Now trying to get the same php modules as I had been using earlier.

    PHP 4
    -----
    bcmath
    calendar
    dbase
    exif
    ftp
    gd
    ttf
    libxml
    magic-quotes
    mbstring
    sockets
    xslt
    curl
    bz2
    dom-xslt
    freetype
    gettext
    iconv
    imap
    mcrypt
    mhash
    mysql
    openssl
    swf
    ttf
    zip
    zlib
    ffmpeg-php
    Zend Optimiser
    Ion Cube Loader
    Eaccelerator


    PHP5
    -----
    all above plus :
    SOAP
    sockets
    myqsli
    pspell


    I entered admin interface -> actions -> build php. Please suggest me what config parameters I must give here.

    Thanks
  2. mistwang

    mistwang LiteSpeed Staff

    try the "build matching PHP" feature in our WHM plugin. Just build apache with cpanel easy apache with the configurations you want to use.
  3. joseph595

    joseph595 New Member

    Thank you, that works.

    I had been using suPHP as it is considered to be the most secure form and I enabled PHPSuexec here. But a test page placed at /usr/local/apache/htdocs/info.php is pulling up fine on browser even if the ownership of the script is changed.

    Is it possible to show an error message when the php script's owner/permission is changed from the normal one.
  4. mistwang

    mistwang LiteSpeed Staff

    Our suEXEC implementation uses the owner of the document root directory, owner of script does not matter.
    Your test script should be served as nobody:nobody.
  5. joseph595

    joseph595 New Member

    I did "build matching PHP" feature from WHM plugin . It works fine, but now I would like to add mailheaders and suhosin, how can I do that.
  6. mistwang

    mistwang LiteSpeed Staff

    Build Apache mod_php with mailheaders and suhosin, then build matching PHP.

Share This Page