LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-06-2011, 01:37 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
php safe mode


I set PHP safe mode to on in the php.ini.
I also set the safe_mode_exec_dir = /usr/local/sbin/myfolder/

In that folder I have a php script (not web facing) that runs some processing code on the server. However even after restarting httpd and reloading php.ini with safe mode on, it prevents the script from running an exec command in that folder.

ANy ideas what could be wrong?
I have to turn safe mode back to Off to allow the script in /usr/local/sbin/myfolder/script.php to work.
 
Old 04-06-2011, 04:04 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
safe_mode (which is apparently deprecated and marked for removal) turns on a variety of features.

http://www.php.net/manual/en/ini.sect.safe-mode.php

Turning it on may be tripping you up on any of several of those protections. Your web server's error log will probably give you more details.
 
Old 04-07-2011, 01:54 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
...

Last edited by qwertyjjj; 04-07-2011 at 02:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php safe mode lolka Linux - Newbie 3 09-14-2008 09:39 AM
PHP disable system{} and safe mode newlinuxnewbie Linux - Server 3 09-25-2006 02:57 AM
[SOLVED] PHP safe mode, Chroot, Apache, Gallery gypsy_rabbi Linux - Security 2 10-06-2004 03:45 PM
safe mode elmorgo Linux - Software 1 08-30-2004 07:04 AM
safe mode dazzler Linux - Newbie 4 07-27-2004 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration