PHP GAE not able to run SDK locally - php

I installed the latest SDK for php 1.8.1 and I am having trouble getting it to run locally
D:\google_appengine 1.8.1>dev_appserver.py --php_executable_path=D:\PHP\php-cgi.exe \Testing --port=5000
INFO 2013-06-13 03:16:30,931 sdk_update_checker.py:244] Checking for updates to the SDK.
INFO 2013-06-13 03:16:32,851 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found
**WARNING 2013-06-13 03:16:32,861 api_server.py:314] Could not initialize images API; you are likely missing the Python "PIL" module.**
INFO 2013-06-13 03:16:32,868 api_server.py:138] Starting API server at: http://localhost:60628
INFO 2013-06-13 03:16:32,874 dispatcher.py:164] Starting server "default" running at: http://localhost:5000
INFO 2013-06-13 03:16:32,878 admin_server.py:117] Starting admin server at: http://localhost:8000
ERROR:root:php failure (255) with:
X-Powered-By: PHP/5.4.16
Content-type: text/html
Warning: require_once(google/appengine/runtime/ApiProxy.php):
failed to open stream: No such file or directory in
D:\google_appengine 1.8.1\google\appengine
\tools\devappserver2\php\setup.php on line 21 INFO
2013-06-13 03:16:40,938 server.py:593] default: "GET / HTTP/1.1" 500 -
Fatal error: require_once(): Failed opening required
'google/appengine/runtime/ApiProxy.php' (include_path='D:\Testing') in
D:\google_appengine 1.8.1\google
\appengine\tools\devappserver2\php\setup.php on line 21
I am trying to find what the problem is but have no idea what is wrong. What is the PIL module I am missing?
The error says that ApiProxy.php is missing but it is located at
D:\google_appengine 1.8.1\php\sdk\google\appengine\runtime
Some one posted a similar issue and said they fixed it by doing the following
The problem is I also have a python version Google-App-engine. In
order to solve this this problem, I need to specify the
"dev_appserver" to PHP-GAE-SDK
I have no idea what that and will it fix the errors shown. Any thoughts?

Google seems to have messed up a little when they made the 1.8.1 revision on Windows. To fix it, go into this file:
D:\google_appengine 1.8.1\google\appengine\tools\devappserver2\php\runtime.py
You should find this at line 112:
if sys.platform == 'win32':
include_path = 'include_path=%s' % ';'.join(include_paths)
Change that to:
if sys.platform == 'win32':
include_path = 'include_path="%s"' % ';'.join(include_paths)
Note the extra pair of quotes around the %s.

Related

Why is searching not returning results in Magento 1.9 with error messages appearing in nginx logs for FastCGI and Elastica?

I'm running Magento 1.9.4 on Ubuntu 18.04, PHP 7.2 with nginx 1.14 fronting it all. The shopping site is loading and navigable. However, when I search for a term, it does not list the matches in the drop-down and shows the no results page.
I can see the following message in the nginx error logs:
2020/05/22 14:54:51 [error] 1213#1213: *270 FastCGI sent in stderr: "PHP message: PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/www/example.com/lib/Elastica/Status.php on line 69
PHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/example.com/lib/Elastica/Status.php on line 81
PHP message: PHP Notice: Undefined index: version in /var/www/example.com/lib/Elastica/Client.php on line 108" while reading response header from upstream, client: 72.71.71.72, server: www.example.com, request: "GET /catalogsearch/result/?q=trouser HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/boutique/"
This was working prior to upgrading from Ubuntu 14.04 and PHP 7.0.
I need to find another job.
Magento is using Elastica client which in turn is pointing to AWS ElasticSearch service. I had to whitelist the host (Magento site) in the AWS ElasticSearch access policy in order for it to access the service.

server,php file missing, fatal error

I have been using laravel for multiple projects already, however for some reason my new laravel project does not have the server.php file.
Reinstalling composer and / or recreating the project does not work. I also can't put a file by the name of server.php into the project in any way.
[Fri May 11 02:26:55 2018] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Fri May 11 02:26:55 2018] PHP Fatal error: Unknown: Failed opening required 'C:\Users\Luke Derkzen\Documents\GitHub\Website\server.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0
I get this error when I try to start the server, as far as I can see it's expecting me to have something running on XAMPP, however on my other projects there is a server.php file, and it doesn't give above error.
The project was created with following command:
composer create-project --prefer-dist laravel/laravel
If i use the php artisan serve command afterwards to start the server and reload the page. above error appears in the artisan console.
How can I fix this?
Server.php make a Exception and your Anti-Virus like Avast delete it Automatically. Make turn off your Anti-VIrus Software.
The problem occured, as rightly predicted by some, due to corrupt windows permissions. I talked about it with microsoft support, however they could offer no solution (without paying $50 / $150) so I did a clean install of windows.
While I'm sure this isn't a solution people hope to find, it was the only way for me.

Nginx error.log message trimmed - How to increase string print size?

I have successfully migrated an ecommerce store from Apache to the following set up:
nginx/1.8.1
PHP 5.6.17 (fpm-fcgi) using PHP-fpm to interconnect
Prestashop 1.6.1.4
Amazon Linux AMI release 2015.09
We are trying to find the root cause of a problem in the webstore which seems to be related to some errors we have after viewing the product single page.
The Nginx error.log is capturing this error, but comparing to the other messages I have on the error log it seems that it's either incomplete or missing information on this specific message.
Let me show you.
This is a 'normal' error/notice message:
2016/04/08 17:59:17 [error] 20556#0: *1174 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: img_color_exists in /data/www/www.webstore.com/cache/smarty/compile/bd/cf/99/bdcf9912784a814902d87f2da1cc546547993df8.file.product.tpl.php on line 483
This is the message we are trying to track down:
2016/04/08 18:01:05 [error] 20556#0: *1192 FastCGI sent in stderr: "oduct-list.tpl.php on line 52
Isn't there a configuration of Nginx or something that I could do to get further information regarding this error?
Thanks for your help in advance.
Best regards,

Trouble running local WordPress in Google App Engine

Following these instructions.
Installed MySQL, Python and Google App Engine PHP SDK on a Windows 8 PC. Perfect!
Created an app for WordPress, created database and user on localhost and edited WordPress config accordingly.
Started the app in the Google App Engine Launcher. Clicking Browse leads to blank page at http://localhost:8080/
Hmmm...
Checked logs, found
2013-11-26 17:56:18 Running command: "['C:\\Python27\\python.exe',
'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py',
'--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000',
'C:\\Users\\CsillamVilag\\Documents\\development-appengine\\arcfestesmintak']"
INFO 2013-11-26 17:56:19,805 devappserver2.py:660]
Skipping SDK update check.
WARNING 2013-11-26 17:56:19,813 api_server.py:331]
Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-11-26 17:56:19,822 api_server.py:138]
Starting API server at: http://localhost:53853
INFO 2013-11-26 17:56:19,826 dispatcher.py:171]
Starting module "default" running at: http://localhost:8080
INFO 2013-11-26 17:56:19,828 admin_server.py:117]
Starting admin server at: http://localhost:8000
INFO 2013-11-26 17:56:21,828 module.py:617] default: "GET / HTTP/1.1" 302 -
Pretty certain the Python for Windows package I used included PIL. Not sure where to go from here...
If I go to http://localhost:8080/wp-admin though, I get
Warning: chdir(): Invalid argument (errno 22) in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 42
Warning: require(wordpress/wp-admin/wp-admin/install.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 103
Fatal error: require(): Failed opening required 'wordpress/wp-admin/wp-admin/install.php' (include_path='C:\Users\CsillamVilag\Documents\development-appengine\arcfestesmintak;C:\Program Files (x86)\Google\google_appengine\php\sdk') in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 103
In the error returned at http://localhost:8080/wp-admin/ I see /wp-admin/wp-admin/install.php
Obviously install.php cant be found. It is in /wp-admin/ not in /wp-admin/wp-admin/
Not sure how to fix that.
If you are getting a blank page, you'll want to check your errors
In your /wordpress/wp_config.php file set
define('WP_DEBUG', false);
#ini_set('display_errors',0);
to
define('WP_DEBUG', true);
#ini_set('display_errors',1);
and see what is output when you go to
http://localhost:8080
Looks like Google App Engine doesn't support WordPress 3.7.1 (something that's not documented anywhere). Downgrading to WordPress 3.5.1 (the version mentioned in Google's instructions) made it work - http://localhost:8080 was forwarded to WordPress Install page.

Installing Laravel resulted in unable to find the socket transport ssl

Hi I am trying to install laravel on my server.This is what I did.First I installed composer and tryed running this command in cmd:
composer create-project laravel/laravel RestPHP
After running it I got this this message:
I tryed googeling about this error but could not find anything concrete regarding this error I am very new to php.
After this I tryed a more manual approach.I downloaded laravel and put it in my htdocs folder , then I tryed openning it like this:
http://localhost:8585/laravel/public/
But I got this message:
Warning: require(E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php'
(include_path='.;E:\Projects IDE\PHPStorm\xampp\php\PEAR') in
E:\Projects IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php
on line 17
I have my htdocs route at:
E:\Projects IDE\PHPStorm\xampp\htdocs
Both cases seem to be some for of php configuration problem , since I have 0 knowledge of that I could not find a solution.
Could someone please provided me with a step by step solution?
UPDATE
I managed to enable socket transparency ssl and after trying to run the command I get this:
I have also installed git but I still get the same error.What can I do?
Try enabling php_sockets and open_ssl in your php ini

Categories