I'm trying to install an old kind of framework (Social Engine 4) which is using Zend Framework 1 on its core.
Fatal error: require(): Failed opening required
'google/appengine/ext/cloud_storage_streams/CloudStorageClient.php'
(include_path=':PEAR:.')
in
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/php/sdk/google/appengine/runtime/autoloader.php
on line 549
I'm using the Google App Launcher in mac and also I'm assuming the all google app engine related sdk's are automatically loaded by the autoloader.php
Has anyone encountered this kind of error in Google App Engine?
app.yml config:
application: application-id
version: 1
runtime: php55
api_version: 1
handlers:
- url: /install/(.*\.(htm|html|css|js))$
static_files: install/\1
upload: install/.*\.(htm|html|css|js)$
application_readable: true
- url: /install/(.*\.(jpg|png))$
static_files: install/\1
upload: install/.*\.(jpg|png)$
application_readable: true
- url: /install/index.php
script: install/index.php
- url: /(.+)?/?
script: index.php
Related
My app.yaml as:
runtime: php55
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
as seen above static files are under www dir. and php files are under the vendor dir and its sub sirs. I have read all days doc. to understand this yaml file to able to understand but unfortunately not yet :) . So, html and all static files works perfect. but when ajax calls php with sending data to php. gives 404 error. It works good on local wamp server. main opening page is index.html under www . And its ok. All day I tested many variant to able to deploy php files. Not able yet.
mainProjectRoot>app.yaml ( only this file and two directory "www and vendor")
www/index.html
/css
/js
vendor/smsgonder.php
/mail.php
/../../more php files
At least I gave up to try more variant and I need help to set up app.yaml page. (except above variant all extra code I received always error and no deployment)
Any help will be much appretiated. Thanks in advance !
final app.yaml is
runtime: php55
api_version: 2
threadsafe: true
handlers:
- url: /(.+\.php)$
script: vendor/\1
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
EDIT
this is final app.yaml ... (for a while I have deployed php files and some are were woring . But again for some php I receive "POST 500 error "
in case I like to share final app.yaml file here.
runtime: php55
api_version: 2
threadsafe: true
handlers:
- url: /(.*).php
script: \1.php
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
Any help will be very much appreciated. How could be :)) I spent 5-6 days just for deploying finished app :)'
add this immediately after handlers:
- url: /(.*)\.php$
script: vendor/\1.php
This will serve all request ending with .php to the php files within the vendor folder
The handlers section for PHP scripts following the documentation Example (works for vendor subdirectories as well):
# Serve php scripts.
- url: /(.+\.php)$
script: \1
Note: indentation matters!
Trying to get joomla working locally and ran into an issue with the Administror page. 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
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. I am really struggling to debug this. My app.yaml file is as follows;
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 (e.g. index.php) for directory access. Instead, it relies on the following rule in your app.yaml to locate the php script.
## Admin
- url: /administrator(.+)
script: joomla/administrator\1
Use /administrator/index.php to access your admin page instead.
I'm running Apache and MySQL via XAMPP v1.8.2 to support a WordPress site for Google App Engine (GAE) local development and cloud deployment using GAE SDK v1.8.8.
Changing settings or stylings of the theme, which uses AJAX, does not save on the local server or the production server. The theme's settings and stylings though can be changed on a localhost not using GAE.
I've tried repairing and reinstalling GAE, WordPress and XAMPP so I reason it may be my server / DB setup or a GAE issue.
Launching the app via GAE Launcher's log displays the following error:
2013-12-26 09:30:03 Running command: "['C:\Program
Files\Python27\python.exe',
'C:\google_appengine\dev_appserver.py',
'--skip_sdk_update_check=yes', '--port=9080', '--admin_port=8001',
'C:\catalyx-GoogleAppEngine\catalyx']" 2013-12-26 09:30:03 (Process
exited with code -1073741515)
The site's app.yaml contains:
application: catalyx-wp
version: wp
runtime: php
api_version: 1
handlers:
- url: /(.*\.(htm$|html$|css$|js$))
static_files: wordpress/\1
upload: wordpress/(.*\.(htm$|html$|css$|js$))
application_readable: true
- url: /wp-content/(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/wp-content/\1
upload: wordpress/wp-content/(.*\.(ico$|jpg$|png$|gif$))
application_readable: true
- url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/\1
upload: wordpress/(.*\.(ico$|jpg$|png$|gif$))
- url: /wp-admin/(.+)
script: wordpress/wp-admin/\1
secure: always
- url: /wp-admin/
script: wordpress/wp-admin/index.php
secure: always
- url: /wp-login.php
script: wordpress/wp-login.php
secure: always
- url: /wp-cron.php
script: wordpress/wp-cron.php
login: admin
- url: /xmlrpc.php
script: wordpress/xmlrpc.php
- url: /wp-(.+).php
script: wordpress/wp-\1.php
- url: /(.+)?/?
script: wordpress/index.php
Any suggestions are appreciated.
I am running Windows 8.1 64 bit on a core I7 laptop. I am running Python 2.7.6 with the GoogleAppEngine-1.8.7 installed. IIS 8.5 is also installed with the PHP manager extension
I have PHP 5.4.10 also installed in the C:\PHP directory
I had already created 3 Wordpress apps locally successfully (about a week ago) and when I ran them in the Google App Engine Launcher Browser everything was fine until 2 days ago.
Now when I start the apps and launch the browser on the locally host on port 8080 I get a blank screen.
This is the contents of the log file:
INFO 2013-11-12 04:31:39,665 dispatcher.py:171] Starting module "default" running at: http://locally host:8080
INFO 2013-11-12 04:31:39,667 admin_server.py:117] Starting admin server at: http://locally host:8000
INFO 2013-11-12 04:31:50,822 module.py:608] default: "GET / HTTP/1.1" 302 -
contents of app.yaml:
application: icefishingco
version: wp
runtime: php
api_version: 1
handlers:
- url: /(.*\.(htm$|html$|css$|js$))
static_files: wordpress/\1
upload: wordpress/(.*\.(htm$|html$|css$|js$))
application_readable: true
- url: /wp-content/(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/wp-content/\1
upload: wordpress/wp-content/(.*\.(ico$|jpg$|png$|gif$))
application_readable: true
- url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/\1
upload: wordpress/(.*\.(ico$|jpg$|png$|gif$))
- url: /wp-admin/(.+)
script: wordpress/wp-admin/\1
secure: always
- url: /wp-admin/
script: wordpress/wp-admin/index.php
secure: always
- url: /wp-login.php
script: wordpress/wp-login.php
secure: always
- url: /wp-cron.php
script: wordpress/wp-cron.php
login: admin
- url: /xmlrpc.php
script: wordpress/xmlrpc.php
- url: /wp-(.+).php
script: wordpress/wp-\1.php
- url: /(.+)?/?
script: wordpress/index.php
Contents of cron.yaml
cron:
- description: wordpress cron tasks
url: /wp-cron.php
schedule: every 2 hours
contents of my php.ini:
google_app_engine.enable_functions = "php_sapi_name, gc_enabled"
System Environment variable:
Path=C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\php;c:\python27;C:\Program Files (x86)\QuickTime\QTSystem\
What, if anything, am I doing wrong?
The http://locally host:8080 looks fishy in the log. Could you post the extra flags you used for the project as well?
I am trying to install phpMyAdmin utilizing the PHP SDK kit. I am getting this phpMyAdmin error in my local test environment:
The mysqli extension is missing. Please check your PHP configuration.
Anyone have any recommendations for the app.yaml file that would work best with phpMyAdmin and google app engine utilizing PHP?
This worked for me -
application: phpmyadmin
version: pn
runtime: php
api_version: 1
handlers:
- url: /(.+\.php)
script: phpmyadmin/\1
- url: /(.+\.php)\?.+$
script: phpmyadmin/\1
- url: /
script: phpmyadmin/index.php
- url: /(.*\.(htm$|html$|css$|js$|ico$|jpg$|png$|gif$))
static_files: phpmyadmin/\1
upload: phpmyadmin/(.*\.(htm$|html$|css$|js$|ico$|jpg$|png$|gif$))
application_readable: true