Old 19th April 2009, 23:08
laydback laydback is offline
Junior Member
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cPanel - PHP sendmail_path


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:

<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 from@what.ever"
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?
Reply With Quote
Sponsored Links
Old 20th April 2009, 13:08
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

php_admin_value configurations work only with mod_php, not with suPHP.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18

All times are GMT +2. The time now is 05:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.