谷歌应用程序引擎php上的Joomla管理员错误

时间:2014-03-14 20:16:39

标签: php google-app-engine joomla

尝试让joomla在本地工作并遇到Administror页面的问题。我有这个错误,

网站的主页 - www.my-site.index.php 但是使用admin我发现以下错误 - www.my-site / administrator.index.php

Warning: require(/Users/RichardClark/Sites/demo-test2/joomla/administrator): failed to open stream: No such file or directory in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 115

Fatal error: require(): Failed opening required '/Users/RichardClark/Sites/demo-test2/joomla/administrator' (include_path='/Users/RichardClark/Sites/demo-test2:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/php/sdk') in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 115

我得到的印象joomla和谷歌应用引擎并不是非常兼容。我真的很难调试这个。我的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

感谢

1 个答案:

答案 0 :(得分:0)

App Engine没有用于目录访问的默认脚本(例如index.php)的概念。相反,它依赖于app.yaml中的以下规则来定位php脚本。

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

使用/administrator/index.php代替访问您的管理页面。