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: 20 August 2014, 2:40 AM EDT
Posts: 103
Thanks: 47
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: 21 September 2014, 8:23 AM EDT
Location: /dev/ph
Posts: 4,809
Thanks: 63
Thanked 425 Times in 394 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: 20 August 2014, 2:40 AM EDT
Posts: 103
Thanks: 47
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 online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 21 September 2014, 3:57 PM EDT
Location: Asia pacific region
Posts: 13,022
Thanks: 521
Thanked 875 Times in 402 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 04:09 PM.