Page 1 of 1

php.ini config

Posted: Mon Jun 28, 2004 4:03 am
by kennethckk
Hi all,

I've just installed the phpNuke on my Apache/MySQL/php platform that runs on Win XP prof. At this point, everything seems to be okey except sending out mail. It requies the change of parameter for php.ini config file. Unfortunately, I couldnt make any changes with this php.ini as I believe php still using the default one(precompiled config), I guess!

I already put both php.ini & php4ts.dll under c:/Windows directory. I even tried to put this php.ini under Apache root directory but this doesnt help at all. To my best understanding, these two places will be searched by php during start up to see if any changes in the config file.

Could someone help to advise why the php.ini cant be recognized by php under Windows directory? If not this place, which dirctory should I place to ?

Thanks in advance.

Rgds/Kennethckk

Posted: Mon Jun 28, 2004 4:58 am
by feyd
did you restart the apache service?

Posted: Mon Jun 28, 2004 5:26 am
by kennethckk
feyd wrote:did you restart the apache service?

Hi Feyd,

Yes, I did. Fyi, I even removed the php.ini out from Windows/Apahe directories. The phpNuke is still working. That explains the php.ini config file seems to be ignored by Win/Apache ( I cant see any changes in values through the use of phpinfo() test script no matter what I made changes with php.ini config file ).

Any idea about 'PHPRC' as I got to know from one of the web site that the initial cofig was loaded from here! ? That site doesnt tell the details of it.

Cheers/Kennethckk

Posted: Mon Jun 28, 2004 11:57 am
by feyd
you may need to look at your system's PATH variable and see if php.ini is being loaded from somewhere other than the windows one. To get the path info, open an command prompt, type "path" and hit enter. Directories are seperated by semicolons. I'd bet that the php.ini isn't absolutely needed, as PHP knows the defaults of all the values to begin with.