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: 12 July 2014, 8:18 AM 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: 22 July 2014, 12:11 AM EDT
Location: /dev/ph
Posts: 4,770
Thanks: 59
Thanked 422 Times in 391 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: 12 July 2014, 8:18 AM 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: 23 July 2014, 1:25 PM EDT
Location: Asia pacific region
Posts: 12,989
Thanks: 512
Thanked 868 Times in 397 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 02:04 PM.