safe mode

safe_mode is changeable at the admin level on a per-domain basis.

Jeff
 
safe_mode

But you still havent answer my question directly. Where can I see the safe mode file? I can see php.ini but it doesnt give me any clue that safe_mde is off or on.
 
I think Jeff did answer your question directly.

Login to the admin level of your DirectAdmin server and click "PHP SafeMode Configuration"
 
OK, i know why now. I cannot see it on my adminserver. So, my host did not give me full access. Is that the reason?
 
Re: safe_mode

apple said:
But you still havent answer my question directly. Where can I see the safe mode file? I can see php.ini but it doesnt give me any clue that safe_mde is off or on.


Safemode is IN php.ini ..

try grep for it to see if its on or either off
 
safe_made

This is what I see in the file. I cant see if it is ON or OFF.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>
 
That is not a php.ini file. The file you have shown is a php file that will show you php information. Looking at that file in a browser look for PHP Core and under that section will tell you if safe_mode is on or off.

In the php.ini file look for the section labeled Safe Mode. You have to ssh in as root to modify this file.
 
mmm.. that is the content in the php.ini file on my server and I cannot see anything else. I can see the status of the safe mode from the browser but I cant find anywhere to turn it off or on. What do you mean I need to ssh in as root to modify the file.
 
Re: safe_made

apple said:
This is what I see in the file. I cant see if it is ON or OFF.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>



It should look like this (or similiar)


Code:
[admin@lgs1 ~]$ grep safe_mode /etc/php.ini
safe_mode = Off
; then turn on safe_mode_gid.
safe_mode_gid = Off
; When safe_mode is on, UID/GID checks are bypassed when
safe_mode_include_dir =
; When safe_mode is on, only executables located in the safe_mode_exec_dir
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH
sql.safe_mode = Off
[admin@lgs1 ~]$
 
OK, thanks. I know the string is something quite obvious but I dont have access to the file. I will ask my host to change it. Thanks.
 
There is a way for you to turn it off or on by .htaccess

Copy the below into a .htaccess file and put it in the public_html/.htaccess


Code:
php_admin_value safe_mode Off [B]or[/B] php_admin_value safe_mode On
 
apple said:
OK, i know why now. I cannot see it on my adminserver. So, my host did not give me full access. Is that the reason?
I'm not sure I understand. If you have admin access to your whole server then you are the host. Do you mean the company that set up your server for you? Or do you not have an entire server?

Update to the latest version of DA, and switched to the enhanced skin, and you'll see this:

PHP SafeMode Configuration under Extra Features.

Jeff
 
The company set it up for us. We have unlimited bandwith, space and domain names.

Where do I get the latest version of DA?
 
apple said:
The company set it up for us. We have unlimited bandwith, space and domain names.

Where do I get the latest version of DA?
Get the company to do it ;)
 
apple, do you have admin access to your server? If so you can update from the admin login.

If not, then you're not an admin and you should be dealing with your hosting company because only the server's system administrator can use the feature.

Jeff
 
Back
Top