![](/img/trans.png)
[英]WordPress not running in local environment, developed for Google app engine
[英]Trouble running local WordPress in Google App Engine
請遵循以下說明 。
在Windows 8 PC上安裝了MySQL,Python和Google App Engine PHP SDK。 完善!
為WordPress創建了一個應用程序,在本地主機上創建了數據庫和用戶,並相應地編輯了WordPress配置。
在Google App Engine啟動器中啟動了該應用程序。 單擊瀏覽導致在http://localhost:8080/
處出現空白頁
嗯...
查看日志,發現
2013-11-26 17:56:18 Running command: "['C:\\Python27\\python.exe',
'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py',
'--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000',
'C:\\Users\\CsillamVilag\\Documents\\development-appengine\\arcfestesmintak']"
INFO 2013-11-26 17:56:19,805 devappserver2.py:660]
Skipping SDK update check.
WARNING 2013-11-26 17:56:19,813 api_server.py:331]
Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-11-26 17:56:19,822 api_server.py:138]
Starting API server at: http://localhost:53853
INFO 2013-11-26 17:56:19,826 dispatcher.py:171]
Starting module "default" running at: http://localhost:8080
INFO 2013-11-26 17:56:19,828 admin_server.py:117]
Starting admin server at: http://localhost:8000
INFO 2013-11-26 17:56:21,828 module.py:617] default: "GET / HTTP/1.1" 302 -
可以肯定的是,我使用的Windows的Python軟件包包括PIL。 不知道從這里去哪里...
如果我去http://localhost:8080/wp-admin
,我會得到
Warning: chdir(): Invalid argument (errno 22) in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 42
Warning: require(wordpress/wp-admin/wp-admin/install.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 103
Fatal error: require(): Failed opening required 'wordpress/wp-admin/wp-admin/install.php' (include_path='C:\Users\CsillamVilag\Documents\development-appengine\arcfestesmintak;C:\Program Files (x86)\Google\google_appengine\php\sdk') in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 103
在http://localhost:8080/wp-admin/
返回的錯誤中,我看到了/wp-admin/wp-admin/install.php
顯然找不到install.php
。 它在/wp-admin/
不在/wp-admin/wp-admin/
中。不確定如何解決該問題。
如果頁面空白,則需要檢查錯誤
在您的/wordpress/wp_config.php文件集中
define('WP_DEBUG',false); @ini_set( '的display_errors',0);
至
define('WP_DEBUG',true); @ini_set( '的display_errors',1);
看看當你去時輸出什么
http://localhost:8080
看起來Google App Engine不支持WordPress 3.7.1(某些地方沒有記錄)。 降級到WordPress 3.5.1(在Google的說明中提到的版本)使其可以工作http://localhost:8080
已轉發到WordPress安裝頁面。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.