|
I used the solution of editing /etc/asl/config and modifying
ALLOW_escapeshellcmd="yes" ALLOW_popen="yes"
and then running
asl -s -f
that fixes the issue, but I was trying to use a more granular approach.
I am running Plesk 9 so I modified
/etc/httpd/conf.d/zzz_horde_vhost.conf
and added the lines about php_admin_value disable_functions as follows.
<Directory /usr/share/psa-horde> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa/webmail/horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear" php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:." php_admin_value disable_functions "dl , exec , passthru , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source" </IfModule>
<IfModule mod_php5.c> php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa/webmail/horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear" php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:." php_admin_value disable_functions "dl , exec , passthru , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source" </IfModule> </Directory>
Then restarted apache.
I also added temporarily a phpinfo() to /imp/compose.php
so that I could take a look a the value for disable_functions disable_functions Local dl , exec , passthru , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
Global dl , exec , escapeshellcmd , passthru , pfsockopen , popen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
as you can see the values are correct but I cannot send email using this configuration.
Any idea why?
Thanks for your help.
_________________ Red Hat Enterprise Linux Server release 6.2 (Santiago) Plesk psa-10.4.4-rhel6.build1013111102.18.x86_64 ASL asl-3.0.22-1.el6.art.x86_64 Linux 2.6.32-220.7.1.el6.x86_64 #1 SMP Intel(R) Xeon(R) CPU E5430 @ 2.66GHz - 8 GB RAM - 2 250GB SATA HDD
|