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.php > Problem with php.ini file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Problem with php.ini file

Réponse
 
LinkBack Outils de la discussion
Vieux 24/09/2007, 07h45   #1
John
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Problem with php.ini file

Hello,


I'm trying to install a script and it needs register_globals = on.


I know about the security risk etc. and it should be off, but the
script will not run with it off.


I contacted my hosting company because I couldn't find the php.ini
file. They told me to create one and put it in the root.

The problem is I don't know exactly what is the root with all the
different folder.


etc 755
logs 750
mail 770
public_ftp 755
public_html 750
tmp 755
www 750
Create New File
.bash_logout 0 k 0644
.bash_profile 0 k 0644
.bashrc 0 k 0644
.contactemail 0 k 0644
.cpanel-ducache 0 k 0600
.emacs 0 k 0644
.ftpquota 0 k 0600
.lastlogin 0 k 0600
.zshrc 0 k 0644
php.ini 0 k 0644 <-------------- I put it here


I have one line register_globals = on in the php.ini file.

When I try phpinfo.php to show what is set, it shows that the
registered globals are still off. I tried putting it in www and then
public_html and then also tried to put in my add on domain folder, but
none worked.

Any would be appreciated.

Thanks!





  Réponse avec citation
Vieux 24/09/2007, 08h24   #2
David McKenzie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file

John wrote:
> Hello,
>
>
> I'm trying to install a script and it needs register_globals = on.
>
>
> I know about the security risk etc. and it should be off, but the
> script will not run with it off.
>
>
> I contacted my hosting company because I couldn't find the php.ini
> file. They told me to create one and put it in the root.
>
> The problem is I don't know exactly what is the root with all the
> different folder.
>
>
> etc 755
> logs 750
> mail 770
> public_ftp 755
> public_html 750
> tmp 755
> www 750
> Create New File
> .bash_logout 0 k 0644
> .bash_profile 0 k 0644
> .bashrc 0 k 0644
> .contactemail 0 k 0644
> .cpanel-ducache 0 k 0600
> .emacs 0 k 0644
> .ftpquota 0 k 0600
> .lastlogin 0 k 0600
> .zshrc 0 k 0644
> php.ini 0 k 0644 <-------------- I put it here
>
>
> I have one line register_globals = on in the php.ini file.
>
> When I try phpinfo.php to show what is set, it shows that the
> registered globals are still off. I tried putting it in www and then
> public_html and then also tried to put in my add on domain folder, but
> none worked.
>
> Any would be appreciated.
>
> Thanks!


Your host should you with this, if they don't, I'd suggest moving
to a competent web host. (Webcity.com.au springs to mind.)

Anyway, the php.ini file should be in *every* directory where you are
executing the script from. So if you're executing
http://www.domain.com/script.php, it would need to be in the www
directory. If it is at http://www.domain.com/dir/script.php, it would
need to be in www/dir/

Hope that clears things up for you.


--
DM davidm@cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
  Réponse avec citation
Vieux 24/09/2007, 12h11   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file

John wrote:
> Hello,
>
>
> I'm trying to install a script and it needs register_globals = on.
>
>
> I know about the security risk etc. and it should be off, but the
> script will not run with it off.
>
>


Get a new script. If it's that old that it still requires register_globals to
be on, chances are it has other vulnerabilities, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  Réponse avec citation
Vieux 24/09/2007, 14h04   #4
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file


"John" <John_nospam@nnnnnnnnn.nowhere> wrote in message
news:lumef39a5u0gj86iuh5ujiain3uvc460da@4ax.com...
> Hello,
>
>
> I'm trying to install a script and it needs register_globals = on.
>
>
> I know about the security risk etc. and it should be off, but the
> script will not run with it off.
>
>
> I contacted my hosting company because I couldn't find the php.ini
> file. They told me to create one and put it in the root.
>
> The problem is I don't know exactly what is the root with all the
> different folder.
>
>
> etc 755
> logs 750
> mail 770
> public_ftp 755
> public_html 750
> tmp 755
> www 750
> Create New File
> .bash_logout 0 k 0644
> .bash_profile 0 k 0644
> .bashrc 0 k 0644
> .contactemail 0 k 0644
> .cpanel-ducache 0 k 0600
> .emacs 0 k 0644
> .ftpquota 0 k 0600
> .lastlogin 0 k 0600
> .zshrc 0 k 0644
> php.ini 0 k 0644 <-------------- I put it here
>
>
> I have one line register_globals = on in the php.ini file.
>
> When I try phpinfo.php to show what is set, it shows that the
> registered globals are still off. I tried putting it in www and then
> public_html and then also tried to put in my add on domain folder, but
> none worked.
>
> Any would be appreciated.


modify the script. whatever you do, do NOT open yourself up like
that...unless you have a lot of vasiline.


  Réponse avec citation
Vieux 25/09/2007, 11h24   #5
Geevaa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file


John wrote:
> Hello,
>
>
> I'm trying to install a script and it needs register_globals = on.
>
>
> I know about the security risk etc. and it should be off, but the
> script will not run with it off.
>
>
> I contacted my hosting company because I couldn't find the php.ini
> file. They told me to create one and put it in the root.
>
> The problem is I don't know exactly what is the root with all the
> different folder.
>
>
> etc 755
> logs 750
> mail 770
> public_ftp 755
> public_html 750
> tmp 755
> www 750
> Create New File
> .bash_logout 0 k 0644
> .bash_profile 0 k 0644
> .bashrc 0 k 0644
> .contactemail 0 k 0644
> .cpanel-ducache 0 k 0600
> .emacs 0 k 0644
> .ftpquota 0 k 0600
> .lastlogin 0 k 0600
> .zshrc 0 k 0644
> php.ini 0 k 0644 <-------------- I put it here
>
>
> I have one line register_globals = on in the php.ini file.
>
> When I try phpinfo.php to show what is set, it shows that the
> registered globals are still off. I tried putting it in www and then
> public_html and then also tried to put in my add on domain folder, but
> none worked.
>
> Any would be appreciated.
>
> Thanks!



php.ini may be in the path etc/php.ini


Is this path is not getting displayed by the phpinfo() method in the
browser..???

  Réponse avec citation
Vieux 25/09/2007, 11h24   #6
Geevaa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file

On Sep 25, 3:24 pm, Geevaa <govivasa...@gmail.com> wrote:
> John wrote:
> > Hello,

>
> > I'm trying to install a script and it needs register_globals = on.

>
> > I know about the security risk etc. and it should be off, but the
> > script will not run with it off.

>
> > I contacted my hosting company because I couldn't find the php.ini
> > file. They told me to create one and put it in the root.

>
> > The problem is I don't know exactly what is the root with all the
> > different folder.

>
> > etc 755
> > logs 750
> > mail 770
> > public_ftp 755
> > public_html 750
> > tmp 755
> > www 750
> > Create New File
> > .bash_logout 0 k 0644
> > .bash_profile 0 k 0644
> > .bashrc 0 k 0644
> > .contactemail 0 k 0644
> > .cpanel-ducache 0 k 0600
> > .emacs 0 k 0644
> > .ftpquota 0 k 0600
> > .lastlogin 0 k 0600
> > .zshrc 0 k 0644
> > php.ini 0 k 0644 <-------------- I put it here

>
> > I have one line register_globals = on in the php.ini file.

>
> > When I try phpinfo.php to show what is set, it shows that the
> > registered globals are still off. I tried putting it in www and then
> > public_html and then also tried to put in my add on domain folder, but
> > none worked.

>
> > Any would be appreciated.

>
> > Thanks!

>
> php.ini may be in the path etc/php.ini
>
> Is this path is not getting displayed by the phpinfo() method in the
> browser..???


it should be /etc/php.ini

  Réponse avec citation
Vieux 25/09/2007, 14h19   #7
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with php.ini file

Geevaa <govivasanth@gmail.com> wrote in news:1190715894.701409.124990
@o80g2000hse.googlegroups.com:

>> php.ini may be in the path etc/php.ini
>>
>> Is this path is not getting displayed by the phpinfo() method in the
>> browser..???

>
> it should be /etc/php.ini
>


phpInfo() will tell you where the REAL php.ini file is

  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 13h36.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13779 seconds with 15 queries