By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

php.ini set up problem

P: n/a
Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike
Mar 9 '08 #1
Share this Question
Share on Google+
15 Replies


P: n/a
mike wrote:
Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike
Still trying, Mike?

As I told you before - PHP has default values it uses if it can't find a
php.ini file. The easiest way for right now is to place a php.ini file
with the values you want in your c:\windows directory, then restart IIS.

If you're not going to follow suggestions, why do you even ask?

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

Mar 9 '08 #2

P: n/a
Jerry Stuckle wrote:
mike wrote:
>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS
server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike

Still trying, Mike?

As I told you before - PHP has default values it uses if it can't find a
php.ini file. The easiest way for right now is to place a php.ini file
with the values you want in your c:\windows directory, then restart IIS.

If you're not going to follow suggestions, why do you even ask?
Sorry your have such a bad day jerry, wife not giving you any again?

If your not going to read the posts why answer?

Mar 9 '08 #3

P: n/a
mike wrote:
Jerry Stuckle wrote:
>mike wrote:
>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start and
stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike

Still trying, Mike?

As I told you before - PHP has default values it uses if it can't find
a php.ini file. The easiest way for right now is to place a php.ini
file with the values you want in your c:\windows directory, then
restart IIS.

If you're not going to follow suggestions, why do you even ask?

Sorry your have such a bad day jerry, wife not giving you any again?

If your not going to read the posts why answer?

I did read your posts. And I answered. But you aren't taking the advice.

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

Mar 9 '08 #4

P: n/a
Hi,

It does sound like the installation was corrupted somehow. Are you
able to reinstall PHP using the package at php.net/downloads.php?

Regards,

John Peters

On Mar 8, 10:38 pm, mike <spammesi...@junkmail.comwrote:
Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike
Mar 9 '08 #5

P: n/a
petersprc wrote:
Hi,

It does sound like the installation was corrupted somehow. Are you
able to reinstall PHP using the package at php.net/downloads.php?

Regards,

John Peters

On Mar 8, 10:38 pm, mike <spammesi...@junkmail.comwrote:
>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks. I can not
run even simple scripts like phpinfo() or echoing. However if I just
change the name of the file to something like xphp.ini then php will
start working again.

Q1: where does php get its initial ini data if not from php.ini

Q2: why does php break when I copy the php.ini file to the directory
requested in its path.

Thanks
Mike

Hi John,

Thanks, thats the site where I got the original binaries from,
"php-5.2.5-win32-installer.msi". The install went fairly smoothly.
I could try to reinstall. Are you using php on a windows system?
If so did you place the php.ini file in the c:\windows directory?

Thanks
Mike
Mar 9 '08 #6

P: n/a
On 09/03/2008 in message <LH*****************@nlpi061.nbdc.sbc.commike
wrote:
>If so did you place the php.ini file in the c:\windows directory?
My ini file is:
C:\Program Files\PHP\php.ini

During various installs on XP the ini file has alwasy ended up in the php
drectory.

There is also an entry in my httpd.conf file:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

--
Jeff Gaines Damerham Hampshire UK
The facts, although interesting, are irrelevant
Mar 9 '08 #7

P: n/a
On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:
>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks.
What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.

--
Regards, Paul Herber, Sandrila Ltd.
http://www.sdl.sandrila.co.uk/ SDL/MSC/TTCN/URN/UML2 for Visio
Mar 9 '08 #8

P: n/a
Jeff Gaines wrote:
On 09/03/2008 in message <LH*****************@nlpi061.nbdc.sbc.commike
wrote:
>If so did you place the php.ini file in the c:\windows directory?


My ini file is:
C:\Program Files\PHP\php.ini

During various installs on XP the ini file has alwasy ended up in the
php drectory.

There is also an entry in my httpd.conf file:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
I did indeed. I restarted the server and php stopped working. So I
uninstalled php, reinstalled but put the installation in C:/PHP instead
of C:\Program Files\PHP, put the php.ini file in C:\windows, restarted
the server. Now when I do a phpinfo() it is reading the file kind of.
phpinfo() shows that it is finding the file. It shows the proper
upload_tmp_dir. I can change some things like upload_max_filesize in the
php.ini file that get picked up after restarting the server. However,
some things are not getting picked up like extension_dir is not getting
changed from the php.ini

One weird thing happened on the php reinstall. I made a vertual
directory for my php scripts under wwwroot. For some reason the
reinstall left a copy of php.exe in that directory. I used the
automatic windows installer file. Maybe I should do this manually.

looks like you are using a apache server. I do not see a httpd.conf
file in my PHP directory. Is that file specific to the apache install?
Where is the file located.

Thanks
Mike
Mar 9 '08 #9

P: n/a
On 09/03/2008 in message <X4*****************@nlpi061.nbdc.sbc.commike
wrote:
>looks like you are using a apache server. I do not see a httpd.conf
file in my PHP directory. Is that file specific to the apache install?
Where is the file located.
Yes I am using Apache - it is in:
C:\Program Files\Apache Software Foundation\Apache2.2\bin

and httpd.conf is in:
C:\Program Files\Apache Software Foundation\Apache2.2\conf

--
Jeff Gaines Damerham Hampshire UK
Tell me what you need, and I'll tell you how to get along without it.
Mar 9 '08 #10

P: n/a
Paul Herber wrote:
On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:

>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only php.ini
file on the machine is in C:\Program Files\PHP. If I change entries in
that php.ini file and run phpinfo() it appears that the values are not
getting updated. This is still true after I start and stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks.


What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.
Thanks

I put the standard file that came with the install there. So it should
not have been corrupted but who knows. So I agree it looks like it was
going through its list of places to find the php.ini file and found
somthing in the windows directory. I seem to have gotten PHP to now read
the php.ini file (atleast partially) in the windows directory by doing a
php uninstall and a reinstall of php. This time I put it in a C:\PHP
directory as opposed to the installer default c:\Program Files
directory. Seems like other people have it working in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike
Mar 9 '08 #11

P: n/a
mike wrote:
Paul Herber wrote:
>On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:

>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start and
stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks.

What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.
Thanks

I put the standard file that came with the install there. So it should
not have been corrupted but who knows. So I agree it looks like it was
going through its list of places to find the php.ini file and found
somthing in the windows directory. I seem to have gotten PHP to now read
the php.ini file (atleast partially) in the windows directory by doing a
php uninstall and a reinstall of php. This time I put it in a C:\PHP
directory as opposed to the installer default c:\Program Files
directory. Seems like other people have it working in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike
Now I remember:

The remote procedure call failed

Mike
Mar 9 '08 #12

P: n/a
mike wrote:
Paul Herber wrote:
>On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:

>>Hi,

I am very new to PHP I am having php.ini problems. I am working in XP
with IIS and have php installed as an ISAPI. I am trying to change
values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start and
stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is c:\windows,
but there is no php.ini file in that directory. If I copy the php.ini
file to c:\windows and restart the server, then php breaks.

What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.
Thanks

I put the standard file that came with the install there. So it should
not have been corrupted but who knows. So I agree it looks like it was
going through its list of places to find the php.ini file and found
somthing in the windows directory. I seem to have gotten PHP to now read
the php.ini file (atleast partially) in the windows directory by doing a
php uninstall and a reinstall of php. This time I put it in a C:\PHP
directory as opposed to the installer default c:\Program Files
directory. Seems like other people have it working in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike
I got the new installation to break. The old installation was in the
c:\Program Files\PHP\ directory. When I placed the php.ini file in the
c:\windows directory PHP broke. I was getting an error message that
said "The remote procedure call failed "

When I reinstalled I installed to the c:\PHP\ directory. I placed the
php.ini file back in C:\windows and all was well. Then I noticed using
phpinfo() that the extension_dir was set to C:\Program Files\PHP, which
was now a none existant directory. So I changed the value in php.ini to
point to C:\PHP, the new directory. PHP immedialy choked again giving
the same "The remote procedure call failed " errors. When I changed the
extension_dir back to C:\Program Files\PHP, al was well again.

Im not sure what is going on but I think something is wrong with the
extension directory. If php makes a call to an existing extension
directory it dies. However if the directory does not exist, then it lives.

Just a guess anyway. However, the scripts I have written are so simple
I am not sure why php would look in the extension directory anyway.
Mike
Mar 10 '08 #13

P: n/a
mike wrote:
mike wrote:
>Paul Herber wrote:
>>On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:
Hi,

I am very new to PHP I am having php.ini problems. I am working in
XP with IIS and have php installed as an ISAPI. I am trying to
change values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start and
stop the IIS server.

Also the phpinfo() reports my path to the php.ini file is
c:\windows, but there is no php.ini file in that directory. If I
copy the php.ini file to c:\windows and restart the server, then php
breaks.

What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.
Thanks

I put the standard file that came with the install there. So it should
not have been corrupted but who knows. So I agree it looks like it was
going through its list of places to find the php.ini file and found
somthing in the windows directory. I seem to have gotten PHP to now
read the php.ini file (atleast partially) in the windows directory by
doing a php uninstall and a reinstall of php. This time I put it in a
C:\PHP directory as opposed to the installer default c:\Program Files
directory. Seems like other people have it working in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike

I got the new installation to break. The old installation was in the
c:\Program Files\PHP\ directory. When I placed the php.ini file in the
c:\windows directory PHP broke. I was getting an error message that
said "The remote procedure call failed "

When I reinstalled I installed to the c:\PHP\ directory. I placed the
php.ini file back in C:\windows and all was well. Then I noticed using
phpinfo() that the extension_dir was set to C:\Program Files\PHP, which
was now a none existant directory. So I changed the value in php.ini to
point to C:\PHP, the new directory. PHP immedialy choked again giving
the same "The remote procedure call failed " errors. When I changed the
extension_dir back to C:\Program Files\PHP, al was well again.

Im not sure what is going on but I think something is wrong with the
extension directory. If php makes a call to an existing extension
directory it dies. However if the directory does not exist, then it lives.

Just a guess anyway. However, the scripts I have written are so simple
I am not sure why php would look in the extension directory anyway.
Mike
Well, to start with, which extensions are you attempting to load?

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

Mar 10 '08 #14

P: n/a
Jerry Stuckle wrote:
mike wrote:
>mike wrote:
>>Paul Herber wrote:

On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:
Hi,
>
I am very new to PHP I am having php.ini problems. I am working in
XP with IIS and have php installed as an ISAPI. I am trying to
change values in my php environment like 'upload_tmp_dir',
'upload_max_filesize'. I have scanned my computer and the only
php.ini file on the machine is in C:\Program Files\PHP. If I change
entries in that php.ini file and run phpinfo() it appears that the
values are not getting updated. This is still true after I start
and stop the IIS server.
>
Also the phpinfo() reports my path to the php.ini file is
c:\windows, but there is no php.ini file in that directory. If I
copy the php.ini file to c:\windows and restart the server, then
php breaks.


What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.

Thanks

I put the standard file that came with the install there. So it
should not have been corrupted but who knows. So I agree it looks
like it was going through its list of places to find the php.ini file
and found somthing in the windows directory. I seem to have gotten
PHP to now read the php.ini file (atleast partially) in the windows
directory by doing a php uninstall and a reinstall of php. This time
I put it in a C:\PHP directory as opposed to the installer default
c:\Program Files directory. Seems like other people have it working
in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike


I got the new installation to break. The old installation was in the
c:\Program Files\PHP\ directory. When I placed the php.ini file in the
c:\windows directory PHP broke. I was getting an error message that
said "The remote procedure call failed "

When I reinstalled I installed to the c:\PHP\ directory. I placed the
php.ini file back in C:\windows and all was well. Then I noticed using
phpinfo() that the extension_dir was set to C:\Program Files\PHP,
which was now a none existant directory. So I changed the value in
php.ini to point to C:\PHP, the new directory. PHP immedialy choked
again giving the same "The remote procedure call failed " errors. When
I changed the extension_dir back to C:\Program Files\PHP, al was well
again.

Im not sure what is going on but I think something is wrong with the
extension directory. If php makes a call to an existing extension
directory it dies. However if the directory does not exist, then it
lives.

Just a guess anyway. However, the scripts I have written are so
simple I am not sure why php would look in the extension directory
anyway.
Mike

Well, to start with, which extensions are you attempting to load?
Jerry,

When I installed php the installer gave me the option to load a list of
extensions, I just loaded everything. So my C:\PHP\ext directory is
packed with .dll files. I do not know exactly what php uses, but right
now I probably do not need any of them. All I know is that if I change
the extension_dir from c:\Program Files\PHP\ext (a non-existant
directory) to C:\PHP\ext (an exsisting one) simple PHP scripts die with
"The remote procedure call failed " errors.

I also noticed that the include_path was also wrong so I changed it to
..;c\PHP\PEAR ( again I am not any were near to using PEAR stuff yet).
This change did not seem to break php.

Mike
Mar 10 '08 #15

P: n/a
mike wrote:
Jerry Stuckle wrote:
>mike wrote:
>>mike wrote:

Paul Herber wrote:

On Sun, 09 Mar 2008 02:38:08 GMT, mike <sp*********@junkmail.com>
wrote:
>
>
>Hi,
>>
>I am very new to PHP I am having php.ini problems. I am working in
>XP with IIS and have php installed as an ISAPI. I am trying to
>change values in my php environment like 'upload_tmp_dir',
>'upload_max_filesize'. I have scanned my computer and the only
>php.ini file on the machine is in C:\Program Files\PHP. If I
>change entries in that php.ini file and run phpinfo() it appears
>that the values are not getting updated. This is still true after
>I start and stop the IIS server.
>>
>Also the phpinfo() reports my path to the php.ini file is
>c:\windows, but there is no php.ini file in that directory. If I
>copy the php.ini file to c:\windows and restart the server, then
>php breaks.
>
>
>
>
What do you mean by 'php breaks'? What does/doesn't it do?
The fact that putting the php.ini file in c:/windows affects operation
certainly proves that that is the correct place for it. Put a standard
php.ini file here then sort out problems from there.
>
>
>
Thanks

I put the standard file that came with the install there. So it
should not have been corrupted but who knows. So I agree it looks
like it was going through its list of places to find the php.ini
file and found somthing in the windows directory. I seem to have
gotten PHP to now read the php.ini file (atleast partially) in the
windows directory by doing a php uninstall and a reinstall of php.
This time I put it in a C:\PHP directory as opposed to the installer
default c:\Program Files directory. Seems like other people have it
working in Program Files.
When it was not workin I would get a short message in my browser that
said somethin like it could not make the reference call, no error
number. Sorry, I can not remember the exact message.

Thanks
Mike
I got the new installation to break. The old installation was in the
c:\Program Files\PHP\ directory. When I placed the php.ini file in
the c:\windows directory PHP broke. I was getting an error message
that said "The remote procedure call failed "

When I reinstalled I installed to the c:\PHP\ directory. I placed the
php.ini file back in C:\windows and all was well. Then I noticed
using phpinfo() that the extension_dir was set to C:\Program
Files\PHP, which was now a none existant directory. So I changed the
value in php.ini to point to C:\PHP, the new directory. PHP immedialy
choked again giving the same "The remote procedure call failed "
errors. When I changed the extension_dir back to C:\Program
Files\PHP, al was well again.

Im not sure what is going on but I think something is wrong with the
extension directory. If php makes a call to an existing extension
directory it dies. However if the directory does not exist, then it
lives.

Just a guess anyway. However, the scripts I have written are so
simple I am not sure why php would look in the extension directory
anyway.
Mike

Well, to start with, which extensions are you attempting to load?
Jerry,

When I installed php the installer gave me the option to load a list of
extensions, I just loaded everything. So my C:\PHP\ext directory is
packed with .dll files. I do not know exactly what php uses, but right
now I probably do not need any of them. All I know is that if I change
the extension_dir from c:\Program Files\PHP\ext (a non-existant
directory) to C:\PHP\ext (an exsisting one) simple PHP scripts die with
"The remote procedure call failed " errors.

I also noticed that the include_path was also wrong so I changed it to
.;c\PHP\PEAR ( again I am not any were near to using PEAR stuff yet).
This change did not seem to break php.

Mike
First thing is to get rid of all of the extensions. You can do that in
your php.ini file. Then once you get it working, add in only the ones
you need.

Some of the extensions require external files, i.e. MySQL requires the
MySQL client libs. That's probably why your installation didn't work
when you moved your php.ini file.

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

Mar 10 '08 #16

This discussion thread is closed

Replies have been disabled for this discussion.