(Ubuntu-Lamp) Warum gibt es in Ubuntu lamp 2 PHP.ini-Dateien?

3182
Yosef

Warum gibt es in Ubuntu lamp 2 PHP.ini-Dateien und welche Funktion haben sie?

  1. /etc/PHP5/cli/PHP.ini

  2. /etc/PHP5/apache2/PHP.ini

0

2 Antworten auf die Frage

2
BloodPhilia

PHP can be executed from the command line or from a webserver. /etc/php5/apache2/php.ini is used for the webserver execution, /etc/php5/cli/php.ini is used for the command line execution.

schlag mich dazu um 39 Sekunden D: squircle vor 13 Jahren 0
Ihr tut mir so leid! XD Aber wir haben beide recht! : D BloodPhilia vor 13 Jahren 0
1
squircle

The first file, /etc/php5/cli/php.ini, is the PHP configuration file (php.ini) for when the console command php is run. The second file, /etc/php5/apache2/php.ini, is the PHP configuration file for when PHP is run as an Apache extension. If you're trying to use a php.ini for your website, use the second location.