jmr

Member
Jul 4, 2002
20
0
151
Hi everyone.

Got a problem in that when i run a phpinfo on my server it comes up with the php.ini file being located at

/usr/local/Zend/etc/php.ini

However this location does not exist.

So a search on the server for the php.ini file shows two files

/etc/php.ini

and

/usr/local/lib/php.ini

so what do you think.....am i going to have to recompile php?
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:4899b35022][i:4899b35022]Originally posted by jmr[/i:4899b35022]

Got a problem in that when i run a phpinfo on my server it comes up with the php.ini file being located at

/usr/local/Zend/etc/php.ini

However this location does not exist.

So a search on the server for the php.ini file shows two files

/etc/php.ini

and

/usr/local/lib/php.ini :

so what do you think.....am i going to have to recompile php?

[/quote:4899b35022]
You could try to symlink /usr/local/Zend/etc/php.ini to /usr/local/lib/php.ini

ln -s /usr/local/lib/php.ini /usr/local/Zend/etc/php.ini
 

jmr

Member
Jul 4, 2002
20
0
151
would that work

how would that work as the zend directory does not actually exist....so where is php compiled to?
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:3613407427][i:3613407427]Originally posted by jmr[/i:3613407427]

how would that work as the zend directory does not actually exist....so where is php compiled to?[/quote:3613407427]
Php is obviously functional on your server or else you wouldn't be able to see the phpinfo.

The location of php.ini has little to do with the php install directory. So you can try:

mkdir -p /usr/local/Zend/etc

ln -s /usr/local/lib/php.ini /usr/local/Zend/etc/php.ini

All you're doing here is to show php the path to the ini file.

If that doesn't work let us know.