473,400 Members | 2,145 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,400 software developers and data experts.

Browser and CMD line report different php.ini locations

Using IIS 5, PHP 5 on Windows Server 2000.

Running
php.exe -r "phpinfo();"
from the command line shows
Configuration File (php.ini) Path => C:\php\php.ini

Running phpinfo() from a browser through IIS shows
Configuration File (php.ini) Path C:\WINNT

There is no php.ini in the C:\WINNT directory.

This still occurs after restarting IIS with

net stop iisadmin
net start w3svc

What needs to be changed so php.ini is picked up by IIS?

Scott
Jul 27 '05 #1
1 1943

"Scott F" <sdfATexpertuneDOTcom> wrote in message
news:Xn*****************************@216.168.3.44. ..
Using IIS 5, PHP 5 on Windows Server 2000.

Running
php.exe -r "phpinfo();"
from the command line shows
Configuration File (php.ini) Path => C:\php\php.ini

Running phpinfo() from a browser through IIS shows
Configuration File (php.ini) Path C:\WINNT

There is no php.ini in the C:\WINNT directory.

This still occurs after restarting IIS with

net stop iisadmin
net start w3svc

What needs to be changed so php.ini is picked up by IIS?

Scott


I had the same thing happen when I started a local copy of php/Apache. I
resolved with a "what the heck" and copied the php.ini to winnt so it would
find it in either place. Hack? Yes. Works? yes.

Shelly
Jul 27 '05 #2

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

Similar topics

0
by: Phil | last post by:
I have a fairly large report that serves many purposes. First: it is informational in nature, Second: it allows input from users, Third: it has drill down reporting ability on certain fields. ...
4
by: lkrubner | last post by:
I'd like to write a PHP script to be used from the command line on a Unix machine. I'd like for the script to put together a string, turn it into a web page, print it, then return control the...
1
by: Scott Sabo | last post by:
Hello- I recently modified a database at work to be able to track employee stats in two locations. Formerly, the employees were all in Reno, Nv that were listed in the database, now I have added...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
1
by: smcdonald | last post by:
I am trying to avoid linking external tables using DSN ODBC's on clients. I have 2 foxpro tables in 2 different locations that I need to pull data from. I need to code the connections to them using...
1
by: ljungers | last post by:
I have a Report that uses a master table and has been working ok. Now I need to add some data from a second table called locations. The master table has a column named loc_code, and the locations...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
35
by: JessicaZ | last post by:
Hi everyone! I'm new here and have a question regarding Leban's report to pdf tool. I am working on a database where we are using this code to send a report out to pdf(duh) BUT what I need to do is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.