Nâo estou conseguindo iniciar o localhost, nem atraves php servidor local ou xampp. Nas duas opções ocorrem erros.
PHP Local. 'gustavo@gustavo-Spin-SP314-51:/opt/lampp/htdocs/gerenciador_cursos$ php -S localhost:8080 -t public [Sat Nov 28 22:59:34 2020] PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: /usr/lib/php/20190902/pdo_sqlite (/usr/lib/php/20190902/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_sqlite.so (/usr/lib/php/20190902/pdo_sqlite.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 [Sat Nov 28 22:59:34 2020] PHP 7.4.3 Development Server (http://localhost:8080) started [Sat Nov 28 23:00:04 2020] 127.0.0.1:58630 Accepted [Sat Nov 28 23:00:04 2020] 127.0.0.1:58634 Accepted [Sat Nov 28 23:00:04 2020] PHP Warning: require(/opt/lampp/htdocs/gerenciador_cursos/public/../vendor/autoload.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/gerenciador_cursos/public/listar-cursos.php on line 2 [Sat Nov 28 23:00:04 2020] PHP Fatal error: require(): Failed opening required '/opt/lampp/htdocs/gerenciador_cursos/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /opt/lampp/htdocs/gerenciador_cursos/public/listar-cursos.php on line 2 [Sat Nov 28 23:00:04 2020] 127.0.0.1:58630 [500]: GET /listar-cursos.php - require(): Failed opening required '/opt/lampp/htdocs/gerenciador_cursos/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /opt/lampp/htdocs/gerenciador_cursos/public/listar-cursos.php on line 2 [Sat Nov 28 23:00:04 2020] 127.0.0.1:58630 Closing [Sat Nov 28 23:00:05 2020] 127.0.0.1:58638 Accepted'
XAMPP Endereço: http://localhost/gerenciador_cursos/public/listar-cursos.php
'Warning: require(/opt/lampp/htdocs/gerenciador_cursos/public/../vendor/autoload.php): failed to open stream: Arquivo ou diretório não encontrado in /opt/lampp/htdocs/gerenciador_cursos/public/listar-cursos.php on line 2
Fatal error: require(): Failed opening required '/opt/lampp/htdocs/gerenciador_cursos/public/../vendor/autoload.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/gerenciador_cursos/public/listar-cursos.php on line 2'