php.ini not being read in vista

This is a discussion on php.ini not being read in vista within the PHP Language forums, part of the PHP Programming Forums category; I tried to turn on magic_quotes_gpc behavior shows that it is Off phpinfo shows it is Off phpinfo shows path ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008
Jerry
 
Posts: n/a
Default php.ini not being read in vista

I tried to turn on magic_quotes_gpc

behavior shows that it is Off
phpinfo shows it is Off
phpinfo shows path to config file as C:\php\php.ini


setting:
magic_quotes_gpc = On
in C:\php\php.ini does nothing

putting garbage into C:\php\php.ini results in NO error in
Apache's error.log

renaming C:\php\php.ini has No effect

So it must be using default settings. How do I fix?

I hate vista


Reply With Quote
  #2 (permalink)  
Old 02-27-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry wrote:
> I tried to turn on magic_quotes_gpc
>
> behavior shows that it is Off
> phpinfo shows it is Off
> phpinfo shows path to config file as C:\php\php.ini
>
>
> setting:
> magic_quotes_gpc = On
> in C:\php\php.ini does nothing
>
> putting garbage into C:\php\php.ini results in NO error in Apache's
> error.log
>
> renaming C:\php\php.ini has No effect
>
> So it must be using default settings. How do I fix?
>
> I hate vista
>
>
>


Does the webserver's userid have access to the php.ini file?

Now you know why I don't use Vista :-)

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

Reply With Quote
  #3 (permalink)  
Old 02-27-2008
Jerry
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry Stuckle wrote:
> Jerry wrote:
>> I tried to turn on magic_quotes_gpc
>>
>> behavior shows that it is Off
>> phpinfo shows it is Off
>> phpinfo shows path to config file as C:\php\php.ini
>>
>>
>> setting:
>> magic_quotes_gpc = On
>> in C:\php\php.ini does nothing
>>
>> putting garbage into C:\php\php.ini results in NO error in Apache's
>> error.log
>>
>> renaming C:\php\php.ini has No effect
>>
>> So it must be using default settings. How do I fix?
>>
>> I hate vista
>>
>>
>>

>
> Does the webserver's userid have access to the php.ini file?


thanks. I guess there's no easy fix and I'll have to delve into
accomplishing that tomorrow. I had the quaint notion that I
shouldn't have the OS fighting me at every turn - and so I could
focus on actually using the computer instead of fighting the OS.

>
> Now you know why I don't use Vista :-)
>


nobody had told me that it was permanent beta, either. As in how
it won't connect to some routers. As in how it might disconnect
dialup when switching users. On and on. Sometimes it won't come
out of sleep (why doesn't that happen to Bill gates?) hehe...
Reply With Quote
  #4 (permalink)  
Old 02-27-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry wrote:
> Jerry Stuckle wrote:
>> Jerry wrote:
>>> I tried to turn on magic_quotes_gpc
>>>
>>> behavior shows that it is Off
>>> phpinfo shows it is Off
>>> phpinfo shows path to config file as C:\php\php.ini
>>>
>>>
>>> setting:
>>> magic_quotes_gpc = On
>>> in C:\php\php.ini does nothing
>>>
>>> putting garbage into C:\php\php.ini results in NO error in Apache's
>>> error.log
>>>
>>> renaming C:\php\php.ini has No effect
>>>
>>> So it must be using default settings. How do I fix?
>>>
>>> I hate vista
>>>
>>>
>>>

>>
>> Does the webserver's userid have access to the php.ini file?

>
> thanks. I guess there's no easy fix and I'll have to delve into
> accomplishing that tomorrow. I had the quaint notion that I shouldn't
> have the OS fighting me at every turn - and so I could focus on actually
> using the computer instead of fighting the OS.
>


If that's the problem, there is an easy fix. Get he webserver user
access to the php.ini file. It's pretty easy - at least on W2K and W2K3
servers.

>>
>> Now you know why I don't use Vista :-)
>>

>
> nobody had told me that it was permanent beta, either. As in how it
> won't connect to some routers. As in how it might disconnect dialup when
> switching users. On and on. Sometimes it won't come out of sleep (why
> doesn't that happen to Bill gates?) hehe...
>


It's Microsoft. :-(. Seriously, I won't install an MS product until at
least 2 service packs have been issued. Then I only install it on a
test system to see if it works yet.

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

Reply With Quote
  #5 (permalink)  
Old 02-27-2008
Chuck Anderson
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry wrote:
> I tried to turn on magic_quotes_gpc
>
> behavior shows that it is Off
> phpinfo shows it is Off
> phpinfo shows path to config file as C:\php\php.ini
>


So I may not have the answer, but ....

> setting:
> magic_quotes_gpc = On
> in C:\php\php.ini does nothing
>
> putting garbage into C:\php\php.ini results in NO error in
> Apache's error.log
>


...... have you set the path in httpd.conf?

# configure the path to php.ini
PHPIniDir "c:/php"

(I don't even know enough about Apache to know if this is necessary, but
it's in my config file.)

> I hate vista
>


I hope I never have to use it. XP does just fine.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
***********************************

Reply With Quote
  #6 (permalink)  
Old 02-27-2008
Michael Fesser
 
Posts: n/a
Default Re: php.ini not being read in vista

..oO(Jerry)

>I tried to turn on magic_quotes_gpc


Besides the other responses: Why do you want to turn them on?
Magic quotes are broken and will be completely removed in PHP 6.
There's no reason to use them.

Micha
Reply With Quote
  #7 (permalink)  
Old 02-27-2008
Animesh K
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry wrote:
<snip>
>
> nobody had told me that it was permanent beta, either. As in how it
> won't connect to some routers. As in how it might disconnect dialup when
> switching users. On and on. Sometimes it won't come out of sleep (why
> doesn't that happen to Bill gates?) hehe...


Upgrade to Ubuntu, unless you use some Windows applications (like
photoshop, illustrator, etc). Recent WINE update has fixed quite a few
bugs related to Windows program running in Linux.

Unlike what people say, Linux was easier to install on an older laptop
of mine. No need to search for drivers. No need to insert CDs and do 10
re-starts to just install the basic device drivers.
Reply With Quote
  #8 (permalink)  
Old 02-27-2008
Jerry Stuckle
 
Posts: n/a
Default Re: php.ini not being read in vista

Jerry wrote:
> Jerry Stuckle wrote:
>>
>> If that's the problem, there is an easy fix. Get he webserver user
>> access to the php.ini file. It's pretty easy - at least on W2K and
>> W2K3 servers.

>
> you'd think it would be easy, yes.
>
> httpd.exe is owned by SYSTEM
>
> SYSTEM supposedly has 'Full control' over C:\php\php.ini
>
> but no go.
>
> (As an aside, I presume you also know that even an admin user is denied
> access to some directories in Vista. Go figure. Not surprisingly, there
> is a theory out there that M$ has resolved to throw most resources into
> Vista's replacement and therefore not spend much on improving Vista.)
>
>
> Note to Chuck: yes, my Apache has set--> PHPIniDir "c:/php"
>
> Note to Animesh: this machine is specifically for Flash, and Photoshop -
> so I have to have some M$ OS crap on here. Maybe they'll be a class
> action soon to give Vista users a free XP. Hey, it could happen :)
>


Jerry,

"Owned by" is not the same as "running as". You need to determine the
user Apache is running as. It may be System (very bad to do), but it
could be something else, also.

If you have Apache set up as a service, look in the Services folder (or
whatever Vista calls it) and check the Properties for Apache.

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

Reply With Quote
  #9 (permalink)  
Old 02-27-2008
Jerry
 
Posts: n/a
Default Re: php.ini not being read in vista

Animesh K wrote:
>
> Upgrade to Ubuntu, unless you use some Windows applications (like
> photoshop, illustrator, etc).


yes, I had downloaded Ubuntu in order to create dual-boot. My
understanding was that Ubuntu was maybe the best version for a
desktop vs a server.

That plan got stalled when I tried to burn an ISO with Vista, and
the exact same Vista machine wouldn't read it's own just-made CD

Once again, I had not the time nor inclination to fight the OS,
to make s simple CD.
Reply With Quote
  #10 (permalink)  
Old 02-27-2008
Jerry
 
Posts: n/a
Default Re: php.ini not being read in vista

Animesh K wrote:
>
> Upgrade to Ubuntu, unless you use some Windows applications (like
> photoshop, illustrator, etc).


yes, I had downloaded Ubuntu in order to create dual-boot. My
understanding was that Ubuntu was maybe the best version for a
desktop vs a server.

That plan got stalled when I tried to burn an ISO with Vista, and
the exact same Vista machine wouldn't read it's own just-made CD

Once again, I had not the time nor inclination to fight the OS,
to make a simple CD.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0