470,867 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,867 developers. It's quick & easy.

Can't find php.ini!

Hi,
I have a problem with my linux apache+php installation. I don't know
much about linux and it appears a real nightmare for me every time I
need to change anything.
When I look at the file generated by phpinfo() function it says
php.ini is in /usr/local/lib folder, but it isn't there!
If I look for the file with the linux find command, it finds only 3
files on the whole disk:
(find ./ -name *php.ini or find ./ -name php.ini*)
-php.ini-recommended
-php.ini-dist
I need to do some changes in the PHP settings file. What can I do.
Thanks for any help.
Michal
Jun 2 '08 #1
3 3294
On Mon, 05 May 2008 15:07:06 +0200, <mi********@o2.plwrote:
Hi,
I have a problem with my linux apache+php installation. I don't know
much about linux and it appears a real nightmare for me every time I
need to change anything.
When I look at the file generated by phpinfo() function it says
php.ini is in /usr/local/lib folder, but it isn't there!
If I look for the file with the linux find command, it finds only 3
files on the whole disk:
(find ./ -name *php.ini or find ./ -name php.ini*)
-php.ini-recommended
-php.ini-dist
I need to do some changes in the PHP settings file. What can I do.
Theoretically, AFAIK it's possible to have NO php.ini (everything to the
default). What if you just create the file & add some non-default settings?
--
Rik Wasmus
Jun 2 '08 #2
On May 5, 9:07 am, michalk...@o2.pl wrote:
Hi,
I have a problem with my linux apache+php installation. I don't know
much about linux and it appears a real nightmare for me every time I
need to change anything.
When I look at the file generated by phpinfo() function it says
php.ini is in /usr/local/lib folder, but it isn't there!
If I look for the file with the linux find command, it finds only 3
files on the whole disk:
(find ./ -name *php.ini or find ./ -name php.ini*)
-php.ini-recommended
-php.ini-dist
I need to do some changes in the PHP settings file. What can I do.
Thanks for any help.
Michal
Copy php.ini-recommended into /usr/local/lib/php.ini, make any changes
you want, then restart Apache.
Jun 2 '08 #3
mi********@o2.pl a écrit :
(find ./ -name *php.ini or find ./ -name php.ini*)
Depends on your system, but you may use (for instance) locate (and
updatedb to update the location db) to find any file. It includes
wildcards, so "locate php.ini" is your friend.

As for the answer, just like the other said, you may just use all
default values and have no php.ini. So use the defaults ones copied as
php.ini and then do your changes.

--
Guillaume
Jun 2 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Daniel Bello Urizarri | last post: by
2 posts views Thread by yasin | last post: by
1 post views Thread by Eric | last post: by
1 post views Thread by niraj | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.