Hi,
I need to do this:
1) Tell exim to trust your script, which may allow the return-path to be changed:
http://help.directadmin.com/item.php?id=257
since I am using suphp I need to do create a per-user php.ini file and add this code:
[mail function]
sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]
the problem is that is being somehow difficult for me to create this per user php.ini
What have I done:
1. Login to DirectAdmin control panel and go to the domain you wish to override php.ini settings through an option DirectAdmin>> Extra Features>> Custom HTTPD Configurations
2. Click on Custom httpd settings and Select the domain name.
3. Then I have enter the code: SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/$username/php.
4. I have created the directory /usr/local/directadmin/data/users/$username/php and inside I have created an empty file called php.ini
5. I have run this commands:
chown $username:$username /usr/local/directadmin/data/users/$username/php/
chown root:root /usr/local/directadmin/data/users/$username/php/php.ini
chattr +i -R /usr/local/directadmin/data/users/$username/php/
Now, I am not sure what to do next, the php.ini file that I have created is empty, should I place the line sendmail_path = /usr/sbin/sendmail -t -i -f [email protected] alone in that empty php.ini? how do I tell that the $username will have to use the new php.ini path?
how can I avoid in a upgrade of directamin that this path is overwrite?
until now have I done something wrong?
Thank you
I need to do this:
1) Tell exim to trust your script, which may allow the return-path to be changed:
http://help.directadmin.com/item.php?id=257
since I am using suphp I need to do create a per-user php.ini file and add this code:
[mail function]
sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]
the problem is that is being somehow difficult for me to create this per user php.ini
What have I done:
1. Login to DirectAdmin control panel and go to the domain you wish to override php.ini settings through an option DirectAdmin>> Extra Features>> Custom HTTPD Configurations
2. Click on Custom httpd settings and Select the domain name.
3. Then I have enter the code: SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/$username/php.
4. I have created the directory /usr/local/directadmin/data/users/$username/php and inside I have created an empty file called php.ini
5. I have run this commands:
chown $username:$username /usr/local/directadmin/data/users/$username/php/
chown root:root /usr/local/directadmin/data/users/$username/php/php.ini
chattr +i -R /usr/local/directadmin/data/users/$username/php/
Now, I am not sure what to do next, the php.ini file that I have created is empty, should I place the line sendmail_path = /usr/sbin/sendmail -t -i -f [email protected] alone in that empty php.ini? how do I tell that the $username will have to use the new php.ini path?
how can I avoid in a upgrade of directamin that this path is overwrite?
until now have I done something wrong?
Thank you