WindowsでOpenPNE3インストール(2009.01.21)
このエントリ時点ではインストールに成功しませんでした。
この後の「Windows+Apache2.2+PHP5.2.6でOpenPNE3beta3」が成功時のエントリです。
----
WindowsでOpenPNE3インストール(2009.01.20)の問題がリビジョン10288で修正された(投げまくって対応してもらいまくってますね)とのことなので、最新のtrunkをチェックアウト。リビジョン10302でインストールを再試行。
c:\(略)\htdocs\OpenPNE3> symfony openpne:install
今回は最後までインストールが行きました!
■ 問題点1 (解決済み)
そしてインストールしたローカルのURLにブラウザでアクセス。
http://localhost/OpenPNE3/web/pc_frontend_dev.php
エラーになります。
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\config\sfAutoloadConfigHandler.class.php on line 129
繰り返しますが、10回目まで毎回エラー。
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\util\sfFinder.class.php on line 421
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\config\sfAutoloadConfigHandler.class.php on line 129
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\util\sfFinder.class.php on line 421
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\util\sfFinder.class.php on line 421
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\util\sfFinder.class.php on line 415
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\config\sfAutoloadConfigHandler.class.php on line 129
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\config\sfAutoloadConfigHandler.class.php on line 130
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\util\sfFinder.class.php on line 399
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\PHP\PEAR\symfony\config\sfAutoloadConfigHandler.class.php on line 130
毎回エラー内容は最長実行時間30秒に達したというもので、エラー個所が微妙に違うということは、本当に処理しているものの時間が足りないのだと判断します。C:\Program File\PHP\php.iniで制限を60秒に変更。
max_execution_time = 60 ; Maximum execution time of each script, in seconds
Apacheを再起動して、再度アクセス。このエラーはでなくなりました。
■ 問題点2 (未解決)
今度は別のエラー。
500 | Internal Server Error | sfConfigurationException
Configuration file "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\lib/config/config/auth.yml" does not have a registered handler.stack trace
at ()in SF_SYMFONY_LIB_DIR\config\sfConfigCache.class.php line 101 at sfConfigCache->callHandler('C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\lib/config/config/auth.yml', array('C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\lib/config/config/auth.yml'), 'C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\cache\pc_frontend\dev\config/Program_Files_Apache_Software_Foundation_Apache2.2_htdocs_OpenPNE3_lib_config_config_auth.yml.php')in SF_SYMFONY_LIB_DIR\config\sfConfigCache.class.php line 194 at sfConfigCache->checkConfig('C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\lib/config/config/auth.yml')in SF_ROOT_DIR\lib\user\opAuthAdapter.class.php line 56 at opAuthAdapter->getAuthConfig('enable_pc')in SF_ROOT_DIR\lib\user\sfOpenPNESecurityUser.class.php line 59 at sfOpenPNESecurityUser->getAuthModes()in SF_ROOT_DIR\lib\user\sfOpenPNESecurityUser.class.php line 118 at sfOpenPNESecurityUser->getCurrentAuthMode()in SF_ROOT_DIR\lib\user\sfOpenPNESecurityUser.class.php line 38 at sfOpenPNESecurityUser->initialize(object('sfEventDispatcher'), object('sfSessionStorage'), array('auto_shutdown' => '', null, 'timeout' => '1800', 'logging' => '1', 'use_flash' => '1', 'default_culture' => 'ja_JP'))in SF_SYMFONY_LIB_DIR\user\sfUser.class.php line 48 at sfUser->__construct(object('sfEventDispatcher'), object('sfSessionStorage'), array('auto_shutdown' => '', null, 'timeout' => '1800', 'logging' => '1', 'use_flash' => '1', 'default_culture' => 'ja_JP'))in SF_ROOT_DIR\cache\pc_frontend\dev\config\config_factories.yml.php line 134 at require('C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\OpenPNE3\cache\pc_frontend\dev\config\config_factories.yml.php')in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 149 at sfContext->loadFactories()in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 76 at sfContext->initialize(object('pc_frontendConfiguration'))in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 59 at sfContext::createInstance(object('pc_frontendConfiguration'))in SF_ROOT_DIR\web\pc_frontend_dev.php line 14symfony v.1.2.1 - php 5.2.6
そういえばcodezineのサンプルは仮想ホストを設定して、パスはルートでアクセスしないと画像やCSS周りでトラブルがありました。可能性は薄そうですが、そういうのが絡んでいる可能性もなくはない、と思って、仮想ホストの設定をC:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.confに追記。
<VirtualHost *:80>
ServerName openpne3.localhost
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/OpenPNE3/web/"
DirectoryIndex index.php
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/OpenPNE3/web/">
AllowOverride All
Allow from All
</Directory>Alias /sf "C:/Program Files/PHP/data/symfony/web/sf/"
<Directory "C:/Program Files/PHP/data/symfony/web/sf/">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
仮想ホストの名前を使ってアクセスしてみます。
http://openpne3.localhost/pc_frontend_dev.php
これでも同じエラーになります。
いよいよエラーがアプリケーション由来っぽくなってきました。しかしテーブル定義とかSQLの問題であればともかく、SymfonyやOpenPNE3の中のことになってくると、これから始めようという身には掘るのが辛そう。
とりあえず、今晩はここでギブアップ。