cPanel - PHP sendmail_path

Discussion in 'HOWTO-Related Questions' started by laydback, Apr 19, 2009.

  1. laydback

    laydback New Member

    Hello,

    We have a problem with users using misconfigured PHP scripts to don't pass the return address correctly sending mail out from the servers hostname. I have asked cPanel developers if they have a way around this, they said no. I disagree, I beleive it should be possible by making additions to the cPanel vhost template, however the setting I want to add isn't working.

    I started by adding the following line to httpd.conf and the virtual host include file:

    Code:
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/walttest:/usr/lib/php:/usr/local/lib/php:/tmp"
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"
    </IfModule>
    
    However it doesn't get applied as seen here -->http://testing.amihost.com/info.php

    The only way I can get the setting to actually apply is by placing a php.ini in the user's public_html with the setting, making my goal of the template edit not possible. Is this becuase of mod_suPHP? Does anyone know how I can set the sendmail_path variable via httpd.conf or a vhost include file?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    php_admin_value configurations work only with mod_php, not with suPHP.
     

Share This Page