Ask, reply and learn. Join the community of Akaunting.
php artisan serve
in browser: localhost:8000
PHP Fatal error: Unknown: Failed opening required '/home/sudhanshu/Desktop/2020/Akaunting/akaunting/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
setup nginx to point to akaunting
now getting internal server error:
2020/08/20 21:02:13 [error] 8145#8145: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/home/sudhanshu/Desktop/2020/Akaunting/akaunting/storage/framework/views/f0c54525120b4fcab0beffb0f100e55fded098ba.php): failed to open stream: Permission denied in /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:135
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(135): file_put_contents()
#2 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(150): Illuminate\Filesystem\Filesystem->put()
#3 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile()
#4 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/...PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/home/sudhanshu/Desktop/2020/Akaunting/akaunting/storage/framework/views/f0c54525120b4fcab0beffb0f100e55fded098ba.php): failed to open stream: Permission denied in /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:135
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(135): file_put_contents()
#2 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(150): Illuminate\Filesystem\Filesystem->put()
#3 /home/sudhanshu/Desktop/2020/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile()
#4 /home/sud
Could be blocked from writing files by SELinux. I had to use this to set permissions:
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/akaunting/storage(/.*)?'
# restorecon -Rv /var/www/akaunting/storage
$ semanage fcontext -a -t httpd_sys_rw_content_t '/home/sudhanshu/Desktop/2020/Akaunting/akaunting/storage(/.*)?'
Traceback (most recent call last):
File "/usr/sbin/semanage", line 28, in
import seobject
File "/usr/lib/python3/dist-packages/seobject.py", line 1039, in
class portRecords(semanageRecords):
File "/usr/lib/python3/dist-packages/seobject.py", line 1041, in portRecords
valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "port_type"))[0]["types"])
File "/usr/lib/python3/dist-packages/sepolicy/__init__.py", line 196, in
return ({
File "/usr/lib/python3/dist-packages/setools/typeattrquery.py", line 65, in results
for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'
Error on php artisan serve
[Thu Sep 10 00:22:28 2020] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Sep 10 00:22:28 2020] PHP Fatal error: Unknown: Failed opening required '/home/sudhanshu/Desktop/2020/Akaunting/akaunting/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
https://stackoverflow.com/questions/63840804/problem-executing-semanage-command-on-ubuntu-18-04
Showing 1 to 6 of 6 discussions