Solved

PHP..how'd I find it where its installed on CENTOS

Posted on 2008-10-18
5
220 Views
Last Modified: 2013-12-13
I am looking for php.ini and its CENTOS but I couldn't seem to find it. Is it any command in linux that will tell you where the file is located at. I thought grep could do it, but really don't know the syntax for that
0
Comment
Question by:syedasimmeesaq
5 Comments
 

Accepted Solution

by:
raphael_999 earned 250 total points
ID: 22749873
just do :
locate php.ini

if it doesn't find anything you could try to do:
updatedb

then redo:
locate php.ini
0
 
LVL 5

Expert Comment

by:ifreq
ID: 22749981
Good article about finding files in linux (basic) :

http://www.secguru.com/article/quick_tips_find_files_linux_file_system

0
 
LVL 23

Expert Comment

by:Mysidia
ID: 22750374
In CentOS  it's normally   /etc/php/php.ini


rpm -ql php    <-- to see a list of files that the PHP package installed
i.e.  rpm -ql php |fgrep php.ini

find / -xdev -name php.ini

To search the root filesystem for php.ini

0
 
LVL 23

Assisted Solution

by:Mysidia
Mysidia earned 150 total points
ID: 22750395
Err..   it's normally  /etc/php.ini

On CentOS PHP packages there is also a  /etc/php.d  directory
that contains INI files for extension modules that might be installed

I.E.

[root@cacti-3 ~]# ls /etc/php.d
imap.ini  ldap.ini  mysql.ini  odbc.ini  pgsql.ini  rrdtool.ini  snmp.ini
0
 
LVL 8

Assisted Solution

by:MrJemson
MrJemson earned 100 total points
ID: 22755215
The grep syntax you were referring to is:

find / | grep php.ini
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now