简体   繁体   English

Google App Engine PHP上的Joomla管理员错误

[英]Joomla admin errors on google app engine php

Trying to get joomla working locally and ran into an issue with the Administror page. 试图让joomla在本地工作并遇到“管理员”页面问题。 I have this error, 我有这个错误,

home page of site works - www.my-site.index.php but with admin I find the following error - www.my-site/administrator.index.php 网站工作的首页-www.my-site.index.php,但是使用管理员,我发现以下错误-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

I get the impressions joomla and google app engine aren't very compatible. 我得到的印象是joomla和Google App Engine不太兼容。 I am really struggling to debug this. 我真的很难调试。 My app.yaml file is as follows; 我的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

thanks 谢谢

App Engine does not have the concept of a default script (eg index.php) for directory access. App Engine没有用于目录访问的默认脚本(例如index.php)的概念。 Instead, it relies on the following rule in your app.yaml to locate the php script. 相反,它依赖于app.yaml中的以下规则来定位php脚本。

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

Use /administrator/index.php to access your admin page instead. 使用/administrator/index.php来访问您的管理页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM