Web Hosting Talk







View Full Version : problem with php.ini file


matt2kjones
07-26-2002, 09:39 AM
ok i installed php to the following directory:

/usr/local/php

ok, so once i got php working, i made a file called info.php with this code :

<?php phpinfo(); ?>

ok everything is good so far, so i goto my browser, and type in the following :

http://www.thedigitaldream.co.uk/info.php and it comes up with the details

ok so at this point i still havent copied the php.ini file to where it should be.

so i read what it said, on the info.php page, and it said the location of the file is :

/usr/local/php/lib

so i then i typed this :

cd /usr/downloads/php-4.2.2

(the directory with the php.ini-dist file)

then i typed :

cp php.ini-dist /usr/local/php/lib/php.ini

ok so i thought that was right because thats where the file should be accourding to info.php

so i edited the php.ini file, and changed some settings to what i need them to be, but then, i realised that when i change the details, it doesn't do anything

and if i goto

http://www.thedigitaldream.co.uk/info.php i notice that the settings are as if they havent been touched

is there something i am doing wrong?

microsol
07-26-2002, 10:21 AM
Did you restart apache?

matt2kjones
07-26-2002, 02:15 PM
yes i have restarted apache, i have even restarted the whole server, but nothing

am i doing something wrong :(

clocker1996
07-27-2002, 06:56 AM
find / | grep php.ini

see if there is another php.ini

maybe your apache isn't using the php you think you installed

erapid
07-28-2002, 08:47 AM
Would you like to post compile's options you use

matt2kjones
07-28-2002, 09:35 AM
hi, i have sorted it out now, i just recompiled it, with the path to the php.ini file

and now it works

thanx :)