Php

Discussion in 'General' started by alexillsley, Apr 29, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi,
    How would i apply this php patch to my server:
    http://www.lancs.ac.uk/~steveb/patches/php-mail-header-patch/

    I tryed applying the patch but got the following error:
    Code:
    server1:/tmp # patch -p1 < php5-mail-header.patch
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |--- php-5.0.5/ext/standard/mail.c.orig 2005-07-28 09:48:31.000000000 +0100
    |+++ php-5.0.5/ext/standard/mail.c      2005-09-16 16:37:24.902314224 +0100
    --------------------------
    File to patch:
    [3]+  Stopped                 patch -p1 <php5-mail-header.patch
    I tryed finding the file but i couldnt find it either:confused: :
    Code:
    server1:/tmp # locate mail.c
    /home/admispconfig/ispconfig/web/webmail/themes/aleborgXP/webmail.css
    /home/admispconfig/ispconfig/web/webmail/themes/default/webmail.css
    /home/admispconfig/ispconfig/web/webmail/themes/neotech.net/webmail.css
    /opt/kde3/share/apps/kmail/about/kmail.css
    /usr/lib/w3m/cgi-bin/w3mmail.cgi
    
    Please could you help me,
    Thanks,
    Alex
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You must download the PHP5 sources and unpack them. Then go to the PHP5 source directory and run
    Code:
    patch -p1 < /path/to/php5-mail-header.patch
    Afterwards, you can compile PHP5.
     
  3. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    When i compile it, would it just replace my existsing PHP5 setup on my apache server?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's right.
     
  5. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Would it replace any of my config files?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Normally not. But I recommend to backup your php.ini first.
     
  7. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Thanks, sorry one last question, would this also replace my ispconfig php 5 setup or not, as i dont want this to happen, i want it to only affect my normal php 5 setup
     
  8. falko

    falko Super Moderator ISPConfig Developer

    No, unless you use special configuration options which would install your new PHP5 in the /root/ispconfig/php directory.
     
  9. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Thanks:)

    Alex
     

Share This Page