Manual:Php.ini

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Php.ini and the translation is 56% complete.
Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎português do Brasil • ‎čeština • ‎русский • ‎العربية • ‎ไทย • ‎中文 • ‎日本語

php.ini is the PHP configuration file. This file will sometimes need to be modified; e.g. it might be necessary to set xdebug.max_nesting_level = 200 if you get the error "Fatal error: Maximum function nesting level of '100' reached, aborting!" After you make changes, use /usr/local/apache/bin/apachectl graceful to reload the config files without actually killing the webserver and starting it back up.

Расположение файла

Некоторые PHP установки имеют 2 php.ini файла,один отвечает за php_sapi модуль, который обрабатывает запросы веб-сервера, а другой для PHP командной строки.

To find it for the command line binary, use php --ini.

For the web module, create a sample php file with this content:

<?php
phpinfo();

and access it from the web server. It should display a lot of information about your PHP installation, including the location of the php.ini file.

См. также