LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2007, 04:18 AM   #1
karen.pertierra
LQ Newbie
 
Registered: Jan 2007
Posts: 20

Rep: Reputation: 0
php.ini correct settings


Hello,

I am running a shared server by several domains. One client is asking that I set safe mode and register globals both to OFF.

Is this safe configuration in the php.ini?
 
Old 07-21-2007, 05:29 AM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
http://www.php.net/register_globals
http://www.php.net/manual/en/feature...sect.safe-mode

Generally speaking, setting register globals to off and setting safe mode on will make the system *more* secure (Edit - register globals on will make it easier to write insecure code). Register globals modifies how PHP handles variables. "On" means PHP will insert variables (such as form variables, etc...) into the PHP scripts. "Off" means PHP will NOT insert those variables. Safe mode is intended for shared servers and operates by performing user ID/group ID checks, allowing you to define directories that scripts are allowed to "execute" from, etc...

Last edited by rocket357; 07-21-2007 at 05:36 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 12:16 PM
midnight commander save settings makes new ini file dinges Linux - Software 0 11-25-2004 10:41 AM
php: different mail server from php.ini rayds Programming 0 09-14-2004 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:39 PM.

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