How to turn off safe mode PHP 7?

DaRecordon

Well-known member
Registered
Joined
Oct 7, 2016
Messages
247
Points
18
I am running PHP 7 and i need to turn off safe mode to test a command. I have no idea where and how to do this. Can any one help me?
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
I am running PHP 7 and i need to turn off safe mode to test a command. I have no idea where and how to do this. Can any one help me?
Using an editor like Nano and editing your php.ini and set the variable safe_mode to off.

Code:
safe_mode = Off
To find php.ini in linux run phpinfo(); in a PHP file or php -i | grep "Loaded Configuration File" on the terminal.

https://forumweb.hosting/15812-where-is-my-php-ini-file.html
https://forumweb.hosting/14216-php-ini-location.html
 

vinvill

Member
Registered
Joined
Nov 14, 2017
Messages
22
Points
0
Turn it off in the nano or php.ini then restart.
 

Nixtree

Well-known member
Registered
Joined
Jul 16, 2016
Messages
133
Points
28
In newer cpanel versions, when you are changing php.ini values for a user alone, then I will suggest to get it done via whm/cpanel interface as now a days it is not just php.ini value and there are multiple sections where the cpanel updates the value like .user.ini, .htaccess etc. So best shot when you have cpanel, update the values in cpanel interface itself.
 
Older Threads
Latest Threads
Replies
1
Views
25
Replies
0
Views
180
Replies
1
Views
39
Replies
2
Views
81

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top