I'm trying to install pterodactyl server management panel on my CentOS 7 server.. I did chown and chmod stuff like docs told me so. But when i try to open the website i see a blank page (phpinfo.php file works like it should work)
output of www-error.log
[22-Nov-2017 16:49:58 UTC] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/pterodactyl/storage/logs/laravel-2017-11-22.log" could not be opened: failed to open stream: Permission denied in /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
Stack trace:
#0 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(107): Monolog\Handler\StreamHandler->write(Array)
#1 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)
#2 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#3 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(616): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)
#4 /var/www/html/pterodactyl/vendor/laravel/framework/src/Illuminate/Log/Writer.php(203): Monolog\Logger->error(Ob in /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 107
You should create the following folder /var/www/html/pterodactyl/storage/logs/ then change the permission so Apache or Nginx can write to that folder.
Related
Warning: require(/usr/share/php/wp-stack-cache.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\model\public_html\wp-content\mu-plugins\wp-stack-cache.php on line 31
Fatal error: Uncaught Error: Failed opening required '/usr/share/php/wp-stack-cache.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\model\public_html\wp-content\mu-plugins\wp-stack-cache.php:31 Stack trace: #0 C:\xampp\htdocs\model\public_html\wp-settings.php(322): include_once() #1 C:\xampp\htdocs\model\public_html\wp-config.php(82): require_once('C:
xampp
htdocs...') #2 C:\xampp\htdocs\model\public_html\wp-load.php(37): require_once('C:
xampp
htdocs...') #3 C:\xampp\htdocs\model\public_html\wp-blog-header.php(13): require_once('C:
xampp
htdocs...') #4 C:\xampp\htdocs\model\public_html\index.php(17): require('C:
xampp
htdocs...') #5 {main} thrown in C:\xampp\htdocs\model\public_html\wp-content\mu-plugins\wp-stack-cache.php on line 31
There has been a critical error on this website.
Can anyone help me out?
I see you're trying to copy a WordPress website down to your localhost, I've had to do this from a Linux server not too long ago and found this plugin (https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/) to be super helpful. Install it and export it to a file and then import it and it should clear up the majority of the problems you're having!
I am trying to load my project on the live server.
these are the specs
PHP version 5.6
Server : Windows
I have loaded all the files and chmod 777
Storage
Vendor
bootstrap/cache
but it keeps giving me the following streaming error:
Fatal error: Uncaught exception 'UnexpectedValueException' with
message 'The stream or file
"C:\inetpub\wwwroot\websites\mysite\storage/logs/laravel.log" could
not be opened: failed to open stream: Permission denied' in
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:87
Stack trace: #0
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php(37):
Monolog\Handler\StreamHandler->write(Array) #1
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Logger.php(336):
Monolog\Handler\AbstractProcessingHandler->handle(Array) #2
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Logger.php(615):
Monolog\Logger->addRecord(400, Object(UnexpectedValueException),
Array) #3
C:\inetpub\wwwroot\websites\mysite\vendor\laravel\framework\src\Illuminate\Log\Writer.php(202):
Monolog\Logger->error(Object(UnexpectedValueExc
in C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php on
line 87
Fatal error: Uncaught exception 'UnexpectedValueException' with
message 'The stream or file
"C:\inetpub\wwwroot\websites\mysite\storage/logs/laravel.log" could
not be opened: failed to open stream: Permission denied' in
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:87
Stack trace: #0
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php(37):
Monolog\Handler\StreamHandler->write(Array) #1
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Logger.php(336):
Monolog\Handler\AbstractProcessingHandler->handle(Array) #2
C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Logger.php(615):
Monolog\Logger->addRecord(400,
Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)>
3 C:\inetpub\wwwroot\websites\mysite\vendor\laravel\framework\src\Illuminate\Log\Writer.php(202):
Monolog\Logger->er
in C:\inetpub\wwwroot\websites\mysite\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php on
line 87
You need to allow writing for logs dir chmod -R 777 storage/logs
You didn't set permissions correctly. You're on Windows, so read this or this. storage folder with all subfolders and files should be accessible to r&w.
I had a similar problem, turns out the server didnt create the file with the correct owner, even though permissions were set correctly. Hope this helps someone!
I deleted that particular log (im using daily logs) and it worked again.
Delete laravel.log file inside logs folder.
It worked for me.
so my script is running in my localhost(pc1) and i am trying to save an excel file using phpexcel in a network folder (\\pc2\c$\myfolder) but it gives me an error saying that i dont have permission in that particular folder eventhough i have a full access. I can manually create, edit or deleta a file in that folder.
error msg:
Warning: fopen(\\pc2\c$\myfolder\12122014.xls) [function.fopen]: failed to open stream: Permission denied in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php on line 90
Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'Can't open \\pc2\c$\myfolder\12122014.xls. It may be in use or protected.' in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php:93 Stack trace: #0 C:\wamp\www\receivables\PHPExcel\Writer\Excel5.php(226): PHPExcel_Shared_OLE_PPS_Root->save('\\ipcsvs001\c...') #1 C:\wamp\www\receivables\index.php(241): PHPExcel_Writer_Excel5->save('\\ipcsvs001\c...') #2 {main} thrown in C:\wamp\www\receivables\PHPExcel\Shared\OLE\PPS\Root.php on line 93
note: i am using wamp server(not sure if this matters)
I have Fedora18 and was trying to install cakephp . But it shows
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323
Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/www/html/cakem2/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/cakem2/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/html/cakem2/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/cakem2/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/html/cakem2/lib/Cake/Core/Configure.php(72): include('/var/www/html/c...') #3 /var/www/html/cakem2/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/html/cakem2/app/webroot/index.php(94): include('/var/www/html/c...') #5 /var/www/html/cakem2/index.php(41): require('/var/www/html/c...') #6 {main} thrown in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 181
Following the answers Similar Question, I have made all the directory and sub-directory writable as shown in . But I am still getting the error ! Whats wrong ?
chown the folders / files so that the user matches the user which httpd or Apache uses to access these files. I don't know the user for fedora, i think its apache or httpd. In ubuntu its www-data.
http://fedoraproject.org/wiki/Administration_Guide_Draft/Apache
I am trying to follow the instructions for the cakephp tutorial found here: http://book.cakephp.org/2.0/en/getting-started.html
I uploaded the CakePHP files to my webserver, created the database using MySQL workbench, and created database.php and updated it to point to my MySQL server.
At this point it sounds like I should be able to open up the website in my browser and see something, but instead I get these errors (I have removed the full path):
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /caketut/lib/Cake/Cache/Cache.php on line 325
Warning: caketut/app/tmp/cache/persistent/ is not writable in /www/premium/med/pediatrics/www.hobmt.umn.edu/htdocs/caketut/lib/Cake/Cache/Engine/FileEngine.php on line 380
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /caketut/lib/Cake/Cache/Cache.php:181
Stack trace:
#0 /caketut/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')
#1 /caketut/app/Config/core.php(367): Cache::config('_cake_core_', Array)
#2 /caketut/lib/Cake/Core/Configure.php(72): include('/www/premium/me...')
#3 /caketut/lib/Cake/bootstrap.php(177): Configure::bootstrap(true)
#4 /caketut/app/webroot/index.php(92): include('/www/premium/me...')
#5 {main} thrown in /caketut/lib/Cake/Cache/Cache.php on line 181
I tried setting the permissions for the Cache folder located in /caketut/lib/Cake and all subfolders/files to be 0776, and this removes all errors except this one:
Fatal error: Class 'Cache' not found in /caketut/app/Config/core.php on line 361
I tried doing searches but was unsuccessful in finding a solution. I would really appreciate any assistance!
try to chmod the whole script with 0777 permissions .
sudo chmod -R 0777 caketut