How to turn off safe mode PHP 7?

DaRecordon

Well-known member
Joined
Oct 7, 2016
Messages
166
Best answers
0
Ratings
11
Points
18
#1
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
Joined
Nov 26, 2016
Messages
426
Best answers
1
Ratings
35
Points
28
#3
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
 

Nixtree

Well-known member
Joined
Jul 16, 2016
Messages
128
Best answers
0
Ratings
42 4
Points
28
#9
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
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
Replies
4
Views
35
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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