我正在使用安装有LAMP服务器的Linux Mint计算机上的Laravel开发一个网站。直到我尝试建立新的路由之前,一切似乎都可以正常工作,当时我意识到在浏览器中仅提供主页(查看“欢迎”)。其他任何路线均无效。我不明白为什么会这样。
我试图再安装一个应用程序,同样的事情发生了,我还尝试克隆该应用程序,并使用XAMPP将其放在Windows计算机上,一切正常。
我尝试运行$ ls -la
,这就是结果
total 288
drwxrwxr-x 14 appmeicher appmeicher 4096 Oct 26 18:45 .
drwxrwxr-x 6 appmeicher root 4096 Oct 23 19:33 ..
drwxrwxr-x 6 appmeicher appmeicher 4096 Oct 8 14:35 app
-rwxrwxr-x 1 appmeicher appmeicher 1686 Oct 8 14:35 artisan
drwxrwxr-x 3 appmeicher appmeicher 4096 Oct 8 14:35 bootstrap
-rwxrwxr-x 1 appmeicher appmeicher 1556 Oct 26 15:42 composer.json
-rwxrwxr-x 1 appmeicher appmeicher 178711 Oct 26 15:42 composer.lock
drwxrwxr-x 2 appmeicher appmeicher 4096 Oct 8 14:35 config
drwxrwxr-x 5 appmeicher appmeicher 4096 Oct 8 14:35 database
-rwxrwxr-x 1 appmeicher appmeicher 220 Oct 8 14:35 .editorconfig
-rwxrwxr-x 1 appmeicher appmeicher 800 Oct 24 19:55 .env
-rwxrwxr-x 1 appmeicher appmeicher 726 Oct 8 14:35 .env.example
drwxr-xr-x 2 appmeicher appmeicher 4096 Oct 22 17:21 fdmwebsite_files
drwxr-xr-x 8 appmeicher appmeicher 4096 Oct 26 18:46 .git
-rwxrwxr-x 1 appmeicher appmeicher 111 Oct 8 14:35 .gitattributes
-rwxrwxr-x 1 appmeicher appmeicher 163 Oct 8 14:35 .gitignore
-rwxrwxr-x 1 appmeicher appmeicher 1013 Oct 8 14:35 package.json
-rwxrwxr-x 1 appmeicher appmeicher 1156 Oct 8 14:35 phpunit.xml
drwxrwxr-x 7 appmeicher appmeicher 4096 Oct 26 12:50 public
-rwxrwxr-x 1 appmeicher appmeicher 4260 Oct 8 14:35 readme.md
drwxrwxr-x 6 appmeicher appmeicher 4096 Oct 8 14:35 resources
drwxrwxr-x 2 appmeicher appmeicher 4096 Oct 8 14:35 routes
-rwxrwxr-x 1 appmeicher appmeicher 563 Oct 8 14:35 server.php
drwxrwxr-x 5 appmeicher www-data 4096 Oct 8 14:35 storage
-rwxrwxr-x 1 appmeicher appmeicher 242 Oct 8 14:35 .styleci.yml
drwxrwxr-x 4 appmeicher appmeicher 4096 Oct 8 14:35 tests
drwxrwxr-x 42 appmeicher appmeicher 4096 Oct 26 15:42 vendor
-rwxrwxr-x 1 appmeicher appmeicher 538 Oct 8 14:35 webpack.mix.js
错误是404,看起来像是直接从服务器传来的,没有Laravel样式的错误,这就是为什么我什至没有标记Laravel的原因。