LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-08-2003, 07:39 PM   #1
Penguin_5333
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-08-2003, 07:50 PM   #2
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
find / -name "*php.ini*"

should return any locations with this file in it.
 
Old 10-08-2003, 07:52 PM   #3
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Rep: Reputation: 30
locate php.ini


Location: /etc/php.ini
 
Old 10-09-2003, 04:13 PM   #4
Penguin_5333
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 10-09-2003, 07:24 PM   #5
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
root]# find / -name "*php.ini*"
/etc/php.ini
 
Old 05-05-2012, 10:08 AM   #6
kir4n
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
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()

Last edited by kir4n; 05-05-2012 at 11:31 AM.
 
Old 05-06-2012, 11:10 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,140
Blog Entries: 52

Rep: Reputation: Disabled
kir4n
Look at the dates on the posts before yours. Nearly 9 years old.
 
Old 05-06-2012, 02:06 PM   #8
kir4n
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 09-01-2012, 09:19 PM   #9
ranito1980
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 12:05 PM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 01:16 PM
php: different mail server from php.ini rayds Programming 0 09-14-2004 04:48 AM
I need help with php.ini Wagner Programming 2 10-14-2003 06:14 AM
where is php.ini? ShawnD Linux - Software 6 07-24-2002 11:42 AM


All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration