This is not the solution also not worked(I did know but was uncertain, tried and not worked). Also it is not about permissions.
I want to turn off the safe mode for one directory. Is this possible?
Main Topics
Browse All TopicsHello,
We have a script that accepts user uploads. Our old system has safe mode off so no problem at all. For now due to safe mode is on in our php 5.2.5 system we are getting the below error:
Warning: move_uploaded_file() [function.move-uploaded-fi
There was an error uploading the file, please try again.
1. We add a .htaccess file and put the line:
php_flag safe_mode off
same result as above.
2. Changed with the below line:
php_flag safe_mode 0
same result.
3. Removed the .htaccess file and add a php.ini file added the below line inside:
safe_mode = Off
Nothing changed as usual.
4. Then found the ini_set func via php.net and added the below line at the top of uploader1.php:
ini_set("safe_mode","0");
Again nothing changed.
Actually we can turn the safe mode off for our account by adding the below line in httpd.conf:
php_admin_flag safe_mode Off
After restarting apache everything is getting back to normal for our account. But it turns off for all the system(directories) which is dangerous.
The question is:
How can we turn the safe mode off for specific directories? or how can we turn it on for specific directories?
Maybe this can be done via safe_mode_include_dir or open_basedir which we have no clue...
Please help, thank you...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: zvuciniPosted on 2008-01-20 at 14:23:34ID: 20702713
Can't you just put permission at upload dirs?
Like"chmod -R 0755 myDir"