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.
Related
I have installed PHP and MySQL on IIS Server. It's giving this error.
Warning: include(D:***\application\views\errors\html\error_php.php): Failed to open stream: No such file or directory in D:\CANONICA\system\core\Exceptions.php on line 268
Warning: include(): Failed opening 'D:***\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\php\pear') in D:\CANONICA\system\core\Exceptions.php on line 268
Tried enabling all extensions also.
Installed PHP version 8.0
Database Getting connected and getting inserted also, but the above warnings are showing at the top of the page.
Tried with the empty controller, then also showing the same. anybody of you knows this to sort out?
If setting the permission in IIS publisher, then it will work.
When we are setting the domain inside IIS, grant all required permissions. then this error will not show.
This is what the error message says :
Warning: require(./wp-blog-header.php): failed to open stream: No such file or directory in /home/newapropos/public_html/index.php on line 17
Fatal error: require(): Failed opening required './wp-blog-header.php' (include_path='.:/opt/alt/php73/usr/share/pear') in /home/newapropos/public_html/index.php on line 17
but I don't know what to change in the line 17 to fix?
If you need to update your PHP version, you can follow this guide. The update process also depends on if you use Ubuntu, Nginx, or apache, etc... What I shared here is for Ubuntu.
I think check your php version should be greater than 7.4
I'm trying to install magento 1.x on my centos machine. After dowloading and extracting magento i faced this errrors
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /xxxx/app/Mage.php on line 54
I tried to run php shell/compiler.php compile the the errors disappeared and the installation page appeared but without any next or back buttons.
How can i fix this issue?
Make sure on the new server , you have permissions to open and rewrite files. some mangento extensions require full permissions before installations.
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.
I've been using Laravel 3 on a live website for a while, and decided to move the app to outside of docroot, delete the public_html folder, and symlink the public folder to the public_html one. I followed solution 1 here.
Having done that, my site has stopped loading, giving a 500 error. When I checked the error log in public/error_log, this message appears:
[05-Feb-2013 08:07:25] PHP Warning: chdir() [<a href='function.chdir'>function.chdir</a>]: No such file or directory (errno 2) in /home4/indieweb/indiewebseries/paths.php on line 62
[05-Feb-2013 08:07:25] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home4/indieweb/indiewebseries/public/laravel/laravel.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home4/indieweb/indiewebseries/public/index.php on line 34
Just for reference:
// paths.php on line 62:
chdir(__DIR__);
// index.php line 34:
require path('sys').'laravel.php';
Any ideas?
EDIT: I tried #TheShiftExchange suggestion, moved everything outside of docroot, and renamed public to public_html. I now get these php errors:
[07-Feb-2013 05:38:25] PHP Warning: chdir() [<a href='function.chdir'>function.chdir</a>]: No such file or directory (errno 2) in /home4/indieweb/paths.php on line 62
[07-Feb-2013 05:38:25] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home4/indieweb/public_html/laravel/laravel.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home4/indieweb/public_html/index.php on line 34
I found the solution. It turns out all my problems were irrelevant. For some reason, the PHP settings in my hosting account were reset, and all I had to do was switch the PHP version back to 5.4 to fix everything.