Turning safemode off for JUST /webmail

loopforever

Verified User
Joined
May 30, 2003
Messages
298
Location
/home/admin
Hi,

The title pretty much says it all.

I have safe mode turned on globally, but I need it off for UBIAMIAU or whatever the heck it's called to function properly.

I've tried turning it off with php_admin_flag safe_mode off in the ip:80 vhost directory in php.ini, I've tried it in a <Directory> directive, and I've also tried php_flag safe_mode off in an htaccess file in /var/www/html/webmail.

No luck.

Any ideas?
 
Or, how can I turn safe mode off globally, but on for all domains?

In all the virtualhost -> directory directives in each account's httpd.conf there is a line:

#php_admin_value safe_mode 1

How can this be uncommented and turned on for all domains automatically?

Thanks ;)!
 
Hello,

I'd go with the global off, on for domains method:

copy the virtual_host*.conf templates from /usr/local/directadmin/data/templates, to the custom directory (inside templates)

Then edit those files, and remove the # character from #php_admin_value safe_mode 1

type:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

John
 
Back
Top