473,386 Members | 1,817 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,386 software developers and data experts.

php.ini errors?

Hi all.

I have a new PHP install. I've got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is

extension_dir C:\php5 C:\php5

and that's not what I set it to. Here's copy and paste from my php.ini
file:

; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\Program Files\PHP\ext"
Wow, I'm not sure what could be wrong. Could by php.ini file have
errors in it? how would I know? Is something else up? Bad environment
variable somewhere?

I really don't know where to start debugging this.

Thanks for any help you can provide!
Jun 2 '08 #1
11 1642
Mark Space wrote:
Hi all.

I have a new PHP install. I've got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is
Now I did it. :)

I moved my php.ini file to the root of the Apache install and restarted
Apache. Now phpinfo() won't do anything when I try to load it in a
browser. Oops.

The Apache logs show nothing special, just that I restarted. Any hints
on turning on some debugging for php? Could I check PHP independently
of Apache some how?

I'll check the manual tomorrow, I'm off to be for the night. Thanks for
any help you can give.
Jun 2 '08 #2
Mark Space wrote:
Mark Space wrote:
>Hi all.

I have a new PHP install. I've got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is

Now I did it. :)

I moved my php.ini file to the root of the Apache install and restarted
Apache. Now phpinfo() won't do anything when I try to load it in a
browser. Oops.

The Apache logs show nothing special, just that I restarted. Any hints
on turning on some debugging for php? Could I check PHP independently
of Apache some how?

I'll check the manual tomorrow, I'm off to be for the night. Thanks for
any help you can give.
Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you're using (it's near the top).

Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"
--
Rik Wasmus
Jun 2 '08 #3
Rik Wasmus wrote:
>I moved my php.ini file to the root of the Apache install and
restarted Apache. Now phpinfo() won't do anything when I try to load
it in a browser. Oops.

The Apache logs show nothing special, just that I restarted. Any
hints on turning on some debugging for php? Could I check PHP
independently of Apache some how?

I'll check the manual tomorrow, I'm off to be for the night. Thanks
for any help you can give.

Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you're using (it's near the top).
I'm pretty sure I have it in the right spot now. I didn't look closely
at the phpinfo() output before. Here it is after I renamed the php.ini
file and restarted the server.
System Windows NT HOMER 6.0 build 6000
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
That's the first bit. "Loaded Configuration File (none)" I think is the
operative part. If I try C:\Windows, I get the same result -- no
phpinfo().

I think my php.ini file is borked. Absent any way to debug it (logs?)
I'll have to resort to removing most of the config and adding bits back
until I find the problem.

Thanks for your help btw.

Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"
Good advice, I'll do that.
Jun 2 '08 #4
Mark Space wrote:
I think my php.ini file is borked. Absent any way to debug it (logs?)
I'll have to resort to removing most of the config and adding bits back
until I find the problem.
Well I just removed everything except "engine = on" from the php.ini
file. This will not be fun. There are no logs I can consult where it
will nicely tell me which initialization parameter it's tripping on?
Jun 2 '08 #5
Mark Space wrote:
Rik Wasmus wrote:
>>I moved my php.ini file to the root of the Apache install and
restarted Apache. Now phpinfo() won't do anything when I try to load
it in a browser. Oops.

The Apache logs show nothing special, just that I restarted. Any
hints on turning on some debugging for php? Could I check PHP
independently of Apache some how?

I'll check the manual tomorrow, I'm off to be for the night. Thanks
for any help you can give.

Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you're using (it's near the top).

I'm pretty sure I have it in the right spot now. I didn't look closely
at the phpinfo() output before. Here it is after I renamed the php.ini
file and restarted the server.
System Windows NT HOMER 6.0 build 6000
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
That's the first bit. "Loaded Configuration File (none)" I think is the
operative part. If I try C:\Windows, I get the same result -- no
phpinfo().

I think my php.ini file is borked. Absent any way to debug it (logs?)
I'll have to resort to removing most of the config and adding bits back
until I find the problem.

Thanks for your help btw.

>Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"

Good advice, I'll do that.
What happens if you try to execute php from the command line?

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

Jun 2 '08 #6
Jerry Stuckle wrote:
>
What happens if you try to execute php from the command line?
It hangs waiting for input. :)
Jun 2 '08 #7
Mark Space wrote:
Jerry Stuckle wrote:
>>
What happens if you try to execute php from the command line?

It hangs waiting for input. :)

I thought immediately after I sent this that you might actually be
expecting me to run a script or something.

I'm not very conversant with PHP from the command line, but I managed to
type in <?php phpinfo()?correctly and get it to spam some text at me.

Not HTML though... odd... text looks like correct phpinfo() output however.
Jun 2 '08 #8
On Fri, 25 Apr 2008 11:10:57 -0700, Mark Space wrote:
Jerry Stuckle wrote:
>>
What happens if you try to execute php from the command line?

It hangs waiting for input. :)
What happens when you type "<?php phpinfo(); ?>" at it?

--
Cunningham's Second Law:
It's always more complex than you expect, even when you take
Cunningham's Second Law into account.
Jun 2 '08 #9
Mark Space wrote:
Mark Space wrote:
>Jerry Stuckle wrote:
>>>
What happens if you try to execute php from the command line?

It hangs waiting for input. :)


I thought immediately after I sent this that you might actually be
expecting me to run a script or something.

I'm not very conversant with PHP from the command line, but I managed to
type in <?php phpinfo()?correctly and get it to spam some text at me.

Not HTML though... odd... text looks like correct phpinfo() output however.
I meant run a script, but what you did is fine. Is it using the same
php.ini file that you're using when running under the webserver
(c:/windows/php.ini)?

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

Jun 2 '08 #10
Jerry Stuckle wrote:
I meant run a script, but what you did is fine. Is it using the same
php.ini file that you're using when running under the webserver
(c:/windows/php.ini)?
Divide and conquer finally yielded one line in the php.ini file that
didn't work. I'm not sure if I need it (actually, I'm also somewhat
embarrassed to admit that I had missed this issue), but we'll see how it
goes.

Thanks for your help all, you did teach me some new tricks.

Jun 2 '08 #11
On Fri, 25 Apr 2008 12:38:35 -0700, Mark Space
<ma*******@sbc.global.netwrote in
<6r*****************@nlpi069.nbdc.sbc.com>:
>Jerry Stuckle wrote:
>I meant run a script, but what you did is fine. Is it using the same
php.ini file that you're using when running under the webserver
(c:/windows/php.ini)?

Divide and conquer finally yielded one line in the php.ini file that
didn't work. I'm not sure if I need it (actually, I'm also somewhat
embarrassed to admit that I had missed this issue), but we'll see how it
goes.

Thanks for your help all, you did teach me some new tricks.
What was the line that was causing the problem? Posting that and
maybe getting some information about it will help others who have the
same problem and search the archives at Google Groups.
--
Charles Calvert | Software Design/Development
Celtic Wolf, Inc. | Project Management
http://www.celticwolf.com/ | Technical Writing
(703) 580-0210 | Research
Jun 2 '08 #12

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

Similar topics

11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
2
by: Trev | last post by:
SQL Server 2000 BE, Access 2002 FE. I want to write a stored procedure, that will among other things log errors to a table, I want to be able to report a summary of work done and errors to the...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: doli | last post by:
Hi, I have the following piece of code which iterates through the potential errors: i =0 For Each error_item in myConn.Errors DTSPackageLog.WriteStringToLog myConn.Errors(i).Description...
4
by: johnb41 | last post by:
I have a form with a bunch of textboxes. Each text box gets validated with the ErrorProvider. I want the form to process something ONLY when all the textboxes are valid. I found a solution,...
2
by: Samuel R. Neff | last post by:
Within the past few weeks we've been getting a lot of compiler errors in two classes when no errors actually exist. The error always reports as Name '_stepResizeRelocator' is not declared. ...
24
by: pat | last post by:
Hi everyone, I've got an exam in c++ in two days and one of the past questions is as follows. Identify 6 syntax and 2 possible runtime errors in this code: class demo {
8
by: ImOk | last post by:
I just have a question about trapping and retrying errors especially file locking or database locks or duplicate key errors. Is there a way after you trap an error to retry the same line that...
0
by: clemrock | last post by:
Help w/ errors.add_to_base between controller and model Hello, I'm having trouble in routing some errors between model and controller. The errors produced in the controller...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.