Я пытаюсь настроить тестовую среду на виртуальной машине под управлением Windows XP Home (полностью обновлена) с Apache 2.2 и PHP 5.4.7.
Я могу загрузить модуль PHP 5 в httpd.conf, и если я не переименую файл php.ini-DEVELOPMENT (или -PRODUCTION) в php.ini, движок будет работать нормально.
В этой базовой конфигурации не загружен модуль MySQL, поэтому я должен переименовать .ini-DEVELOPMENT в .ini и отредактировать следующим образом:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "C:/php/ext/"
...
extension=php_mysql.dll
extension=php_mysqli.dll
Перезагрузите Apache без проблем и ... все, что я могу получить, это пустая страница. Где я могу увидеть ошибку или вы знаете, в чем проблема?
Скажите, если мне нужно опубликовать что-нибудь еще, чтобы дать вам более подробную информацию.
Чтобы понять, в чем проблема, ищите Отчет об ошибках и display_errors config директивы в вашем php.ini файл.
error_reporting = E_ALL
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On
; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = On
; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = On
Также проверьте файлы журнала apache.