GoogleAppEngine PHP issue - php

I'm running dev_appserver.py PHP runtime in MAC OS, according to the instructions here:
https://developers.google.com/appengine/docs/php/gettingstarted/helloworld
But at localhost:8080 I keep getting:
Warning: require(index.php): 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 103
Fatal error: require(): Failed opening required 'index.php' (include_path='/Users/evelynrios/Documents/JavaScript/JSON:AJAX/BayAreaBikeShare:/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 103
A previous user posted this answer, here:
GoogleAppEngine root:php failure(255)
"I got the right answer from hakre: )
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"
But I have no idea what that means and there is no further explanation on SO.

The problem turned out to be a bad directory name.

Related

After typing php artisan serve, encounter error when trying to reach 127.0.0.1:8000

I'm using IIS as web server,
after I ran php artisan serve on the terminal,
I encountered error when trying to reach 127.0.0.1:8000.
Warning: Unknown: failed to open stream: No such file or
directory in Unknown on line 0
Fatal error: Unknown: Failed
opening required 'C:\inetpub\wwwroot\laravel/server.php'
(include_path='.;C:\php\pear') in Unknown on line 0
I have tried to look for other answers here, but none of them seems to work.
Any idea what went wrong. Thanks in advance.
This error is coming cause in your working repository server.php file is missing.
Oops forgot to update .I've downloaded the laravel 5.4,It turns out I forgot to include the .dev file, it works now

Site isn't seeing the autoload

I'm getting this error:
Warning: require(/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php): failed to open stream: No such file or directory in /home/wiseman/public_html/facebook.php on line 3
Fatal error: require(): Failed opening required '/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wiseman/public_html/facebook.php on line 3
The sdk has been installed by the host server and I can see the autoload file in exactly the path it's looking for. Anyone know what the problem could be? I'm new to working with facebook and am really green so be gentle! :)

Propel-gen fatal error required file not found

I'm new to Propel. A friend of mine had experience with it and recommended it to me but I cannot get it to generate for some reason. I already have a project generated with Propel. I'm trying to generate this project again to check if my installation is correct.
The error I'm encountering is:
[PHP Error] require_once(/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php): failed to open stream: No such file or directory [line 12 of /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php]
PHP Fatal error: require_once(): Failed opening required '/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php' (include_path='/usr/share/php/data/propel_generator/lib:/home/casper/Desktop/*/vendor/propel/propel1:/usr/share/php/../classes:.:/usr/share/php:/usr/share/pear') in /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php on line 12
(folder contains domain of the website, replaced with *)
I suppose the error is it is trying to include:
/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php
While it should be trying to include:
/home/casper/Desktop/*/vendor/propel/propel1/runtime/stubs/functions.php
Any help would be greatly appreciated.
(Full result of propel-gen: http://pastebin.com/raw.php?i=hzp4caws)
*I am running Ubuntu 14.10

PHPunit test not working

I'm trying to learn zend framework 2 with this phpunit added, but I cannot get it work. I've followed the steps in the official zf2 tutorial (http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html) and now I'm facing some kind of error message clueless
Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\php\zend_framework\library;\php\pear\PEAR') in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
PS C:\xampp\htdocs\new103\module\Application\test>
Needed to change the php.ini include_path to list of absolute paths, phpunit can be ran now.

Run Kohana framework+php script in linux command prompt

We have a ubuntu server where we dump our Kohana framework+php code & want to run it through cron job. But when we try it in command line it shows the following error:
root#andola-dev:~# php /var/www/realradius/index.php /var/www/realradius/system/core/Bootstrap.php
Warning: require(/root/system/core/Bootstrap.php): failed to open stream: No such file or directory in /var/www/realradius/index.php on line 139
Fatal error: require(): Failed opening required '/root/system/core/Bootstrap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/realradius/index.php on line 139
Linux filesystems are case sensitive, windows ones are not. Bootstrap.php is usually lowercase. Try fixing that.

Categories