我不知道這是默認行爲還是不行,但對我來說似乎很奇怪。php.ini - 命令行PHP和WAMP服務器訪問不同的文件
我在Windows 7機器上從頭開始安裝WAMP服務器v2.2e,使用PHP 5.4.3。我收到了這些我並不關心的小錯誤(當我激活擴展程序時,有時我需要退出WAMP並重新啓動以查看更改),
但這不是我來這裏的原因。
當我點擊圖標WAMP - > PHP - >的php.ini,我打開該文件是一個在Apache目錄(<WAMP dir>\apache\apache2.4.2\bin\php.ini
)
從窗戶的輸出cmd命令php -i | find /i "Configuration File"
輸出<WAMP dir>bin\php\php5.4.3\php.ini
這是所需的行爲?
什麼實際上,我試圖做的是安裝PHPDoc的,輸出打開(我的瀏覽器,不能使用命令行PHP)localhost/phpDocumentor/installer.php
後,我得到了這幾行:
...
...
Problem 2
- Installation request for phpdocumentor/template-checkstyle 1.0.1 ->
satisfiable by phpdocumentor/template-checkstyle 1.0.1.
- phpdocumentor/template-checkstyle 1.0.1 requires ext-xsl * ->
the requested PHP extension xsl is missing from your system.
Problem 3
- Installation request for phpdocumentor/template-new-black 1.0.4 ->
satisfiable by phpdocumentor/template-new-black 1.0.4.
- phpdocumentor/template-new-black 1.0.4 requires ext-xsl * ->
the requested PHP extension xsl is missing from your system.
Problem 4
...
...
...你明白了。
php.ini文件WAMP使用有:
extension=php_xsl.dll
和命令行PHP使用php.ini中有:
;extension=php_xsl.dll
我可能只是取消註釋擴展在另一個.ini文件中,但這不會解決問題。
任何想法?
「我得到的這些小錯誤並不是我真正關心的(當我激活擴展時,我有時需要退出WAMP並重新啓動以查看更改),」 - 這不是錯誤,這是預期的行爲。 –