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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|