PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > need opinions regarding php.ini
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
need opinions regarding php.ini

Réponse
 
LinkBack Outils de la discussion
Vieux 05/01/2008, 07h35   #1
Afan Pasalic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut need opinions regarding php.ini

hi,
after my host moved my account from old server (shared hosting) with php
4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did
it fast and without problems.
but then I realized that every folder has it's own php.ini file?!?
I "talked" to them (live chat) about this and they told me "that is how
our system is setup":

"...
afan [20:25]: why is now different then before?
xxxx [20:25]: That is not different. That has always been the case.
You may not have had a php.ini in every folder, but every folder still
needed its own php.ini if you wanted to change the php settings.
afan [20:27]: I don't understand why I should have php.ini in every
folder? it's like having admin area for each folder?
xxxx [20:28]: You don't have to if you don't want to, but that is how
our system is setup, so unless you don't want to change settings for all
of your folders, you'll want to leave those there.
afan [20:29]: ok. in case I want to change something in php.ini, how to
do it on all php.ini files?
xxxx [20:29]: You would change one php.ini file, then visit the link I
provided, and that will show you how to copy that to all folders.
...."

and I got the link with script how to change EVERY php.ini on my account
(with over 10 addon domain).

I still think that's not correct. I need your opinion.

Thanks.

-afan
  Réponse avec citation
Vieux 05/01/2008, 16h13   #2
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] need opinions regarding php.ini

On Jan 5, 2008 2:35 AM, Afan Pasalic <afan@afan.net> wrote:
> hi,
> after my host moved my account from old server (shared hosting) with php
> 4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did
> it fast and without problems.
> but then I realized that every folder has it's own php.ini file?!?
> I "talked" to them (live chat) about this and they told me "that is how
> our system is setup":
>
> "...
> afan [20:25]: why is now different then before?
> xxxx [20:25]: That is not different. That has always been the case.
> You may not have had a php.ini in every folder, but every folder still
> needed its own php.ini if you wanted to change the php settings.
> afan [20:27]: I don't understand why I should have php.ini in every
> folder? it's like having admin area for each folder?
> xxxx [20:28]: You don't have to if you don't want to, but that is how
> our system is setup, so unless you don't want to change settings for all
> of your folders, you'll want to leave those there.
> afan [20:29]: ok. in case I want to change something in php.ini, how to
> do it on all php.ini files?
> xxxx [20:29]: You would change one php.ini file, then visit the link I
> provided, and that will show you how to copy that to all folders.
> ..."
>
> and I got the link with script how to change EVERY php.ini on my account
> (with over 10 addon domain).
>
> I still think that's not correct. I need your opinion.


I'm not entirely sure why your host found it necessary to provide
a php.ini file in every directory, but the fact is, it's safe to
delete all of them if you want. They're just there to allow you to
override certain settings (INI_PERDIR settings, for example).


--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
  Réponse avec citation
Vieux 05/01/2008, 16h20   #3
Afan Pasalic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] need opinions regarding php.ini

That was my thought too, but, when I create new folder - it will
automatically create php.ini inside and there is no point of deleting them.

HOW insecure it is? Because, since you know there is php.ini you can
easy open every of them (http://mydomain.com/gallery/images/php.ini) and
look. Isn't is vulnerable point?

-afan



Daniel Brown wrote:
> On Jan 5, 2008 2:35 AM, Afan Pasalic <afan@afan.net> wrote:
>> hi,
>> after my host moved my account from old server (shared hosting) with php
>> 4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did
>> it fast and without problems.
>> but then I realized that every folder has it's own php.ini file?!?
>> I "talked" to them (live chat) about this and they told me "that is how
>> our system is setup":
>>
>> "...
>> afan [20:25]: why is now different then before?
>> xxxx [20:25]: That is not different. That has always been the case.
>> You may not have had a php.ini in every folder, but every folder still
>> needed its own php.ini if you wanted to change the php settings.
>> afan [20:27]: I don't understand why I should have php.ini in every
>> folder? it's like having admin area for each folder?
>> xxxx [20:28]: You don't have to if you don't want to, but that is how
>> our system is setup, so unless you don't want to change settings for all
>> of your folders, you'll want to leave those there.
>> afan [20:29]: ok. in case I want to change something in php.ini, how to
>> do it on all php.ini files?
>> xxxx [20:29]: You would change one php.ini file, then visit the link I
>> provided, and that will show you how to copy that to all folders.
>> ..."
>>
>> and I got the link with script how to change EVERY php.ini on my account
>> (with over 10 addon domain).
>>
>> I still think that's not correct. I need your opinion.

>
> I'm not entirely sure why your host found it necessary to provide
> a php.ini file in every directory, but the fact is, it's safe to
> delete all of them if you want. They're just there to allow you to
> override certain settings (INI_PERDIR settings, for example).
>
>

  Réponse avec citation
Vieux 05/01/2008, 16h44   #4
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] need opinions regarding php.ini

On Jan 5, 2008 11:20 AM, Afan Pasalic <afan@afan.net> wrote:
> That was my thought too, but, when I create new folder - it will
> automatically create php.ini inside and there is no point of deleting them.
>
> HOW insecure it is? Because, since you know there is php.ini you can
> easy open every of them (http://mydomain.com/gallery/images/php.ini) and
> look. Isn't is vulnerable point?


Using .htaccess you can disallow viewing of the file.

If you use phpinfo(); anywhere in your site, that actually
divulges more information, because that will disclose the availability
and configuration of external modules, users on the server, path
information, and more.

--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
  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 18h12.


É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,12581 seconds with 12 queries