
|
View Full Version : problem with php 4.2.3
matt2kjones 11-25-2002, 10:40 AM ok its a redhat server (7.3)
i have the php.ini config file in the folder :
/usr/local/php4/config/php.ini
im installing php in the folder
/usr/local/php4/
now, i run this configure command :
./configure --with-config-file-path=/usr/local/php4/config/php.ini --with-mysql --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local/php4/
now, when php installs, it completly ignores what i have set in my config file (php.ini)
now when i run this :
<?php phpinfo(); ?>
it gives the correct location to the php.ini file (which was there during compile)
but it doesn't do what its told, and ignores what i have set in the config file.
for example, max upload is default set to 2MB, if i set it to 10MB in the config file and compile php with the above ./configure it still sets it to 2MB
in the config file there is no ; before what i set so it shouldn't be ignored.
can anyone share some light on this
i really need to have php use my settings not the default.
Thanx
solyalex 11-25-2002, 10:48 AM see if it use the /etc/php.ini
and try to restart apache if sooo
matt2kjones 11-25-2002, 10:51 AM look : http://www.thedigitaldream.co.uk/server_info.php
is using that php.ini file, it says.
i stopped apache, installed php, and started apache, so thats not the problem
it has read permissions to the file
and the location is 100% correct
sasha 11-25-2002, 11:38 AM So what you saying is that you can edit
/usr/local/php4/config/php.ini
then restart apache, and changes you made do not show uo in http://www.thedigitaldream.co.uk/server_info.php
??
Oddness. Try changing some other vars in php.ini and see if those changes show up.
matt2kjones 11-25-2002, 11:43 AM yep thats exactly what i mean
have tried editing loads of things, and no luck :(
proof that the location of the file is correct :
[root@srv1 root]# cd /usr/local/php4/config
[root@srv1 config]# dir
php.ini
[root@srv1 config]#
could this be a possible bug with php??? or am i doing something wrong here.
i have restarted apache endlessly and nothing
tapster 11-25-2002, 12:01 PM have you tried editing the /etc/php.ini file to see if it's still picking that up for some reason? May be finding that in the path first
matt2kjones 11-25-2002, 12:07 PM nope, there ain't even a php.ini file there
i placed one there though, with my settings
restarted apache, and again, nothing
sasha 11-25-2002, 12:08 PM Hmm, his phpinfo is saying: /usr/local/php4/config/php.ini for config file, which is what he wants.
Just for fun, move that php.ini away, and replace it with one that came with php, I think it is php.ini.dist or simmilar. Then try editing only one line in that new php.ini (max upload size), and see if anything is different.
SilenceGold 11-25-2002, 12:13 PM find / | grep php.ini
matt2kjones 11-25-2002, 12:35 PM ok this is what i have just tried
completly removing php
now reinstalling it back to the same place it was before, but this time, telling it to use the config file placed in /usr/local/lib/php.ini
the config file in there i made like this
cp php.ini-dist /usr/local/lib/php.ini
i edited that value, and changed the max upload from 2 to 8
restarted apache
and again, nothing.
so now the new location of php is in /usr/local/php4/ and the config file is in /usr/local/lib/php.ini
the new install of php looks for /usr/local/lib/php.ini
but still ignores anything i type in there
what could be causing this.
tapster 11-25-2002, 12:40 PM the browser isn't caching the php_info page is it :blush:
try [ctrl] + F5 to force a reload...
sasha 11-25-2002, 12:43 PM 1. php doesn't like you.
or
2. http://www.thedigitaldream.co.uk/server_info.php is not on the same server as the php you are installing
3. you close php.ini after editing, instead save + close
4. the most probable one. I have no clue.
matt2kjones 11-25-2002, 01:03 PM i am actually working from the server
it isn't cached as if i recompile it to a new location, it says the new location on the server_info.php page
the file is saved
as if i open it i see the changes
i have one server, so im deffiently working with the right one
so i think php just doesn't like me
what could be doing this :/
wakkow 11-25-2002, 01:28 PM When you say you removed php completely, does that mean removing the src and re-untarring it? I had this problem, and after searching around, I found that if I just untarred it to a new directory (that's never been ./configure'd before) it works fine.. Note, that make clean doesn't seem to fix this.. It might not work for you, but it did for me.
matt2kjones 11-25-2002, 04:46 PM hi thanx, will try putting it on folder /php instead of /php4
matt2kjones 11-26-2002, 04:23 PM ok tried installing to new directory and still does the same.
could this be a bug with redhat 7.3 and php 4.2.3???
or is it workling for other people???
this driving me crazy as i really really need to change the setup for php
does anyone have a clue what this could be?
wakkow 11-26-2002, 04:32 PM One other thing I noticed.. You said at first that your configure had this:
--with-config-file-path=/usr/local/php4/config/php.ini
It's looking for a directory, not a file.. So try it like this:
--with-config-file-path=/usr/local/php4/config
[edit]or try creating a 'php.ini' directory and put the file in there. :)
matt2kjones 11-26-2002, 06:37 PM i recompiled php with the --with-config-file-path pointing to a directory not a file
IT WORKED!
i just have to tell you how much a love you right now!!!!!!
Thanx everyone for the help
Thanx so much :)
Matt
|