Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    14

    Default disabling X-PHP-Script and X-Souce-Dir headers from email?

    I am actually not sure if this is CPanel/WHM related, but when googling around I was pointed in this direction, so here goes:

    Any email I send with PHP's mail() function automatically contains some headers revealing info about my source script, such as X-PHP-Script: and X-Source-Dir:

    I've been looking everywhere to disable this, including php.ini, but can't find anything. Does anyone know if this is indeed some CPanel or WHM setting / feature, and is there a way to disable it?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: disabling X-PHP-Script and X-Souce-Dir headers from email?

    This is likely stemming from WHM > EasyApache (Apache Update) having had "MailHeaders" selected under the PHP Options in the Exhaustive Options list. Here are details on what that option does:

    CHOON.NET : Resources : Scripts & Patches : PHP Mail Header Patch

    This is a security feature that allows the server administrator to track down the script being used whenever an email is sent in case someone is trying to spam. If you are the server owner and decide to shut this off, you will be ensuring anyone else on the machine won't have this information logged for you to track it down later as well.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 10-13-2010, 05:43 PM
  2. Premature end of script headers: index.php (error 500)
    By hm2k in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-26-2009, 04:29 PM
  3. all php not working giving Premature end of script headers:
    By big in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-21-2007, 09:36 PM
  4. how to debug PHP script with "Premature end of script headers"
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2007, 08:57 AM
  5. Replies: 1
    Last Post: 06-20-2003, 01:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube