mail headers

Discussion in 'Install/Configuration' started by bhanuprasad1981, Jul 13, 2009.

  1. bhanuprasad1981

    bhanuprasad1981 New Member

    do litespeed supports mail headers patch ? how to enable or compile it ?
  2. anewday

    anewday Moderator

    Yes, login to the litespeed web admin console then go to Actions (on top) -> Compile PHP. There is an option to enable "Mail Header (Identifies Mail Source) as well as "Suhosin (General Hardening)".
  3. mistwang

    mistwang LiteSpeed Staff

    If you use cPanel and the mail header patch has been applied to apache PHP, it will be applied to LiteSpeed PHP as well, as the patched source code was copied over.
  4. bhanuprasad1981

    bhanuprasad1981 New Member

    actually i have installed one whm plugin which i use to verify email source to find spammers it works well on my server using apache but not on litespeed any work out ? apache has mail headers enabled but still plugin wont work on litespeed :(
  5. bhanuprasad1981

    bhanuprasad1981 New Member

    ok i tried to compile litespeed php 5.2.9 with mail headers patch it failed :-

    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    33 3381 33 1143 0 0 1123 0 0:00:03 0:00:01 0:00:02 1123
    100 3381 100 3381 0 0 2673 0 0:00:01 0:00:01 --:--:-- 9097
    patching file ext/standard/mail.c
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    0 25312 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 25312 100 25312 0 0 68950 0 --:--:-- --:--:-- --:--:-- 135k
    Forcing buildconf
    using default Zend directory
    buildconf: checking installation...
    buildconf: autoconf version 2.59 (ok)
    buildconf: Your version of autoconf likely contains buggy cache code.
    Running cvsclean for you.
    To avoid this, install autoconf-2.13.
    rebuilding configure
    aclocal.m4:2147: PHP_PROG_LEX is expanded from...
    rebuilding main/php_config.h.in
    autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
    autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
    autoheader: WARNING: is deprecated and discouraged.
    autoheader:
    autoheader: WARNING: Using the third argument of `AC_DEFINE' and
    autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
    autoheader: WARNING: `acconfig.h':
    autoheader:
    autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
    autoheader: [Define if a function `main' is needed.])
    autoheader:
    autoheader: WARNING: More sophisticated templates can also be produced, see the
    autoheader: WARNING: documentation.
    aclocal.m4:2147: PHP_PROG_LEX is expanded from...
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    shtool:echo:Warning: unable to determine terminal sequence for bold mode
    shtool:echo:Warning: unable to determine terminal sequence for bold mode
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.
  6. mistwang

    mistwang LiteSpeed Staff

    chmod o+rx /usr/bin/gcc /usr/bin/ld

    after build PHP

    chmod o-rx ...
  7. bhanuprasad1981

    bhanuprasad1981 New Member

    ok i got whole messed so i did an easy apache update from cpanel upgraded php to 5.2.10 tried to litespeed php i got this error at first :-

    Found Apache php binary at /usr/local/bin/php. Version is 5.2.10

    Found LiteSpeed php binary at /usr/local/lsws/fcgi-bin/lsphp5. Version is 5.2.10

    Apache php configuration has more options that are not available or different in lsphp:
    --disable-pdo --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --prefix=/usr/local --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-openssl-dir=/usr --with-pic --with-png-dir=/usr --with-ttf --with-xpm-dir=/usr --with-zlib-dir=/usr

    any how continued , php build ok , sites are running fine but what is that error means ? any thing wrong ?
  8. mistwang

    mistwang LiteSpeed Staff

    That's normal. nothing wrong.

Share This Page