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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.