PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.www.webmaster > Please me understand "Safe Mode"
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Please me understand "Safe Mode"

Réponse
 
LinkBack Outils de la discussion
Vieux 15/10/2007, 17h55   #1
walterbyrd
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Please me understand "Safe Mode"

I am having some difficulty getting an application to run because the
web-hoster uses "safe mode." Other than getting another web-hoster, or
having the web-hoster turn safe mode off, what can I do?

What exactly does safe mode do? Is it effective? I understand that a
lot of experienced developers consider safe mode to be an ineffective
annoyance - why is that?

I also understand that safe mode is not as popular as it once was. Is
that correct? If so, why?

Thanks, in advance, for any you can give me.

  Réponse avec citation
Vieux 15/10/2007, 18h05   #2
SpaceGirl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Please me understand "Safe Mode"

walterbyrd wrote:
> I am having some difficulty getting an application to run because the
> web-hoster uses "safe mode." Other than getting another web-hoster, or
> having the web-hoster turn safe mode off, what can I do?
>
> What exactly does safe mode do? Is it effective? I understand that a
> lot of experienced developers consider safe mode to be an ineffective
> annoyance - why is that?
>
> I also understand that safe mode is not as popular as it once was. Is
> that correct? If so, why?
>
> Thanks, in advance, for any you can give me.
>


Usually that refers to the way PHP is set-up. If you are not using PHP,
then don't worry about it. Otherwise... well it disables some of the
functionality of PHP that could be potentially harmful to the server in
the wrong hands. Some open source scripts do insist on safe mode being
disabled.

--

x theSpaceGirl (miranda)

http://www.northleithmill.com

-.-

Kammy has a new home: http://www.bitesizedjapan.com
  Réponse avec citation
Vieux 15/10/2007, 19h24   #3
Mark Goodge
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Please me understand "Safe Mode"

On Mon, 15 Oct 2007 09:55:16 -0700, walterbyrd put finger to keyboard
and typed:

>I am having some difficulty getting an application to run because the
>web-hoster uses "safe mode." Other than getting another web-hoster, or
>having the web-hoster turn safe mode off, what can I do?


Nothing, really. Those are the two best options. I'd go for the first.

>What exactly does safe mode do?


It's intended to make PHP safer by disabling some functionality that,
under some circumstances, can be dangerous to the server.

> Is it effective?


No. It's not even reccommended any more by the PHP developers - recent
versions of PHP are more secure by design, and the use of safe mode is
unnecessary.

> I understand that a
>lot of experienced developers consider safe mode to be an ineffective
>annoyance - why is that?


Because it's an ineffective annoyance. It gives the hosting company a
false sense of security at the expense of making good PHP more
difficult to write.

>I also understand that safe mode is not as popular as it once was. Is
>that correct?


Yes, that's correct.

>If so, why?


Because it's no longer necessary. PHP used to be riddled with security
holes; now, it's just got the odd hole here and there. Safe mode does
nothing about the holes that still exist, and the ones it was
originally intended to guard against have now been fixed by later
releases of the software.

Personally, I wouldn't use a webhost that insists on safe mode. It
either means that they're still using an old version of PHP which is
so insecure that safe mode is ful - in which case, it's too old
for anything useful, and too insecure for any website of mine - or
they don't know enough about PHP to realise that it's no longer
necessary - in which case, they're not competant enough for any
website of mine.

Mark
--
http://www.MotorwayServices.info - read and share comments and opinons
"Everybody's changing and I don't feel the same"
  Réponse avec citation
Vieux 17/10/2007, 04h39   #4
webwayworld
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Please me understand "Safe Mode"

Hello,
Basically safe mode comes into picutre if you have taken shared
hosting services.
Hosting provider basically for the security purpose doesnt provide all
the features that a php needs , but keeps it limited meaning a safe
mode.

Safe mode is a precauationary measurement for shared hosting provider
so that developers may not get full required access on the server
wherein other websites are too hosted(shared hosting(

Regards,
webwayworld.com


On Oct 15, 9:55 pm, walterbyrd <walterb...@iname.com> wrote:
> I am having some difficulty getting an application to run because the
> web-hoster uses "safe mode." Other than getting another web-hoster, or
> having the web-hoster turn safe mode off, what can I do?
>
> What exactly does safe mode do? Is it effective? I understand that a
> lot of experienced developers consider safe mode to be an ineffective
> annoyance - why is that?
>
> I also understand that safe mode is not as popular as it once was. Is
> that correct? If so, why?
>
> Thanks, in advance, for any you can give me.



  Réponse avec citation
Vieux 17/10/2007, 20h22   #5
Jamie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Please me understand "Safe Mode"

In <1192592385.065042.141890@e9g2000prf.googlegroups. com>,
webwayworld <webwayworld@gmail.com> mentions:
>Hello,
>Basically safe mode comes into picutre if you have taken shared
>hosting services.
>Hosting provider basically for the security purpose doesnt provide all
>the features that a php needs , but keeps it limited meaning a safe
>mode.
>
>Safe mode is a precauationary measurement for shared hosting provider
>so that developers may not get full required access on the server
>wherein other websites are too hosted(shared hosting(


>On Oct 15, 9:55 pm, walterbyrd <walterb...@iname.com> wrote:
>> I am having some difficulty getting an application to run because the
>> web-hoster uses "safe mode." Other than getting another web-hoster, or
>> having the web-hoster turn safe mode off, what can I do?
>>
>> What exactly does safe mode do? Is it effective? I understand that a
>> lot of experienced developers consider safe mode to be an ineffective
>> annoyance - why is that?
>>
>> I also understand that safe mode is not as popular as it once was. Is
>> that correct? If so, why?
>>
>> Thanks, in advance, for any you can give me.


Last time I looked into safe_mode (and how it is typically deployed) I felt
that it might be called "unsafe mode" because, from what I observed anyway,
there wasn't really a way to store code and data outside of web space.

http://www.geniegate.com/art/pdf/kee...ff-the-web.pdf

In a nutshell, PHP programs written for safe_mode will often have their
configuration data stored as a .php (instead of a .ini) in an effort to
prevent the web server from serving it up. This usually works, but we've
probably all seen hiccups where the web server treats a PHP file as a text
file (botching the filetype associations)

They also use .htaccess files, this works, sort of.. until someone screws
up the config. (which is some-what likely to happen during experimentation)

Unless something has changed (and I must admit, I'm no "safe mode" expert)
I believe safe mode is not only a "bad idea" it can actually lead to unsafe
scripts.

Jamie
--
http://www.geniegate.com Custom web programming
Perl * Java * UNIX User Management Solutions
  Réponse avec citation
Vieux 17/10/2007, 21h08   #6
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Please me understand "Safe Mode"

Jamie wrote:
> In <1192592385.065042.141890@e9g2000prf.googlegroups. com>,
> webwayworld <webwayworld@gmail.com> mentions:
>> Hello,
>> Basically safe mode comes into picutre if you have taken shared
>> hosting services.
>> Hosting provider basically for the security purpose doesnt provide all
>> the features that a php needs , but keeps it limited meaning a safe
>> mode.
>>
>> Safe mode is a precauationary measurement for shared hosting provider
>> so that developers may not get full required access on the server
>> wherein other websites are too hosted(shared hosting(

>
>> On Oct 15, 9:55 pm, walterbyrd <walterb...@iname.com> wrote:
>>> I am having some difficulty getting an application to run because the
>>> web-hoster uses "safe mode." Other than getting another web-hoster, or
>>> having the web-hoster turn safe mode off, what can I do?
>>>
>>> What exactly does safe mode do? Is it effective? I understand that a
>>> lot of experienced developers consider safe mode to be an ineffective
>>> annoyance - why is that?
>>>
>>> I also understand that safe mode is not as popular as it once was. Is
>>> that correct? If so, why?
>>>
>>> Thanks, in advance, for any you can give me.

>
> Last time I looked into safe_mode (and how it is typically deployed) I felt
> that it might be called "unsafe mode" because, from what I observed anyway,
> there wasn't really a way to store code and data outside of web space.
>


Sure there is. It just depends on how safe_mode is implemented. I
store all of my files outside of the webserver's root directory.

> http://www.geniegate.com/art/pdf/kee...ff-the-web.pdf
>
> In a nutshell, PHP programs written for safe_mode will often have their
> configuration data stored as a .php (instead of a .ini) in an effort to
> prevent the web server from serving it up. This usually works, but we've
> probably all seen hiccups where the web server treats a PHP file as a text
> file (botching the filetype associations)
>
> They also use .htaccess files, this works, sort of.. until someone screws
> up the config. (which is some-what likely to happen during experimentation)
>
> Unless something has changed (and I must admit, I'm no "safe mode" expert)
> I believe safe mode is not only a "bad idea" it can actually lead to unsafe
> scripts.
>
> Jamie


It's an idea, but too many people implemented it improperly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h29.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18707 seconds with 14 queries