Solved

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

Posted on 2008-10-18
5
214 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

705 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

17 Experts available now in Live!

Get 1:1 Help Now