Questions tagged [safe-mode]
105 questions
3
votes
2 answers
Impossible to turn off PHP safe_mode?
I can't upload images in Drupal 7 since I have moved it to a new server: php safe mode was on. So in php.ini I set safe_mode = Off (through ssh, I have CentOS).
phpinfo() shows that safe_mode is off for master, but on local. I do have a Plesk panel,…

Ben Rogmans
- 987
- 1
- 14
- 22
3
votes
0 answers
Pass adminPassword Parameter from JSON template to PS script Switch
I'm building a JSON template that deploys a VM in Azure and executing a PowerShell script via Custom Script Extension (CSE). The JSON template was taken from here with some modifications for my company needs.
One of the parameters in the JSON…

Avi Samocha
- 31
- 1
3
votes
2 answers
PHP cli command line safe_mode restriction
I'm using the Kohana framework (3.0.9), which generates daily logs. I want to mail the log file if one was made the day before CRON runs the script, but after days trying I can't figure out how to put off safe_mode in PHP CLI modus.
When I'm running…

Jasper Briers
- 555
- 5
- 12
3
votes
3 answers
PHP is_readable trouble with open_basedir
I've recently gotten an error when I deployed an application. It used "is_readable" on a path within the include path, but one that was restricted by "open_basedir". This gave me a fatal error.
Is there another function that I could use to see if a…

Bart van Heukelom
- 43,244
- 59
- 186
- 301
3
votes
1 answer
What is the default behavior in PHP 5.4 regarding the Safe Mode
I am a little confused and need some input here:
From what I know, with the Safe Mode directive set to off, PHP was able to access files even if the owner was different.
Then setting to On, access to those files was disabled.
Now in PHP 5.4 the Safe…

Sbpro
- 948
- 14
- 27
3
votes
0 answers
Does android keep a log of when it starts?
I'm making a parental control/accountability app for android. It consists of a monitoring service that runs in the background and starts when the phone is booted.
Unfortunately, I have found that when android is started in "Safe Mode", services are…

ferm10n
- 283
- 1
- 6
2
votes
1 answer
PHP is creating a directory it can't write to
if ( !is_writable( $save_path ) ){
mkdir( $save_path, 0777, true );
}
$uploadfile = $save_path . basename($_FILES[$form_field_name]['name']);
if ( is_writable( $save_path ) ){
move_uploaded_file($_FILES[$form_field_name]['tmp_name'],…

Wintermute
- 2,973
- 4
- 32
- 52
2
votes
2 answers
Safe mode.. mkdir
I have a script that creates a directory "createddir" and sets the chmod to 777 (just for this test really..)
I then want to create subfolders, but then the script fails. because of safe mode.
Why was I able to create that first folder then? Is it…
user429620
2
votes
2 answers
Is there an alternative to php readfile() in safe mode server?
I host my site on a shared hosting, which lately changed the server to safe mode (without even notifying that).
I use a feature that download files from the server, using the readfile() function (I use php).
Now, in safe_mode, this function is no…

Maor Barazany
- 761
- 2
- 11
- 21
2
votes
3 answers
Delete rows older than 14 days in MySQL
Summary
I need to purge the history of a table from rows that are older than 14 days.
Being no MySQL Expert, my searches lead me to this:
delete
from SYS_VERROUS_POLICE
where idModificationPolice not in (
select distinct…

Will Marcouiller
- 23,773
- 22
- 96
- 162
2
votes
1 answer
Disallow safe mode on launch for Selenium in Python?
I'm trying to launch into a website using a Selenium MWE:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')
However, it's not working. The process itself hangs until it times out.
I think that the…

Aleksey Bilogur
- 3,686
- 3
- 30
- 57
2
votes
0 answers
Laravel/Eloquent does it bypass safe update?
I'm performing the following query:
$sql ='UPDATE
Atable A INNER JOIN
Btable B ON A.name=B.name
SET
A.field=1
WHERE
B.field="wrong"; ';
Where B.field is not a Key…

koalaok
- 5,075
- 11
- 47
- 91
2
votes
1 answer
How to block safe mode in android
My application is meant for applying some policies on android device and this application is managed by Admin using console.
Here the issue is user starts the phone in safe mode and uninstall the my application get rid of all the policies. Which I…

Kunnu
- 79
- 1
- 3
2
votes
3 answers
Getting around PHP safe mode to write to server. Is it possible?
I have got the following problem since the server has safe mode turned on, and directories are being created under different users:
I upload my script to the server, it shows as belonging to 'user1'. All it is doing is making a new directory when a…

Marcel
- 6,143
- 15
- 46
- 52
2
votes
1 answer
How can I perform multi-table delete in safe mode with binary logging enabled?
Let's pretend, that I have following data structure:
DROP TABLE IF EXISTS `A`;
DROP TABLE IF EXISTS `B`;
DROP TABLE IF EXISTS `C`;
CREATE TABLE IF NOT EXISTS `C` (
`ID_C`
INT UNSIGNED
NOT NULL
AUTO_INCREMENT,
…

BlitZ
- 12,038
- 3
- 49
- 68