LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where is php.ini? (https://www.linuxquestions.org/questions/linux-software-2/where-is-php-ini-101828/)

Penguin_5333 10-08-2003 06:39 PM

Where is php.ini?
 
I just installed mandrake 9.1 and I had it install apache with php. Now i need to config my php.ini file and i can't find it. Does anyone know where it's at?

I've tried doing a search but my search locks up and can't find anything.

if i run phpinfo() it says it should be in /etc but i can't seem to find it.

mossy 10-08-2003 06:50 PM

find / -name "*php.ini*"

should return any locations with this file in it.

mikeshn 10-08-2003 06:52 PM

locate php.ini


Location: /etc/php.ini

Penguin_5333 10-09-2003 03:13 PM

I've looked in /etc and i can't find php.ini its not in there.

if i do find / -name "*php.ini*" it doesn't return anything.

i had mandrake install apache and php for me, is that why i can't find it? is this file stored under another name?

thanks

mossy 10-09-2003 06:24 PM

root]# find / -name "*php.ini*"
/etc/php.ini

kir4n 05-05-2012 09:08 AM

try this /etc/php5/apache2/php.ini (or what ever version you are using)
on the second thought check for "Loaded Configuration File" in phpinfo()

brianL 05-06-2012 10:10 AM

kir4n
Look at the dates on the posts before yours. Nearly 9 years old.

kir4n 05-06-2012 01:06 PM

Come on man does that really matters !! someone could find this post useful..
besides googling "php.ini linux" will list this thread as 3rd in the SERP

ranito1980 09-01-2012 08:19 PM

Thank you!
 
I'm a noob to Linux and running apache2/php5/MySQL on it. I'm running Linux Mint 13. Anyway, someone above mentioned that the first posts were in 2003! I must say, thank you LinuxQuestions.Org for not deleting this post because even though today is 01Sep2012-Saturday, I still found the information posted from 9 years ago highly useful! Thank you! Now, with reference to installing the PECL whachamacallit's, I found the php.ini file by using: locate php.ini, and then I used nano /path/to/php.ini to edit it.

Ranito1980, M.Ed.
Marion, Illinois
United States


All times are GMT -5. The time now is 06:30 PM.