Jump to content

Where is my php.ini?


Recommended Posts

I have installed PHP Version 5.2.4 under Linux Open SUSE 10.2, with Apache 2.2.6, with the following command:

 

'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-gettext' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-mcrypt' '--enable-magic-quotes' '--enable-discard-path' '--enable-sockets' '--enable-track-vars' '--enable-gd-native-ttf' '--with-ttf' '--with-xmlrpc' '--with-zlib'

 

Everything is working fine. In phpinfo(), I see the location of php.ini here:

 

Configuration File (php.ini) Path: /usr/local/php/lib

 

But there is not any .ini file there. I tryed to copy the php.ini-recommend there and renamed it to php.ini. After that, PHP has been disabled. Stopping and starting Apache doesn't improve anything. I removed my php.ini from /usr/local/php/lib, and restart Apache. Again everything works fine.

Now can soembody tell me, where is the php.ini file? How can I change values in it?

Link to comment
https://forums.phpfreaks.com/topic/76509-where-is-my-phpini/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.