Laravel 5.4 problem - Wrong Route (Not Found) on Ubuntu 16.04

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=7CatEn5IAlo



Duration: 4:11
26,124 views
194


i'm trying to change a route in web.php, like this :

Route::get('/', function(){
return redirect()-to('/test');
});
Route::resource('test', 'TestController');

but, the page showing "Not Found".
in my laravel project, i only change a route in web.php ..

hem, what's the problem?

maybe you must run this script :
sudo a2enmod rewrite
sudo service apache2 restart

then open file :
sudo gedit /etc/apache2/sites-available/000-default.conf

and add some script (see the script in this video for details)




Other Videos By Ambar Hasbiyatmoko


2017-05-28Plop boot manager problem (on Virtualbox) - port 1 device connected. then hangs & freeze
2017-05-26Laravel error - Uncaught exception 'ReflectionException' with message Class App\Http\Kernel
2017-05-26Virtualbox problem - Host only network not work on Ubuntu server 16.04
2017-05-25Teamviewer error (on Ubuntu) - The TeamViewer daemon is not running!
2017-05-20Laravel 5.4 (on ubuntu) - Simple laravel CRUD from scratch [part 3]
2017-05-20Ubuntu 16.04 (Steam error) - The cache has no package named 'steam'
2017-05-14Ubuntu 14.04 - perl: warning: Please check that your locale settings: LANGUAGE = (unset)
2017-05-14Laravel 5.4 - how to use laravel datatables (yajra v.7.0)
2017-05-12Laravel 5.4 - How laravel works (simple flow) - [part2]
2017-05-12Laravel 5.4 error - Cannot call constructor
2017-04-30Laravel 5.4 problem - Wrong Route (Not Found) on Ubuntu 16.04
2017-04-30Ubuntu 16.04 problem - Could not get lock in folder var lib when trying to install with apt-get
2017-04-28Fix PHP - Ubuntu 16.04 phpinfo shows blank Page (PHP 7.0)
2017-04-28Install Laravel 5.4 on Ubuntu 16.04 (with PHP 7.0) [part1]
2017-04-25Problem installing laravel(Ubuntu) - phpunit/phpunit 57 requires ext dom the requested PHP extension
2017-04-24Android Studio Error - android.os.NetworkOnMainThreadException
2017-04-24Android Studio Error - Cannot resolve symbol 'DefaultHttpClient'
2017-04-23VirtualBox - Connect guest to guest (Ubuntu and Centos7)
2017-04-22PHP tutorial : run C program from PHP on Ubuntu
2017-04-21Block port (SSH) on centos7 with IPTables
2017-04-20Install + Running Phpmyadmin on nginx (Ubuntu 16.04)



Tags:
laravel
route
framework
not found
apache2
rewrite
allowoverride
virtualhost
ubuntu
linux
terminal
restart
script
contoller
missing