i trying upload web app (which made using laravel 5) digitalocean droplet. 404 error:
the requested url /public/login not found on server.
this apache2.conf
<directory /> options followsymlinks allowoverride none require denied </directory> <directory /usr/share> allowoverride none require granted </directory> <directory /var/www/html/hotelguide/public> options indexes followsymlinks allowoverride require granted </directory>
000-default.conf
<virtualhost *:80> serveradmin webmaster@localhost documentroot /var/www/html/hotelguide/public errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined </virtualhost>
this output of php artisan route:list
update: laravel log
stack trace: #0 /var/www/html/hotelguide/vendor/symfony/console/application.php(183): symfony\component\console\application->find('routes') #1 /var/www/html/hotelguide/vendor/symfony/console/application.php(117): symfony\component\console\application->dorun(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #2 /var/www/html/hotelguide/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php(107): symfony\component\console\application->run(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #3 /var/www/html/hotelguide/artisan(36): illuminate\foundation\console\kernel->handle(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #4 {main}
update: php error log (last error)
124.43.95.22 - - [02/sep/2016:14:01:29 +0530] "get /login http/1.1" 500 206 "-" "mozilla/5.0 (windows nt 10.0; wow64) applewebkit/537.36 (khtml, gecko) chrome/52.0.2743.116 safari/537.36"
after completing steps detailed alexey getting http 500 error.
update: htaccess file
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes if not folder... rewritecond %{request_filename} !-d rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] # handle authorization header rewritecond %{http:authorization} . rewriterule .* - [e=http_authorization:%{http:authorization}] </ifmodule>
based on previous discussion :
- your apache_run_user & apache_run_group www-data
- your
/var/www/html/hotelguide/public
folder owner root , group www-pub
the current permission of public
folder not apache.
therefore have give permission apache in directory, , that, have type command :
chown -r www-data:www-data /var/www/html/hotelguide/
Comments
Post a Comment