Closed lollopanta closed 1 year ago
Make sure to copy hidden files as well when migrating files
Do you have a .env file in your root directory?
Do you have a .env file in your root directory?
By root directory do you mean /root or the .env file inside the linkstack folder?
You'll have to move your hidden files to your web dir from wherever you unzipped them or just unzip them again but make sure to copy hidden files this time.
You'll have to move your hidden files to your web dir from wherever you unzipped them or just unzip them again but make sure to copy hidden files this time.
ah no those I already have them there I was thinking about the /root/ directory.
can i give you credentials and you fix it?
It's not advisable to share your system credentials with anyone.
If you look at your webserver's error log, you should have some error output there.
[Tue Sep 12 00:00:48.930397 2023] [mpm_prefork:notice] [pid 853] AH00163: Apache/2.4.57 (Ubuntu) configured -- resuming normal operations [Tue Sep 12 00:00:48.930454 2023] [core:notice] [pid 853] AH00094: Command line: '/usr/sbin/apache2' [Tue Sep 12 05:08:15.860202 2023] [php:error] [pid 146777] [client xxx.xxx.xxx.xxx:54126] script '/var/www/html/upl.php' not found or unable to stat [Tue Sep 12 05:08:16.954162 2023] [php:error] [pid 146781] [client xxx.xxx.xxx.xxx:54168] script '/var/www/html/1.php' not found or unable to stat [Tue Sep 12 05:08:18.918931 2023] [php:error] [pid 146778] [client xxx.xxx.xxx.xxx:54184] script '/var/www/html/password.php' not found or unable to stat [Tue Sep 12 05:08:19.157581 2023] [php:error] [pid 146780] [client xxx.xxx.xxx.xxx:54192] script '/var/www/html/info.php' not found or unable to stat [Tue Sep 12 12:10:42.414073 2023] [php:error] [pid 149263] [client xxx.xxx.xxx.xxx:34090] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/linkstack/storage/framework/views/1d5fe03d7a747a383f44ea066421b88502fa81b3.php): Failed to open stream: Permission denied in /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#20 {main}\n thrown in /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190, referer: http://xxx.xxx.xxx.xxx/ [Tue Sep 12 12:10:42.416499 2023] [php:error] [pid 149263] [client xxx.xxx.xxx.xxx:34090] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/linkstack/storage/framework/views/1d5fe03d7a747a383f44ea066421b88502fa81b3.php): Failed to open stream: Permission denied in /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(246): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()\n#20 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#21 {main}\n thrown in /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190, referer: http://xxx.xxx.xxx.xxx/
Check your file permissions
now loads the page giving error 500 however I gave permission 777 to all files
Do not give permission 777 to all files.
i do it but nothing and apache console don't say nothing. here list of command i did.
sudo chown -R www-data:www-data /var/www/html/linkstack cd /var/www/html/linkstack sudo find . -type f -exec chmod 664 {} \; sudo find . -type d -exec chmod 775 {} \; sudo chgrp -R www-data storage bootstrap/cache sudo chmod -R ug+rwx storage bootstrap/cache
here laravel log
[2023-09-12 14:27:31] local.ERROR: could not find driver (SQL: PRAGMA foreign_keys = ON;) {"view":{"view":"/var/www/html/linkstack/resources/views/installer/installer.blade.php","data":[]},"exception":"[object] (Spatie\LaravelIgnition\Exceptions\ViewException(code: 0): could not find driver (SQL: PRAGMA foreign_keys = ON;) at /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760) [stacktrace]
[previous exception] [object] (Illuminate\Database\QueryException(code: 0): could not find driver (SQL: PRAGMA foreign_keys = ON;) at /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760) [stacktrace]
[previous exception] [object] (PDOException(code: 0): could not find driver at /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70) [stacktrace]
"}
Assuming your permissions are correct, you are missing some PHP extensions.
i don't have instaled sql lite extensionπ€¦ββοΈ sorry for all
when i go on db setup passage: The requested URL was not found on this server.
Turn off any cache. This might still be a missing dependency or missconfigure vhost.
is in status 404
and this is vhost config
<VirtualHost *:443>
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName bio.lollopanta.it
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
[Tue Sep 12 14:55:14.378699 2023] [php:error] [pid 256342] [client 209.198.137.230:26501] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/storage/framework/views/31194b376a867d7e5a56653be65b2bc7a5c4040b.php): Failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#20 {main}\n thrown in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190 [Tue Sep 12 14:55:14.380107 2023] [php:error] [pid 256342] [client 209.198.137.230:26501] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/storage/framework/views/31194b376a867d7e5a56653be65b2bc7a5c4040b.php): Failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(246): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()\n#20 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#21 {main}\n thrown in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190 [Tue Sep 12 14:55:17.527036 2023] [php:error] [pid 256343] [client 209.198.137.230:50104] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/storage/framework/views/31194b376a867d7e5a56653be65b2bc7a5c4040b.php): Failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#20 {main}\n thrown in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190 [Tue Sep 12 14:55:17.527849 2023] [php:error] [pid 256343] [client 209.198.137.230:50104] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/storage/framework/views/31194b376a867d7e5a56653be65b2bc7a5c4040b.php): Failed to open stream: Permission denied in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(185): Illuminate\Filesystem\Filesystem->put()\n#4 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(62): Illuminate\View\Compilers\BladeCompiler->compile()\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()\n#7 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()\n#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()\n#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()\n#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->construct()\n#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()\n#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(626): Illuminate\Routing\ResponseFactory->view()\n#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(554): Illuminate\Foundation\Exceptions\Handler->renderHttpException()\n#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(460): Illuminate\Foundation\Exceptions\Handler->prepareResponse()\n#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(377): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()\n#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(233): Illuminate\Foundation\Exceptions\Handler->render()\n#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(210): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(246): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()\n#20 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()\n#21 {main}\n thrown in /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 190 [Tue Sep 12 15:00:22.006011 2023] [php:error] [pid 256346] [client 172.70.246.231:63770] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Seeder" not found in /var/www/html/database/seeders/AdminSeeder.php:10\nStack trace:\n#0 {main}\n thrown in /var/www/html/database/seeders/AdminSeeder.php on line 10, referer: https://bio.xxx xxx xxxa.it/database/seeders/ [Tue Sep 12 15:00:23.406859 2023] [php:error] [pid 268899] [client 172.70.246.231:60620] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Seeder" not found in /var/www/html/database/seeders/AdminSeeder.php:10\nStack trace:\n#0 {main}\n thrown in /var/www/html/database/seeders/AdminSeeder.php on line 10, referer: https://xxx xxx xxx/database/seeders/
File permission issues
is old log and when i clear cache root@v9494:/var/www/html# php artisan config:clear
INFO Configuration cache cleared successfully.
root@v9494:/var/www/html# php artisan config:cache PHP Fatal error: Cannot redeclare locales() (previously declared in /var/www/html/config/app.php:3) in /var/www/html/config/app.php on line 8
Symfony\Component\ErrorHandler\Error\FatalError
Cannot redeclare locales() (previously declared in /var/www/html/config/app.php:3)
at config/app.php:8 4β { 5β $value = env($key, $default); 6β $array = explode(',', $value); 7β $trimmedArray = array_map('trim', $array); β 8β return $trimmedArray; 9β } 10β 11β return [ 12β
Whoops\Exception\ErrorException
Cannot redeclare locales() (previously declared in /var/www/html/config/app.php:3)
at config/app.php:8 4β { 5β $value = env($key, $default); 6β $array = explode(',', $value); 7β $trimmedArray = array_map('trim', $array); β 8β return $trimmedArray; 9β } 10β 11β return [ 12β
+1 vendor frames
2 [internal]:0 Whoops\Run::handleShutdown() root@v9494:/var/www/html#
Redis cache or simmilar
That did it for me
redis-cli FLUSHALL?
No idea
when i try update composer it say this Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48 Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
If you use the latest release there isnt really a reason to use composer update
mywebsite/db is a folder? or a file? if is a file where is located?
Its a route
this is my php extension. is ok? [PHP Modules] bcmath calendar Core ctype curl date dom exif FFI fileinfo filter ftp gettext hash iconv intl json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session shmop SimpleXML sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib
[Zend Modules] Zend OPcache
These should be all you need: https://github.com/LinkStackOrg/linkstack-docker/blob/main/Dockerfile#L11-L37
Also make sure you have mod_rewrite enabled.
I think did It but Can you show me guide?
Ok It works for now thanks
You might find something in your error log. This is a generic error, it just means there was an error 500 when trying to migrate the database.
I'd recommend using SQLite in most cases.
Platform:
Ubuntu 22.04 LTS
Server type:Apache2 ...
PHP version:8.2
Hi, I have a problem with linkstack. I extracted the files from the downloaded zipper to the latest version and put them in the directory /var/www/html/linkstack/ but when I reach the site it gives me error 500 I followed all the steps and installed the dependencies but it doesn't work.
PS: apache and php doesn't give errors and it doesn't even create the log inside the directory /storage/log inside linkstack
apache configuartion
<VirtualHost *:443>
The ServerName directive sets the request scheme, hostname and port that