473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Changes to php.ini not being read through

PHP 5.1, Windows Server 2003, IIS 6, isapi

I changed a line in the php.ini file to
extension_dir = "c:\php\ext"
but when I load my phpinfo page it shows
extension_dir C:\php5

It's like my change didn't take effect.

I restarted the world wide web publishing service, but still the same
thing. What do I do to make the change take effect? I cannot simply
reboot the server. It is remote and hangs on restart, so I have to do
this without a reboot.

Thanks,

Jack
Nov 27 '05 #1
7 9479
Do a search on the machine for php.ini, there might be more than one
..ini file if you had php installed before.

There might be an ini file in the windows system dir and c:\php.

Nov 27 '05 #2
Sean wrote:
Do a search on the machine for php.ini, there might be more than one
.ini file if you had php installed before.

There might be an ini file in the windows system dir and c:\php.

Nope. It's the only one on my machine. I was able to change the error
level with no problem a while back, but can't seem to get this to stick.
Nov 28 '05 #3
Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.

Nov 28 '05 #4
I moved php.ini to c:\windows and I called phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
I goto C:\windows and move it back to c:\php. Reload phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
Both clear my browser cache and try it with a different browser:
Configuration File (php.ini) Path C:\WINDOWS
I goto c:\windows:
php.ini is not there anymore
Do an F3 search:
php.ini is only in c:\php
My extension directory line from phpinfo:
extension_dir C:\php5
My extension directory line from php.ini:
extension_dir = "c:\php\ext"
I do a search inside the file php.ini for the string "php5":
Cannot find "php5"

I don't believe I've done heavy editing to this file at all. Just
changed the error reporting level. Shouldn't php complain if the file
is corrupt? How could it be finding a phantom php file?

Thanks for the help,

Jack
Sean wrote:
Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.

Nov 29 '05 #5
Jack Lindamood wrote:
I moved php.ini to c:\windows and I called phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
I goto C:\windows and move it back to c:\php. Reload phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
Both clear my browser cache and try it with a different browser:
Configuration File (php.ini) Path C:\WINDOWS
I goto c:\windows:
php.ini is not there anymore
Do an F3 search:
php.ini is only in c:\php
My extension directory line from phpinfo:
extension_dir C:\php5
My extension directory line from php.ini:
extension_dir = "c:\php\ext"
I do a search inside the file php.ini for the string "php5":
Cannot find "php5"

I don't believe I've done heavy editing to this file at all. Just
changed the error reporting level. Shouldn't php complain if the file
is corrupt? How could it be finding a phantom php file?

Thanks for the help,

Jack
Sean wrote:
Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.


Did you restart your web server?

And please don't top post.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 29 '05 #6

Jerry Stuckle wrote:
Jack Lindamood wrote:
I moved php.ini to c:\windows and I called phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
I goto C:\windows and move it back to c:\php. Reload phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
Both clear my browser cache and try it with a different browser:
Configuration File (php.ini) Path C:\WINDOWS
I goto c:\windows:
php.ini is not there anymore
Do an F3 search:
php.ini is only in c:\php
My extension directory line from phpinfo:
extension_dir C:\php5
My extension directory line from php.ini:
extension_dir = "c:\php\ext"
I do a search inside the file php.ini for the string "php5":
Cannot find "php5"

I don't believe I've done heavy editing to this file at all. Just
changed the error reporting level. Shouldn't php complain if the file
is corrupt? How could it be finding a phantom php file?

Thanks for the help,

Jack
Sean wrote:
Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.


Did you restart your web server?

And please don't top post.


I can't reboot the server, but I did restart the World Wide Web
Publishing Service. Is that the correct way to restart the server? The
last post seemed to indicate the php.ini file was reprocessed each time
php is called. Is that correct?
Nov 29 '05 #7
Jack Lindamood wrote:

Jerry Stuckle wrote:
Jack Lindamood wrote:
I moved php.ini to c:\windows and I called phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
I goto C:\windows and move it back to c:\php. Reload phpinfo:
Configuration File (php.ini) Path C:\WINDOWS
Both clear my browser cache and try it with a different browser:
Configuration File (php.ini) Path C:\WINDOWS
I goto c:\windows:
php.ini is not there anymore
Do an F3 search:
php.ini is only in c:\php
My extension directory line from phpinfo:
extension_dir C:\php5
My extension directory line from php.ini:
extension_dir = "c:\php\ext"
I do a search inside the file php.ini for the string "php5":
Cannot find "php5"

I don't believe I've done heavy editing to this file at all. Just
changed the error reporting level. Shouldn't php complain if the
file is corrupt? How could it be finding a phantom php file?

Thanks for the help,

Jack
Sean wrote:

Since php is not a service it should really be reading in the .ini file
each time it is called.

I would check the phpinfo file just to make sure that the location of
the ini file that is printed out there is the same one as the one I am
editing. (Called Configuration File Path).

If it is then I would changed the location of the php.ini file. If it
was in the folder c:\php then move it to the windows system dir and see
if that makes a difference or visa versa.

If the php.ini file has been edited heavily then download a new one and
see if that makes a difference. Just get it from the zip archive from
the latest release.

Hope that helps.


Did you restart your web server?

And please don't top post.


I can't reboot the server, but I did restart the World Wide Web
Publishing Service. Is that the correct way to restart the server? The
last post seemed to indicate the php.ini file was reprocessed each time
php is called. Is that correct?


I seem to have solved the problem. My permissions were never set right
for the registry key that php uses to find the PHP.ini file. I changed
those permissions and it worked. Thanks for everyone's help.

Jack
Nov 29 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chris | last post by:
Can anybody help. I need to read a txt file backwords line by line. Can anybody help me do this. Thanks Chris
1
by: Dianna K | last post by:
I am opening, reading and extracting an Excel spreadsheet in .Net (VB). It seems to work fine, however, when I am finished and I open up Excel and try to open up the file a message pops up "File Now...
87
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
3
by: Do | last post by:
Hi, How do I read through the items that are statically set in a dropdownlistbox? Usually, I have my items in a dataset before I bind to a control, so I can read the data. But if they're set...
2
by: Sam anonymous | last post by:
This is what I have so far but if someone could show me how to read through the datareader once I can get the rest. Thank you. Private Sub lstCoursesOffered_SelectedIndexChanged(ByVal sender...
4
by: Amaryllis | last post by:
Hi, I am working on a Windows application that will read through an excel spreadsheet of unknown size and upload the information to a file on AS/400. I have installed the PIAs needed to connect...
24
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi everyone! I have a hidden input field in a form which I change in some occasions on the client using javascript, but when I use "view source" I can't see these changes reflected on the page!...
3
by: Liz | last post by:
I have a form with about 25-30 TextBoxes, ComboBoxes, etc; if the user does not make any changes to the form I don't want to post a "Cancel Changes?" dialog when they exit the form ... so this is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.