safe_mode and webmail

expream

Verified User
Joined
Sep 17, 2005
Messages
52
Hello all!

I have the following problem.. today I tried to set safe_mode = on in php.ini... and in result webmail dont work ;) ... ok you can say, that I need now to set php flags in user's http.conf... but I cant :( when I use php flags in user's httpd.conf.. I can't start apache! (http://www.directadmin.com/forum/showthread.php?s=&threadid=10312)

so... is there any solution to set safe_mode = on, and to use webmail?:)
 
expream said:
Hello all!

I have the following problem.. today I tried to set safe_mode = on in php.ini... and in result webmail dont work ;) ... ok you can say, that I need now to set php flags in user's http.conf... but I cant :( when I use php flags in user's httpd.conf.. I can't start apache! (http://www.directadmin.com/forum/showthread.php?s=&threadid=10312)

so... is there any solution to set safe_mode = on, and to use webmail?:)
As admin do "safemod off" to your domain, copy /var/www/html/webmail to your acount public_html and /etc/httpd/conf/httpd.conf look for Alias /webmail ..
make it alias to /var/www/html/redirectmail.php
Code:
<?
header("Location: [url]http://domain.com/webmail[/url]");
?>
 
Option 2:
From the Admin level of DirectAdmin, goto the "PHP SafeMode Configuration" page.
Here you can enable or disable safe mode on a per user basis, thus allowing safemode to be off in the main php.ini
 
ok... so you dont understand me ;)

the problem is: I can NOT use php handlers in users httpd.conf ;) ... so... I can not active safe_mode for some users... it can be ON or OFF... for all
 
May I ask why you can NOT, when it is a standard feature of DirectAdmin?

You can always modify phpmyadmin to use a custom distribution of php which has safe mode off.
 
jmstacey said:
Option 2:
From the Admin level of DirectAdmin, goto the "PHP SafeMode Configuration" page.
Here you can enable or disable safe mode on a per user basis, thus allowing safemode to be off in the main php.ini
Its not a good option becuase if u set safemod on per domain u can still run http://Server-IP/~user/script.php without safemod
 
Back
Top