Can't find php.ini!

This is a discussion on Can't find php.ini! within the PHP Language forums, part of the PHP Programming Forums category; Hi, I have a problem with my linux apache+php installation. I don't know much about linux and it ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2008
michalkuls@o2.pl
 
Posts: n/a
Default 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
Reply With Quote
  #2 (permalink)  
Old 05-05-2008
Rik Wasmus
 
Posts: n/a
Default Re: Can't find php.ini!

On Mon, 05 May 2008 15:07:06 +0200, <michalkuls@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.


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
Reply With Quote
  #3 (permalink)  
Old 05-05-2008
ZeldorBlat
 
Posts: n/a
Default Re: Can't find php.ini!

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.
Reply With Quote
  #4 (permalink)  
Old 05-05-2008
Guillaume
 
Posts: n/a
Default Re: Can't find php.ini!

michalkuls@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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0