I Have installed Laravel on my Windows. So While accessing http://localhost:8000/phpmyadmin it doesn't seem to be working since it has some kind of conflict with laravel routes.
Sorry, the page you are looking for could not be found.
1/1NotFoundHttpException in RouteCollection.php line 161:
How can I fix this?
javad71
It would appear that your issue is this. When you run your server for you laravel installation, your system is looking at the /path/to/code/public folder. This folder in the Laravel installation does have an .htaccess file that does some 'magic' for laravel translating the url you visit into the correct route.
Thus, the configuration inside of the phpmyadmin setup is not getting hit when you visit /phpmyadmin from the browser at the root of your laravel project.
A couple suggestions here for this.
1: Change Laravel to not use port 8000 if you can typically run phpmyadmin from that domain. If you started laravel server by running the artisan command, the port can be changed by running php artisan serve --port 8888 where 8888 is any other open port.
2: In the PHP My Admin configuration, change the port number it listens on to something else.
-Brian
javed71.
Not sure what you are trying to accomplish but PHPMyadmin is supposed to be installed together with your Apache, PhP and MySQL if you're using XAMPP or WAMP. Visting http://localhost/phpmyadmin and resulting to 404 or PageNotFound error means that there is no running instance of Apache on your machine. However, laravel has a command for running its own service via php artisan serve.
If you are trying to just visit PhPMyAdmin, make sure you've installed XAMPP, WAMP or any stacked servers. Hope these help.
Related
Im trying to run already working laravel project (page that works well on cloud) on localhost. Cant figure where is problem.
Code editor: PhpStorm (newest version)
Apache: MAMP 2.2.27
I want to make some changes in code and I want to see those changes.
MAMP Ports
When I try to Run it via PhpStorm setup
PhpStorm Deplyment
My PHP
How do I run this project on localhost? Thank you for your answer.
You're running it in PhpStorm on a built-in web server on a default port. Try changing the port for your "web" in-place deployment configuration: web server root url should look like https://localhost:8888/web
Try to run the project root directory:php artisan serve.
If you can visit.
Maybe problem in apache config.
I have a whole project with database, everything is working here.
Project with database
I would like to run website so I can see changes I have made.
Im using XAMPP. My configs for VirtualHost hosts and http-vghosts.conf
I have tried this https://youtu.be/iXYCnYRalaw?t=2m13s ->> from [2:13] to [4:22]
using XAMPP, but still cant run it.
Can you give me any advice or steps how to make website run on my PC? [ofcourse just for me (VirtualHost)].
Editor using: Atom
My PC spec
If running laravel appliation inside XAMPP htdocs folder is really necessary, then could you provide some kind of error, simply telling "it doesn't work" doesn't help at all.
One thing you can try is to open command prompt inside laravel folder and run
php artisan serve
This will open local server that runs current project in:
http://127.0.0.1:8000
Also, checking laravel minimum requirements is something you should check out. 5.5 requires PHP 7 and you didnt tell what XAMPP version you are running.
I need to understand this behavior.
I use xampp for web development. I start to apache server in the xampp gui and then I can start my projects in the browser via localhost...
Since yesterday I have added laravel to my mac book. My project is in the xampp htdocs folder and I want to use it witch xampp. But when the xampp apache server instance is running, nothing is happened to my laravel project until I run php artisan serve in the cmd.
How can I combine larael with xampp?
And what exactly does php artisan serve do? Start another apache server instance?
The artisan command is just a command line utility for laravel. The serve command just starts up the PHP server.
to run it without artisan you can Configure a server virtual-host (Apache or Nginx) which have the public directory of your project as root directory. Since you are using a MAC I can't exactly instruct you to how to do that.
NOTE
this will help to create the virtual host. but i haven't tried that
sorry i can't comment due to reputation :/ i use lumen (rest api of laravel) with xampp and it works fine. Can you provide somemore details?
I also think the path is the problem. Which path you use to access it via a browser? for lumen its /htdocs/project/public/ so in browser: http://localhost/project/public/
there i can access the api. should be similar for full laravel project?
Create virtual host and point it to laravel_directory/public/index.php and restart apache.
Creating apache virtual host:
http://laravel-recipes.com/recipes/25/creating-an-apache-virtualhost
If you don't want to do that load, localhost/lara_dir/public/index.php
index.php is where all the requests go through.
I have a DigitalOcean server running Ubuntu 14.04. I'm using this as a host for my web-development projects.
Now I want to start using Laravel for a project of mine, but I have a question about this.
In the /var/www/html folder of Ubuntu I created a folder, let's say, "project". In this folder I installed Laravel using this tutorial. Now everything is setup I want to run Laravel so I can test it and start developing on it.
When I run the command php artisan serve from within the "project"-folder it says "running on http://localhost:8000". So it's working.
But how do I access it? When I go to http://example.com/project it just shows me the files in that folder.
So it's running on the localhost on my server. Does that mean that it is external-accesible (the url above) or how does this work? (I guess the port is also different, 8000 instead of the default 80 for Apache)
I hope the question is clear and someone can help me out.
I have a Laravel project up and running on Digital Ocean with the Ubuntu 14.04 x64 vmlinuz-3.13.0-24-generic (1221) kernal.
I don't think you should be using php artisan serve for this purpose, as that is more for your local computer if you would like to preview your webpage if you don't want to use Apache.
To get set up, I used the excellent below instructions that were incredibly helpful. As you can see, there are many steps that you should carefully follow to get things up and running.
https://github.com/susanBuck/dwa15-fall2016-notes/blob/master/01_Servers_and_Git/07_Deploy_to_Digital_Ocean.md
Let me know if that helps you, and feel free to follow up with more questions if you get stuck on a step.
I tried installing laravel.
I installed xampp then the composer.
I followed the documentation but when i'm installing laravel, i always get this:
http://i975.photobucket.com/albums/ae238/Mochi_Ongpin/help_zpsb8870025.png
Can someone please help me? I already tried several times but failed.
Your Laravel is already installed, it timed out in the very last thing it does, which is create the compiled classes files bootstrap/compiled.php. If this file is present, delete it (it's not really necessary) and try to use your Laravel installtion.
Why is it timing out? Not sure, but you can, later, try to execute the command manually:
php artisan optimize
EDIT:
You successfully installed a Laravel application, but there is at least one other variable in this process: a web server. Without it you cannot see that success message.
Being on Windows you probably will have to install Apache 2 or WAMP, then create a Virtual Host for your Laravel application and hit: http://localhost/ to see that message.
You can also try to use Laravel's internal PHP server:
php artisan serve
And in your browser go to
http://localhost:8000