Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Admin Panel 404 ERROR #55

Open
jeazyee opened this issue Dec 27, 2016 · 4 comments
Open

Admin Panel 404 ERROR #55

jeazyee opened this issue Dec 27, 2016 · 4 comments

Comments

@jeazyee
Copy link

jeazyee commented Dec 27, 2016

Hey, i've got this error on Admin Panel:

/var/aion/www/bootstrap/cache/compiled.php#8913 Symfony\Component\HttpKernel\Exception\NotFoundHttpException if (count($others) > 0) { return $this->getRouteForMethods($request, $others); } throw new NotFoundHttpException(); } protected function checkForAlternateVerbs($request) {

my laravel logs are empty 😨 (storage/logs) no files inside except the .gitignore

and NGINX logs:
Error Log:
2016/12/27 13:43:22 [error] 10099#0: *4864 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 13:43:25 [error] 10099#0: *4866 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 13:43:27 [error] 10099#0: *4864 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 13:48:32 [error] 10099#0: *4880 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 14:02:53 [emerg] 13413#0: duplicate location "/" in /etc/nginx/conf.d/virtual.conf:190 2016/12/27 14:02:58 [emerg] 13439#0: duplicate location "/" in /etc/nginx/conf.d/virtual.conf:190 2016/12/27 14:05:19 [error] 13481#0: *1 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 14:05:19 [error] 13481#0: *9 directory index of "/var/aion/www/" is forbidden, client: 78.43.39.142, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com" 2016/12/27 15:43:40 [error] 13515#0: *6 directory index of "/var/aion/www/" is forbidden, client: 77.153.108.94, server: aion.jeazyee.com, request: "GET / HTTP/1.1", host: "aion.jeazyee.com"

i did produced it on a windows computer which got the same setup of DB's as it have on this server after producing i did transfered it there and inserted the DB's of the windows computer to the server may this caused this problem?

Here are some warnings which occured while npm -install:

$ npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch okidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64" }) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\gu lp-watch\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64" })

Greetings, Jeazyee

@ghost
Copy link

ghost commented Dec 27, 2016

First of all run php artisan cache:clear at root of the project and try again.
Then why npm says that your os is win32 if you run it under Fedora ?

@jeazyee
Copy link
Author

jeazyee commented Dec 27, 2016

@Sipherion I did made all that steps of the description on my windows computer then i transfered the files to the web root of my CentOS7 Server.

I found a solution:

I runned those commands:
$ find -type d -exec chmod 755 {} \ ;
$ find -type f -exec chmod 644 {} \ ;
$ chown apache:apache -R *

apache because php cgi runs as apache on my server :D

this solved the problem now it shows the page but if i click into example shop add item it shows again in Exeptions (but page is still shown and seems to work):

/var/aion/www/bootstrap/cache/compiled.php#8913 Symfony\Component\HttpKernel\Exception\NotFoundHttpException if (count($others) > 0) { return $this->getRouteForMethods($request, $others); } throw new NotFoundHttpException(); } protected function checkForAlternateVerbs($request) {

@ghost
Copy link

ghost commented Dec 28, 2016

I think you should make complete install using a fresh copy of this depot into your Linux environment for dependencies to be correctly setted.

@ghost
Copy link

ghost commented Jan 9, 2017

Any news ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant