php.ini | Unix Linux Forums | Ubuntu

  Go Back    


Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

php.ini

Ubuntu


Tags
apache config, apache2, php, php.ini

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-20-2011
programAngel programAngel is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 4 October 2013, 1:19 PM EDT
Posts: 100
Thanks: 46
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old 11-20-2011
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 24 April 2014, 7:17 AM EDT
Location: /dev/ph
Posts: 4,717
Thanks: 54
Thanked 411 Times in 382 Posts
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.
Sponsored Links
    #3  
Old 11-20-2011
programAngel programAngel is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 4 October 2013, 1:19 PM EDT
Posts: 100
Thanks: 46
Thanked 0 Times in 0 Posts
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
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 24 April 2014, 12:57 PM EDT
Location: Asia pacific region
Posts: 12,900
Thanks: 493
Thanked 846 Times in 381 Posts
Quote:
Originally Posted by programAngel View Post
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 03:11 PM.