LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.31k stars 232 forks source link

http error 500 #561

Closed lollopanta closed 1 year ago

lollopanta commented 1 year ago

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

# 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 subdomain.mydomain.it

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/linkstack

# 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/linkstack">
    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

JulianPrieber commented 1 year ago

Make sure to copy hidden files as well when migrating files

JulianPrieber commented 1 year ago

Do you have a .env file in your root directory?

lollopanta commented 1 year ago

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?

JulianPrieber commented 1 year ago

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.

lollopanta commented 1 year ago

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.

lollopanta commented 1 year ago

can i give you credentials and you fix it?

JulianPrieber commented 1 year ago

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.

lollopanta commented 1 year ago

[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/

JulianPrieber commented 1 year ago

Check your file permissions

lollopanta commented 1 year ago

now loads the page giving error 500 however I gave permission 777 to all files

JulianPrieber commented 1 year ago

Do not give permission 777 to all files.

JulianPrieber commented 1 year ago

https://stackoverflow.com/questions/30639174/how-to-set-up-file-permissions-for-laravel

lollopanta commented 1 year ago

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

lollopanta commented 1 year ago

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]

0 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback()

1 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(534): Illuminate\Database\Connection->run()

2 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(397): Illuminate\Database\Connection->statement()

3 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php(35): Illuminate\Database\Schema\Builder->enableForeignKeyConstraints()

4 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(272): Illuminate\Database\SQLiteConnection->__construct()

5 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(75): Illuminate\Database\Connectors\ConnectionFactory->createConnection()

6 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(50): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection()

7 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(152): Illuminate\Database\Connectors\ConnectionFactory->make()

8 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(101): Illuminate\Database\DatabaseManager->makeConnection()

9 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(469): Illuminate\Database\DatabaseManager->connection()

10 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Database\DatabaseManager->__call()

11 /var/www/html/linkstack/resources/views/installer/installer.blade.php(10): Illuminate\Support\Facades\Facade::__callStatic()

12 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(109): require('...')

13 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(110): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()

14 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()

15 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(70): Illuminate\View\Engines\PhpEngine->evaluatePath()

16 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()

17 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()

18 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()

19 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()

20 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()

21 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(906): Illuminate\Http\Response->__construct()

22 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(875): Illuminate\Routing\Router::toResponse()

23 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Routing\Router->prepareResponse()

24 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}()

25 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

26 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle()

27 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

28 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()

29 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

30 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle()

31 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

32 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()

33 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle()

34 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

35 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()

36 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

37 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle()

38 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

39 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Pipeline\Pipeline->then()

40 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack()

41 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute()

42 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute()

43 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch()

44 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()

45 /var/www/html/linkstack/app/Http/Middleware/Headers.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

46 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\Headers->handle()

47 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

48 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

49 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()

50 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

51 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

52 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

53 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

54 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()

55 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

56 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

57 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

58 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle()

59 /var/www/html/linkstack/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

60 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Fideloper\Proxy\TrustProxies->handle()

61 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

62 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then()

63 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

64 /var/www/html/linkstack/index.php(63): Illuminate\Foundation\Http\Kernel->handle()

65 {main}

[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]

0 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback()

1 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(534): Illuminate\Database\Connection->run()

2 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(397): Illuminate\Database\Connection->statement()

3 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php(35): Illuminate\Database\Schema\Builder->enableForeignKeyConstraints()

4 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(272): Illuminate\Database\SQLiteConnection->__construct()

5 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(75): Illuminate\Database\Connectors\ConnectionFactory->createConnection()

6 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(50): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection()

7 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(152): Illuminate\Database\Connectors\ConnectionFactory->make()

8 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(101): Illuminate\Database\DatabaseManager->makeConnection()

9 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(469): Illuminate\Database\DatabaseManager->connection()

10 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Database\DatabaseManager->__call()

11 /var/www/html/linkstack/storage/framework/views/6276d12bd4013fde08abfc3c028d550aa4d9c6aa.php(7): Illuminate\Support\Facades\Facade::__callStatic()

12 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(109): require('...')

13 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(110): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()

14 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()

15 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(70): Illuminate\View\Engines\PhpEngine->evaluatePath()

16 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()

17 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()

18 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()

19 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()

20 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()

21 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(906): Illuminate\Http\Response->__construct()

22 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(875): Illuminate\Routing\Router::toResponse()

23 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Routing\Router->prepareResponse()

24 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}()

25 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

26 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle()

27 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

28 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()

29 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

30 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle()

31 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

32 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()

33 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle()

34 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

35 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()

36 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

37 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle()

38 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

39 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Pipeline\Pipeline->then()

40 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack()

41 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute()

42 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute()

43 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch()

44 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()

45 /var/www/html/linkstack/app/Http/Middleware/Headers.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

46 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\Headers->handle()

47 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

48 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

49 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()

50 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

51 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

52 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

53 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

54 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()

55 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

56 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

57 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

58 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle()

59 /var/www/html/linkstack/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

60 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Fideloper\Proxy\TrustProxies->handle()

61 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

62 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then()

63 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

64 /var/www/html/linkstack/index.php(63): Illuminate\Foundation\Http\Kernel->handle()

65 {main}

[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]

0 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(70): PDO->__construct()

1 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(45): Illuminate\Database\Connectors\Connector->createPdoConnection()

2 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php(37): Illuminate\Database\Connectors\Connector->createConnection()

3 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(221): Illuminate\Database\Connectors\SQLiteConnector->connect()

4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()

5 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1181): call_user_func()

6 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(539): Illuminate\Database\Connection->getPdo()

7 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(753): Illuminate\Database\Connection->Illuminate\Database\{closure}()

8 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback()

9 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(534): Illuminate\Database\Connection->run()

10 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(397): Illuminate\Database\Connection->statement()

11 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/SQLiteConnection.php(35): Illuminate\Database\Schema\Builder->enableForeignKeyConstraints()

12 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(272): Illuminate\Database\SQLiteConnection->__construct()

13 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(75): Illuminate\Database\Connectors\ConnectionFactory->createConnection()

14 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(50): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection()

15 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(152): Illuminate\Database\Connectors\ConnectionFactory->make()

16 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(101): Illuminate\Database\DatabaseManager->makeConnection()

17 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(469): Illuminate\Database\DatabaseManager->connection()

18 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Database\DatabaseManager->__call()

19 /var/www/html/linkstack/storage/framework/views/6276d12bd4013fde08abfc3c028d550aa4d9c6aa.php(7): Illuminate\Support\Facades\Facade::__callStatic()

20 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(109): require('...')

21 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(110): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()

22 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()

23 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(70): Illuminate\View\Engines\PhpEngine->evaluatePath()

24 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(195): Illuminate\View\Engines\CompilerEngine->get()

25 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()

26 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()

27 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()

28 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()

29 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(906): Illuminate\Http\Response->__construct()

30 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(875): Illuminate\Routing\Router::toResponse()

31 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Routing\Router->prepareResponse()

32 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}()

33 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

34 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle()

35 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

36 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()

37 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

38 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle()

39 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

40 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()

41 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle()

42 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

43 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()

44 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

45 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle()

46 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

47 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Pipeline\Pipeline->then()

48 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack()

49 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute()

50 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute()

51 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch()

52 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()

53 /var/www/html/linkstack/app/Http/Middleware/Headers.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

54 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\Headers->handle()

55 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

56 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

57 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()

58 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

59 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

60 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

61 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

62 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()

63 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

64 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

65 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

66 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle()

67 /var/www/html/linkstack/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

68 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Fideloper\Proxy\TrustProxies->handle()

69 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

70 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then()

71 /var/www/html/linkstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

72 /var/www/html/linkstack/index.php(63): Illuminate\Foundation\Http\Kernel->handle()

73 {main}

"}

JulianPrieber commented 1 year ago

Assuming your permissions are correct, you are missing some PHP extensions.

lollopanta commented 1 year ago

i don't have instaled sql lite extensionπŸ€¦β€β™€οΈ sorry for all

lollopanta commented 1 year ago

when i go on db setup passage: The requested URL was not found on this server.

JulianPrieber commented 1 year ago

Turn off any cache. This might still be a missing dependency or missconfigure vhost.

lollopanta commented 1 year ago

is in status 404 image

lollopanta commented 1 year ago

and this is vhost config

<VirtualHost *:443>

The ServerName directive sets the request scheme, hostname and port that

# 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

lollopanta commented 1 year ago

[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/

JulianPrieber commented 1 year ago

File permission issues

lollopanta commented 1 year ago

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#

JulianPrieber commented 1 year ago

Redis cache or simmilar

JulianPrieber commented 1 year ago

That did it for me

lollopanta commented 1 year ago

redis-cli FLUSHALL?

JulianPrieber commented 1 year ago

No idea

lollopanta commented 1 year ago

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

JulianPrieber commented 1 year ago

If you use the latest release there isnt really a reason to use composer update

lollopanta commented 1 year ago

mywebsite/db is a folder? or a file? if is a file where is located?

JulianPrieber commented 1 year ago

Its a route

lollopanta commented 1 year ago

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

JulianPrieber commented 1 year ago

These should be all you need: https://github.com/LinkStackOrg/linkstack-docker/blob/main/Dockerfile#L11-L37

JulianPrieber commented 1 year ago

Also make sure you have mod_rewrite enabled.

lollopanta commented 1 year ago

I think did It but Can you show me guide?

JulianPrieber commented 1 year ago

https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-20-04

lollopanta commented 1 year ago

Ok It works for now thanks

JulianPrieber commented 1 year ago

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.