Home Man
Search
Today's Posts
Register

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

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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 12:35 AM.

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