php.ini

Tags
apache config, apache2, php, php.ini, ubuntu

Login 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.
# 3  
Old 11-20-2011
fpmurphy, thank you.

When you say browser you mean someone try to access it via the Apache serve?

Am I correct?
# 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 to Reply

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

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Insert new line of text into Odbc.ini file dellanicholson Shell Programming and Scripting 0 04-13-2016 03: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 05:21 PM
sed - String substitution within specified section in ini type file jcdole Shell Programming and Scripting 1 12-29-2013 11:00 PM
Trouble with sed and ini file parsing odium74 Shell Programming and Scripting 5 01-10-2012 01:06 PM
Help with awk (making simple/advanced ini parser) jormung UNIX for Dummies Questions & Answers 23 07-18-2011 12:49 PM
[NEED] Shoutcast Stream Ini Script Cannon Shell Programming and Scripting 1 06-20-2011 09:22 AM
Trying to show lines in INI files until the comment character (#) hindesite UNIX for Dummies Questions & Answers 4 09-21-2010 07:47 PM
about php.ini and mysql linux fang_xiaoan Web Programming 2 08-29-2010 11:01 PM
script assistance needed - create an archive of INI files hindesite Shell Programming and Scripting 2 08-12-2010 01:15 AM
Updating the ODBC.ini file Ariean UNIX for Dummies Questions & Answers 1 09-12-2009 05: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 09:01 PM
reading data from .ini file vinna Shell Programming and Scripting 2 06-02-2008 12:44 PM
Multi-booting Win2000 and FreeBSD with boot.ini DownSouthMoe UNIX for Dummies Questions & Answers 3 12-31-2001 02:33 AM
All times are GMT -4. The time now is 01:08 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?