Php 使用joomla 3.2.1部署google应用程序引擎

Php 使用joomla 3.2.1部署google应用程序引擎,php,google-app-engine,joomla,Php,Google App Engine,Joomla,我在本地部署我的站点时遇到了几个问题。其中一个问题如下。我日志中的一个片段。无法从文件中正确找到mimetype INFO 2014-03-17 12:24:56,210 shutdown.py:44] Shutting down. INFO 2014-03-17 12:24:56,298 api_server.py:538] Applying all pending transactions and saving the datastore INFO 2014-

我在本地部署我的站点时遇到了几个问题。其中一个问题如下。我日志中的一个片段。无法从文件中正确找到mimetype

    INFO     2014-03-17 12:24:56,210 shutdown.py:44] Shutting down.
INFO     2014-03-17 12:24:56,298 api_server.py:538] Applying all pending transactions and saving the datastore
INFO     2014-03-17 12:24:56,298 api_server.py:541] Saving search indexes

*** Running appcfg.py with the following flags:
    --no_cookies --email=richaccs@gmail.com --passin update
01:24 PM Application: fit-rig-517; version: 1-0-test
01:24 PM Host: appengine.google.com
01:24 PM 
Starting update of app: fit-rig-517, version: 1-0-test
01:24 PM Getting current resource limits.
01:25 PM Scanning files on local disk.
Could not guess mimetype for templates/system/component.php.  Using application/octet-stream.
Could not guess mimetype for templates/system/error.php.  Using application/octet-stream.
Could not guess mimetype for templates/system/index.php.  Using application/octet-stream.
Could not guess mimetype for templates/system/offline.php.  Using application/octet-stream.
Could not guess mimetype for templates/system/html/modules.php.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/component.php.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/error.php.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/index.php.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/less/icomoon.less.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/less/template.less.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/less/variables.less.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/language/en-GB/en-GB.tpl_protostar.ini.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/language/en-GB/en-GB.tpl_protostar.sys.ini.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/html/modules.php.  Using application/octet-stream.
Could not guess mimetype for templates/protostar/html/pagination.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/component.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/error.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/index.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/jsstrings.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/language/en-GB/en-GB.tpl_beez3.ini.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/language/en-GB/en-GB.tpl_beez3.sys.ini.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/message.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/modules.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/mod_login/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/mod_breadcrumbs/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/form/edit.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/category/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/category/default_children.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/category/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/categories/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_weblinks/categories/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_newsfeeds/category/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_newsfeeds/category/default_children.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_newsfeeds/category/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_newsfeeds/categories/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_newsfeeds/categories/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/form/edit.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/featured/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/featured/default_item.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/featured/default_links.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/blog.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/blog_children.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/blog_item.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/blog_links.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/default_articles.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/category/default_children.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/categories/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/categories/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/article/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/article/default_links.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/archive/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_content/archive/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default_address.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default_articles.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default_form.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default_links.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/default_profile.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/contact/encyclopedia.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/category/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/category/default_children.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/category/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/categories/default.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/html/com_contact/categories/default_items.php.  Using application/octet-stream.
Could not guess mimetype for templates/beez3/css/turq.less.  Using application/octet-stream.
01:25 PM Scanned 500 files.
Could not guess mimetype for media/jui/less/accordion.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/alerts.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/bootstrap-extended.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/bootstrap-rtl.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/bootstrap.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/breadcrumbs.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/button-groups.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/buttons.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/carousel.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/close.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/code.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/component-animations.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/dropdowns.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/forms.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/grid.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/hero-unit.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/icomoon.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/labels-badges.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/layouts.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/media.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/mixins.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/modals.joomla.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/modals.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/navbar.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/navs.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/pager.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/pagination.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/popovers.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/progress-bars.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/reset.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-1200px-min.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-767px-max.joomla.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-767px-max.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-768px-979px.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-navbar.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive-utilities.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/responsive.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/scaffolding.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/sprites.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/tables.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/thumbnails.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/tooltip.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/type.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/utilities.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/variables.less.  Using application/octet-stream.
Could not guess mimetype for media/jui/less/wells.less.  Using application/octet-stream.
01:25 PM Scanned 1000 files.
Could not guess mimetype for media/editors/tinymce/skins/lightgray/fonts/readme.md.  Using application/octet-stream.
Could not guess mimetype for media/editors/tinymce/langs/readme.md.  Using application/octet-stream.
01:25 PM Scanned 1500 files.
01:25 PM Scanned 2000 files.
01:25 PM Scanned 2500 files.
Could not guess mimetype for administrator/templates/system/component.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/system/error.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/system/index.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/system/html/modules.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/component.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/cpanel.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/error.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/index.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/login.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/less/icomoon.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/less/template-rtl.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/less/template.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/less/variables.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/language/en-GB/en-GB.tpl_isis.ini.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/language/en-GB/en-GB.tpl_isis.sys.ini.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/html/message.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/html/modules.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/html/pagination.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/isis/html/mod_version/default.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/component.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/cpanel.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/error.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/index.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/login.php.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/less/buttons.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/less/colour_baseline.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/less/colour_blue.less.  Using application/octet-stream.
Could not guess mimetype for administrator/templates/hathor/less/colour_brown.less.  Using application/octet-stream.
在这个网站上搜索时,我发现了一些关于如何做的变化。我试图在app.yaml文件中包含mime类型行。这删除了日志错误,但是在部署之后,我发现现在我有一个500内部错误。这是我的app.yaml文件

application: fit-rig-517
version: 1
runtime: php
api_version: 1

handlers:
- url: /joomla/(.*\.(htm$|html$|css$|js$))
  static_files: joomla/\1
  upload: joomla/(.*\.(htm$|html$|css$|js$))
  application_readable: true

## Admin  
- url: /administrator(.+)
  script: joomla/administrator\1

## Asset folders
- url: /media
  static_dir: joomla/media
  application_readable: true
  mime_type: text/html

- url: /images
  static_dir: joomla/images
  application_readable: true

## Template folders
- url: /templates
  static_dir: joomla/templates
  application_readable: true
  mime_type: application/(htm$|html$|css$|js$)

- url: /administrator/templates
  static_dir: joomla/administrator/templates
  application_readable: true
  mime_type: text/html

## SEO robots
- url: /robots.txt
  script: joomla/robots.txt 

## Site access
- url: /(.+)?/?
  script: joomla/index.php
非常感谢您的帮助 理查德

这是我的申请日志

2014-03-18 04:12:04.408 /favicon.ico 500 597ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 module=default version=1 
    [18/Mar/2014:04:12:04 -0700] "GET /favicon.ico HTTP/1.1" 500 0 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0" "fit-rig-517.appspot.com" ms=598 cpu_ms=0 loading_request=1 pending_ms=295 exit_code=204 app_engine_release=1.9.0 instance=00c61b117c12cd92538ca7e793538ae645c125

    I 2014-03-18 04:12:04.408

    This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

    W 2014-03-18 04:12:04.408

    A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

     2014-03-18 04:12:04.098 / 500 327ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 module=default version=1 
    [18/Mar/2014:04:12:04 -0700] "GET / HTTP/1.1" 500 0 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0" "fit-rig-517.appspot.com" ms=327 cpu_ms=0 loading_request=1 exit_code=204 app_engine_release=1.9.0 instance=00c61b117c41e50787535d999f11c7593db554c8

    I 2014-03-18 04:12:04.097

    This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

    W 2014-03-18 04:12:04.097

    A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)


     2014-03-18 04:12:03.528 / 500 469ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 module=default version=1 
    [18/Mar/2014:04:12:03 -0700] "GET / HTTP/1.1" 500 0 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0" "fit-rig-517.appspot.com" ms=469 cpu_ms=0 loading_request=1 exit_code=204 app_engine_release=1.9.0 instance=00c61b117c0581701767516f0f70cef37ced3c71

    I 2014-03-18 04:12:03.528

    This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

    W 2014-03-18 04:12:03.528

    A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

介意分享错误日志吗?谢谢。@Mars我添加了大约50%的错误日志。我对尺寸有限制。它主要围绕相同的mime类型错误。我通过添加mime类型尝试了各种方法:text/css或text/html或application/javascript,这将删除所有mime类型错误。然而,我仍然有一个500部署错误!如果你的应用程序出现了500个错误,而不是部署过程本身,这永远不会发生?在这种情况下,你也可以分享你的应用程序的错误日志(从GAE管理控制台)@Mars我添加了我的应用程序错误日志:我希望这就是你的意思。日志中的所有这3个点都标记为信息或警告,而不是错误,尽管运行时似乎在有机会向日志输出任何有意义的内容之前崩溃了。我想你已经用SDK验证了应用程序在本地工作,对吗?