I am trying to use simpleSAMLphp with Google App Engine by following the instructions on https://simplesamlphp.org/docs/stable/simplesamlphp-install#section_7
Instruction 6 says to configure apache using:
<VirtualHost *>
ServerName service.example.com
DocumentRoot /var/www/service.example.com
Alias /simplesaml /var/simplesamlphp/www
</VirtualHost>
I have added the following to the YAML file:
handlers:
- url: /simplesaml/(.*)
script: /var/simplesamlphp/www/\1
But I think I need to do something else.
When I run the server and try to visit http://localhost:8081/simplesaml/ I get the following error:
Warning: require(C:\Users\Walmsley\Documents\sso\var\simplesamlphp\www): failed to open stream: Permission denied in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 115
Fatal error: require(): Failed opening required '\var\simplesamlphp\www' (include_path='C:\Users\Walmsley\Documents\sso;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 115
I am new to php and simpleSAML. I also tried getting SAML working on my Java web app hosted on Google App Engine, but failed there as well, as some of the classes used by the SAML packages I tried were not whitelisted.
Should it be possible to get SAML working on Google App Engine php using simpleSAMLphp?
If I try the url: http://localhost:8081/simplesaml/index.php it redirects to http://localhost:8081/simplesaml/module.php/core/frontpage_welcome.php
And I get the error:
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(\var\simplesamlphp\www\module.php\core\frontpage_welcome.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 115
Fatal error: require(): Failed opening required '\var\simplesamlphp\www\module.php\core\frontpage_welcome.php' (include_path='C:\Users\Walmsley\Documents\sso;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 115
Based on your error message, most likely you don't have the folder
C:\Users\Walmsley\Documents\sso\var\simplesamlphp\www
Make sure you create it and put the PHP scripts there.
Related
I want test google plus api php client on my localhost machine, but it not working like they said. Can you guide me what to do?
require_once realpath(dirname(FILE) . 'google-api-php-client/src/Google/autoload.php');
Here the errors:
Warning: require_once(D:\xampp\htdocs\google_api): failed to open stream: Permission denied in D:\xampp\htdocs\google_api\login_with_gp.php on line 4
Fatal error: require_once(): Failed opening required '' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\google_api\login_with_gp.php on line 4
Be sure to have PHP installed in the localhost and the Apache server on. The files are in the right place, so it should work.
All of a sudden one of my client's sites stopped working
Error:
Warning: require_once(/home/logosist/public_html/includes/defines.php): failed to open stream: No such file or directory in /home/logosist/public_html/index.php on line 18
Fatal error: require_once(): Failed opening required '/home/logosist/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/logosist/public_html/index.php on line 18
From the error I can see that the directory path is wrong:
Should be
/home/public_html/logosist/includes/defines.php
and not
/home/logosist/public_html/includes/defines.php
Any idea on how to solve this problem?
Check you directories and files access permissions. I don't think that it is path problem. I've had the same and setting correct permissions solved it.
I have recently taken backup for my website and wanted to open with xampp on local host but it is showing following errors:
Warning: require_once(/home/content/28/11459128/html/system/startup.php): failed to open
stream: No such file or directory in C:\xampp\htdocs\myfolder\index.php on line 26
Fatal error: require_once(): Failed opening required
'/home/content/28/11459128/html/system/startup.php' (include_path='.;C:\xampp\php\PEAR') in
C:\xampp\htdocs\myfolder\index.php on line 26
Can any one help me with this issue.
Thanks,
GC
You need to change all the PATH in your project according to your local machine, or there must a variable in your config file i.e Path to project for local environment is C:/xampp/htdocs and for production server it must be /home/content/whatever. If it is not present you better create one.
I am pretty sure path won't start with / on Windows(local machine).
I have a CakePHP install that won't resolve paths correctly using include_path.
Here's an example of an error from the PHP log.
PHP Warning: include(\website\cakephp\lib\Cake\Utility\Debugger.php): failed to open stream: No such file or directory in D:\website\cakephp\lib\Cake\Core\App.php on line 545
PHP Warning: include(): Failed opening '\website\cakephp\lib\Cake\Utility\Debugger.php' for inclusion (include_path='.;d:\website') in D:\website\cakephp\lib\Cake\Core\App.php on line 545
PHP Fatal error: Class 'Debugger' not found in D:\website\cakephp\lib\Cake\Error\ErrorHandler.php on line 223
My website is installed on drive D: but all calls to App::uses resolve to paths where the drive letter has been removed.
I've specified include_path = ".;D:\website" in the php.ini file.
Not sure what else can be done to resolve this issue.
EDIT:
If I change the input_path to .;D:\ then includes start working correctly.
I'm thinking there is something wrong with how my index.php configures paths.
So I just moved my files to a production server (CentOS), where my DocumentRoot would be /srv/www/example.com/app/webroot. when accessing through a browser I get the following error.
PS: I have set apache to user group www-data and that group is owner of /home/user/ and its subfolders (containing CakePHP core) and also the group is owner of /srv/www/.
[15-Mar-2014 19:47:46] PHP Warning: SplFileInfo::openFile(/srv/www/example.com/app/tmp/cache/persistent/myapp_cake_core_file_map) [<a href='function.SplFileInfo-openFile'>function.SplFileInfo-openFile</a>]: failed to open stream: Success in /home/user/cakephp-core/cakephp-2.4.6/lib/Cake/Cache/Engine/FileEngine.php on line 355
[15-Mar-2014 19:47:46] PHP Warning: SplFileInfo::openFile(/srv/www/example.com/app/tmp/cache/persistent/myapp_cake_core_cake_dev_en-us) [<a href='function.SplFileInfo-openFile'>function.SplFileInfo-openFile</a>]: failed to open stream: Success in /home/user/cakephp-core/cakephp-2.4.6/lib/Cake/Cache/Engine/FileEngine.php on line 355
[15-Mar-2014 19:47:46] PHP Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /home/user/cakephp-core/cakephp-2.4.6/lib/Cake/Cache/Cache.php on line 325
[15-Mar-2014 19:47:46] PHP Fatal error: Call to undefined function error_get_last() in /home/user/cakephp-core/cakephp-2.4.6/lib/Cake/Core/App.php on line 911
Just noticed my PHP version is 5.1, this is probably the issue, getting 5.5. Close please.
Check if the app/tmp/ folder is writable by your web server user.