PDA

View Full Version : Turning safemode off for JUST /webmail



loopforever
01-25-2004, 06:41 PM
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?

loopforever
01-25-2004, 07:14 PM
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 ;)!

DirectAdmin Support
01-26-2004, 09:41 AM
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