How to RUN LARAVEL after closing all connections - laravel

I have shut down my laptop and now how to continue on same project which I had proceeding at beginning,
I started XAMPP but still URL shows NOT FOUND for my directory .
i run it using :php artisan serve
Then URL:http://127.0.0.1:8000
it shows not found page

As laravel and php development environments, I highly recommend these to you.
Windows : https://laragon.org/
Mac OS :https://laravel.com/docs/8.x/valet

At first, open your cmd
Now get into the folder where you started your laravel project
Once you are in the laravel project through CMD run the command "php artisan serve"
Now you may check the URL once again.
I also faced the same issue hence tried to answer.
Thank you.

Related

laravel request session from other project

Hello I have a problem.
Laravel Installer 4.2.8
terminal original cmd of window
windows 10
the project its work fine yesterday.
but today it request session from other path than the project is runing.
i search for the other path in all the project but not find anythick
I get this error
OK I use php artisan config:clear and its work

Why is my recent Envoyer deployment not showing?

I just deployed using Envoyer and there were no errors. However, I don't see the new version of the site in my browser.
I SFTP'd into the server, and sure enough the new files are there.
I SSH'd into the current directory and ran php artisan cache:clear but it didn't make a difference; I still see the old version of the site.
I've done tons of deployments and never encountered this before. How do I fix this?
Just adding here. I ran into the same issue after changing the PHP version on the site inside of Forge. My server now has multiple versions of PHP on it. I had to go to the site inside of Envoyer, then go to the server, then updated the PHP version to the new PHP version of the site. Now, FPM will reload the proper PHP version.
From the symptoms you've listed, it sounds like OPcache is enabled.
Restart PHP with the following command:
sudo service phpX.X-fpm reload
Where X.X is the version of PHP you're using.
I was running into this as well, and solved it with the following steps
Go to "Servers" tab in Envoyer
Click "Update Server" icon
Enable "Reload FPM After Deployments"

Run laravel project files on wamp server without laravel and composer install

I'm currently new in laravel, I have laravel project files and I paste it to my www folder. I would like to ask if it is possible or is there any way to run a laravel project without installing composer and laravel in my localhost wamp server?
To run laravel project on windows without composer just follow the instruction :
Goto your project folder
Press Shift + Right Button
Select "open command window here" menu
It will open a command line then write "php artisan serve" command
It will active internal server in laravel and you will get an url looks like http://localhost:8000
So in the address bar of web browser put http://localhost:8000 and hit enter. Hope you will access your project.
But for the development purpose you have to install composer.
hope it will helpful. Let me know if you get any problem.

Laravel php artisan serve doesn't work

I have Laravel 5.3.16 installed. I have built my projects and until now it would work properly. but for the past few days I can't connect local host. I use the following command on mac terminal,
php artisan serve
and in terminal it's fine, but on my browser I get an error of server being busy!
can anyone tell me what is the problem?
The issue might be that the time you ran 'php artisan' serve wasn't stopped. You can check this by doing following steps:
Assuming you are on a OSX computer:
Open terminal
Run: ps -ef | grep php
Lookup if there is currently a Laravel process in use.
Get that id that is running the instance and kill it.
kill 012345
Try to run the command: php artisan serve again.

Artisan returns blank

Whenever I run any php artisan command like php artisan list, I get nothing back. No commands work at all.
I have been searching a little around, and have tried the following:
changing permissions for /root/.composer to 777
remove bootstrap/compiled.php file
There is nothing in app/storage/logs/log-cli-.txt.
I can view the site in the browser.
I'm running on CentOS 6.3 64bit with PHP v. 5.5.11 - Laravel 4.1
This problem is pretty common and is usually related to some errors that are not seen in the CLI like custom classes that failed to load, are you sure you have error reporting on?
Edit the file artisan and add the following lines just after the PHP opening tag <?php:
ini_set('display_errors',1);
error_reporting(-1);
Try running artisan again and see if there is any output.
If that doesn't work try reverting app/start/global.php to it's default state.
Running composer install solved the problem.
The solution for me was like #TheodoreR.Smith mentioned, there was an exit in a controller's __construct(). I removed it and route:list worked fine.
Came here after a cronjob wouldn't execute because of artisan containing an error in the CLI, thanks to this answer. So dropping my answer in case it could help someone.
The solution is switching to PHP 7.1+ (7.2 in my case) due to Laravel requirements.
Switching to 7.2 for me, wasn't enough. Both Apache and CLI were switched to 7.2 but the cronjob uses the default PHP version of the server (cPanel managed). Specifically executing the 7.2 version (in stead of global PHP) solved it for me, the cronjob command is:
* * * * * /usr/local/bin/ea-php72 /path/to/laravel/artisan schedule:run >/dev/null 2>&1
(remove > /dev/null 2>&1 if you want to see the output and bugfix the commands)
Make sure you don't have any exit() or die() in your route file.
That was the issue in my case as I was in the middle of testing some code in the route file when I realized that I couldn't run any artisan command.

Resources