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
Related
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
I'm trying to port a simple website across to the Google App Engine. My website uses PHP and accesses a MySQL database.
In the App engine I've created a project, e.g.: my-project.
Then within that project I did what I was told, to get a MySQL database up and running: create a SQL instance, download phpMyAdmin locally, create app.yaml file:
application: my-project
version: 1
module: default
runtime: php55
api_version: 1
handlers:
- url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: \1
upload: (.*\.(ico$|jpg$|png$|gif$))
application_readable: true
- url: /(.*\.(htm$|html$|css$|js$))
static_files: \1
upload: (.*\.(htm$|html$|css$|js$))
application_readable: true
- url: /(.*\.(php$))
script: \1
login: admin
- url: /(.+)
script: index.php
login: admin
- url: /.*
script: index.php
login: admin
I then deployed the app and went to
https://phpmyadmin-dot-my-project.appspot.com
phpMyAdmin worked perfectly.
Next, I created followed the helloworld.php example:
https://cloud.google.com/appengine/docs/php/gettingstarted/helloworld
Again, that worked, with the PHP code executing on the server to display 'Hello world!'.
Finally, I went back to:
https://phpmyadmin-dot-my-project.appspot.com
but no dice, it just displays 'Hello world!'.
Must be something very basic that I'm missing, do I need to create a separate project for each?
E.g.:
1. create project with MySQL DB instance and phpMyAdmin
2. create project with the PHP files
In the app.yaml for phpmyadmin, I needed to change:
module: default to module: phpmyadmin
application: myapp-beta
version: 1
module: phpmyadmin
runtime: php55
api_version: 1
Same for the app.yaml file for helloworld. Just created a new module called helloworld.
Need to read up on YAML and modules... thanks!
I'm trying to set up Google App Engine and Wordpress version 3.8 according to instruction at https://developers.google.com/appengine/articles/wordpress
But when I run $ APP_ENGINE_SDK_PATH/dev_appserver.py APPLICATION_DIRECTORY I have got the error
Unable to assign value 'wordpress/..(htm|html|css|js)$' to attribute
'upload:' value 'wordpress/..(htm|html|css|js)$' for upload does not
match expression '^(?:(?!\^).*(?!\$).)$' in app.yaml in line 9, column
11
Here is my app.yaml file's content:
application: thangvmwordpressdemo
version: 1
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
Can you have me solve this problem?
Thank you so much!
As of 19 Jan 2014 that article doesn´t work with current Google App Engine for PHP SDK v1.8.9 (Windows). The problem is the final regex ending ($) of the handlers.upload attribute. I´m not sure why this has happened and when it will get fixed, however, you can try any of the following workarounds:
You have to either remove it:
handlers:
- url: /.*\.(htm|html|css|js)
static_files: wordpress/\1
upload: wordpress/.*\.(htm|html|css|js)
application_readable: true
or use the semantically equivalent (to the faulty one):
handlers:
- url: /.*\.(htm|html|css|js)
static_files: wordpress/\1
upload: wordpress/.*\.(htm$|html$|css$|js$)
application_readable: true
Cheers !!
The documentation was recently update to reflect changes made in the regex validation. The validation is done both by the SDK on the client side and on the server side (app engine). Please make sure you are using the 1.8.9 SDK (current), otherwise regex ending in $ will not work.
+1 to boombatower's comments; you might have better luck using the GitHub "Starter Project" for WordPress that we posted here: https://github.com/GoogleCloudPlatform/appengine-php-wordpress-starter-project
That article is tough to follow because there is such a difference between going through all those steps and just cloining a git project and getting on with it, and it's also updated less frequently because the git project is "crowdsourced" among several Googlers while the article is written by one writer with many other priorities.
Here's the app.yaml file from that project, for comparison:
https://github.com/GoogleCloudPlatform/appengine-php-wordpress-starter-project/blob/master/app.yaml
Also had this problem. You need to download the latest version of the appengine SDK for PHP. It's at 1.9.2 now. You can maintain separate versions if you still need the older version.
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?