I was using Laravel 5.2 on windows 7/Wamp 3.0.6 perfectly fine. My company upgraded to Windows 10 and now localhost:8000 just hangs, and does not load anything. Still using Wamp 3.0.6 on windows 10.
I did a clean install of 5.2 as well as cloning my repo, and they both hang at localhost:8000.
I did a clean install of 5.3 as well as 5.5, and they both seem to work fine. (Does not hang at localhost:8000. It shows the Laravel welcome page)
Has anyone gotten laravel 5.2 to work with windows 10?
192..168.0.1 was being blocked at my firewall level, I have to specify host to be 127.0.0.1. Strange
I installed homestead using virtual box on my windows 10. Everything works really neat, plus homestead also has most configurations preset for laravel, as they belong together (as far as I know)
My setup of Laravel 5.2 is working fine on windows 10. There might be other issues. Please check the laravel error logs, Php error logs and Apache access and error logs to figure-out actual problem.
You can post these error logs here so we can help you out with the issue.
Related
I'm new to Mac Environment. My colleague recently gave me a Laravel project that I had to work on with a new cosmetic changes.
Like usual I get all the files and do the typical things like git the project, install composer, install npm, database setup, .env file setup and run the project.
I can open the project on the landing page. But what happened was, when I tried to sign in, I failed to enter the homepage. When I check the console it says: View error Message
POST http://localhost/aplikasi-laravel/MY/user/login 500 (Internal Server Error) Jquery-3.1.1.min.js: 4
Request URL: http://localhost/aplikasi-laravel/MY/user/login
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: [::1]:80
Referrer Policy: no-referrer-when-downgrade
For your information, if I install and create a new Laravel project on this OS, it works. But I need to work on this project. So I have no choice.
My Project Specifications are as below.
Laravel: Laravel Framework 5.4.36
PHP: 7.1.28
MySQL: 5.7.26
So what I'm doing is I install MAMP, downgrade to PHP 7.1.31 (only this php version is available), try running the project. Still failed. So I uninstalled it.
I tried using homebrew and XAMPP, and still failed.
My OS is Mac OS Catalina.
Because I wasting so may time setting up the environment on the mac, I'm try to use my PC with Windows 10 installed. So here's my setup.
Platform: XAMPP
PHP: 7.1.28
With the same code and setup, I was able to run smoothly without any errors on Windows 10. So I think it shouldn't be a code problem (maybe).
Since I need to work with the Mac OS environment, I want someone to help me to give an idea on how to solve this problem. Thanks.
So, my company is using PHP with Laravel for software development for clients. I am new to the company and setting up a newer Macbook with VirtualBox, Laravel using Homestead, and Vagrant.
I have gotten everything set up to be able to create local files and have them also tie into the VM, but anytime we try to open the pages using our local host, it gives us the error that "Laravel requires the Mcrypt PHP extension".
I have migrated all of our in-house files over to my local machine to be able to open them locally, but I can't get them to open even with being able to see them in the terminal. It works fine on the other developer's Macbook, although he is using an older version of both PHP and Laravel.
My question, which I cannot find a relevant question about, is can I install an older version of laravel and PHP to be able to force my VM project to open only with PHP version 7.0? I found some posts that indicate that mcrypt is no longer supported on PHP 7.1+.
Please include any relevant information you know of. We have been beating our heads against this issue all day yesterday and today. I'm sorry if this post seems noob-ish. I'm just not figuring it out.
***EDIT:
We got it figured out today. We had to force our project into PHP 7.0 and finally got it working. We deleted the entire original Laravel installation and reinstalled using this tutorial: https://medium.com/#gdiasdasilva/creating-a-homestead-box-with-php-7-0-aaa72fb0e297
Thank you guys for your responses. Thankfully after two days, we worked our way through the issue. The biggest issue was trying to allow the project, which was created on another machine using a different version of PHP, to open and run on my machine. Not an issue I had seen anywhere before. To be fair, this is my first time ever working with Laravel. I have a background in ASP.NET MVC 5 and this is an adjustment on getting the correct dependencies.
Again, thank you all for your responses!***
You can specify the PHP version in the Homestead.yaml file:
sites:
- map: homestead.test
to: /home/vagrant/code/Laravel/public
php: "7.0"
After making this change you will need to re-provision Homestead:
vagrant reload --provision
See the Multiple PHP Versions section from the documentation.
In the MAMP menu bar>> Tools - I am seeing this:
phpMyAdmin(needs PHP5.5x to 7.0x)
SQLite Manager (needs PHP5.2.x or 5.3.x)
I have 8 sites on one shared database developed locally using MAMP. Never had a problem in the past. I cannot access any of the sites via localhost. - the last site I worked on required a newer version of PHP and I added V7.1.1 - the prior sites are run on earlier PHP versions, built full site using php 7.1.1 locally no problem. - That said, currently
none of the sites will open via localhost.
The only thing I can think of is that I may have upgraded to OS Sierra and maybe that threw off a file? I called Apple they recommend not touching the Apache settings. I reinstalled Mamp, no change.
OS Sierra 10.12.3
MAMP V.4.1.1
PHP V. 7.1.1
I can connect to the internet, and my firewall is off.
I checked my host file - everything is there that should be with the exception of : "sudo killall -HUP mDNSResponder" which I read in an earlier thread - do I need this?
localhost connection message:
"Unable to connect
Firefox can’t establish a connection to the server at localhost:8888."
I thought that by downloading the lastest version of MAMP I would be recieving the latest package of software such as apache,mysqyl and phpMyAdmin?
I humbly ask for any insight and thank you in advance!
I'm having this same issue and just found this on google:
After you run the servers on MAMP/MAMP PRO
TRY THIS:
localhost:8888/phpmyadmin
I developed an application using codeigniter php 5.3 Apache and mysql with WAMP server on Windows 7 using WAMP. Recently, I started moving the application to Ubantu 14 with apache2, php 5.5 and mysql. It is dead now. I am able to access simple php script under www but my application is showing only blank page. (mozilla debugger shows error 500). Logs are not showing anything. What could be the reason?.. is it a common problem? It's the first time I am using Ubantu.
Well codeigniter is supported to php version 5.4 currently so won't work on php 5.5 but if you want it to work then downgrade php version or else the below link might help you.
https://dillieodigital.wordpress.com/2014/05/30/quick-tip-how-to-running-codeigniter-on-php-5-5-and-mysql-5-6/
I recently downloaded WAMP server to get started developing a website locally on my Windows 7 32 bit computer. It was working fine.
Not long after, I downloaded a few different OSGeo4W packages mainly to use QGIS and develop plugins. This is when I began having issues accessing the phpmyadmin local host (page not found error).
I tried uninstalling WAMP in order to re-install it, and now it seems to be taking a very long time to extract files, blocking on the apache 2.4.9 files. Does anyone have any idea if this may be because OSGeo4 installed another version of Apache on my computer? How can I solve this issue?
This is because apache is already running via OSGeo4W application. You can turn it off by launching OSGeo4W-Apache-Monitor and stopping the services. (start/all programs/Apache/OSGEO4W-Apache-Monitor.
Then restart wamp and it should work fine.