php.ini


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 11-20-2011
php.ini

Hi,

I have installed ubuntu server lamp.

When I used the command locate to find the php.ini file I found two location.
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

When I want to change the setting of the php, which one of them should I change and why I have this file twice?
# 2  
Old 11-20-2011
The first is for when you want to use PHP from the command line, the second is for when you wish to use PHP in a browser.
# 4  
Old 11-20-2011
Quote:
Originally Posted by programAngel
When you say browser you mean someone try to access it via the Apache serve?
Yes, that is what he means.... when you use PHP with Apache web server.

Note that it is not necessary to strictly use "a browser" as it is only necessary to query the web server, and this can be done with web browsers or with command line utilities such as wget, curl, etc.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Insert new line of text into Odbc.ini file dellanicholson Shell Programming and Scripting 0 04-13-2016 02:30 PM
Append two lines of text to php.ini in the entire directory tree.e Larrykh465 UNIX for Dummies Questions & Answers 6 09-05-2015 04:21 PM
sed - String substitution within specified section in ini type file jcdole Shell Programming and Scripting 1 12-29-2013 10:00 PM
Trouble with sed and ini file parsing odium74 Shell Programming and Scripting 5 01-10-2012 12:06 PM
Help with awk (making simple/advanced ini parser) jormung UNIX for Dummies Questions & Answers 23 07-18-2011 11:49 AM
[NEED] Shoutcast Stream Ini Script Cannon Shell Programming and Scripting 1 06-20-2011 08:22 AM
Trying to show lines in INI files until the comment character (#) hindesite UNIX for Dummies Questions & Answers 4 09-21-2010 06:47 PM
about php.ini and mysql linux fang_xiaoan Web Development 2 08-29-2010 10:01 PM
script assistance needed - create an archive of INI files hindesite Shell Programming and Scripting 2 08-12-2010 12:15 AM
Updating the ODBC.ini file Ariean UNIX for Dummies Questions & Answers 1 09-12-2009 04:38 AM
SED 4.1.4 - INI File Change Problem in Variables= in Specific [Sections] (Guru Help) JakFrost Shell Programming and Scripting 5 06-03-2009 08:01 PM
reading data from .ini file vinna Shell Programming and Scripting 2 06-02-2008 11:44 AM
Multi-booting Win2000 and FreeBSD with boot.ini DownSouthMoe UNIX for Dummies Questions & Answers 3 12-31-2001 01:33 AM