I installed xampp and laravel in my system and while connecting my project in command prompt it shows as "Development Server (http://127.0.0.1:8080) started", whereas it is not launching the browser and I manually copy the link to the browser and it is not working and getting the below error. Please help me
enter image description here
Your screenshot shows that you're trying to connect to a different port (8000 vs 8080). Try http://127.0.0.1:8080 or http://localhost:8080.
Related
I used DDEV on linux now I am trying to make it run on Windows. I have successfully installed Docker and DDEV. When I am in my PHP project directory and I type : ddev launch
Then a tutorial page gets opened with this url: http://MyProjectDirectory.ddev.site/tutorial/
The Tutorial page says that i ran the following command: docker run -d -p 80:80 docker/getting-started
But I dont want to see the tutorial page I want to host my project.
I think its a bug with the ports. When I click a link on the docker tutorial page, a view of my project gets rendered or I get an 404 Error. Thats really wierd
EDIT SOLVED(but still need help):
After changing router_http_port: "80" to router_http_port: "8000" in config.yaml my project is getting hosted properly. I figured out, that the Docker tutorial page uses port 80, thats why I am getting to the Docker Tutorial page when trying to host my project. Everytime i type localhost in the url I am getting to http://localhost/tutorial/ and the Docker tutorial page shows up and says :
Congratulations! You have started the container for this tutorial! Let's first explain the command that you just ran. In case you forgot, here's the command:
docker run -d -p 80:80 docker/getting-started
This page shows up even after restarting my PC and Docker ist not running, how can I get rid of this
The documentation for DDEV-Local is at https://ddev.readthedocs.io. There is no built-in tutorial page, and no standard site would redirect you to a tutorial.
Please read the docs and try the DDEV-Local Quickstart for your CMS type.
I have installed php-Server:
https://windows.php.net/download/
Then I built the Lumen based Webserver with this Link:
https://computerhalbwissen.de/wie-man-mit-dem-lumen-framework-eine-rest-api-erstellt/
I can now go to the following path:
cd C:\php\lumen-api
Then I typed in this line:
php -S localhost:8000 -t public
And I easily got my json-String with this line, when I typed it in
the browser address line:
http://localhost:8000/api/items/
I did a GET request in the browser of my android avd:
10.0.2.2:8000/api/items/
I get following screen:
What do I have to do to avoid this response. Do I have to
set something in the configurations of my avd?
Thank you for your help.
I cant access the php-Server with my Android-Device.
I installed xampp and everything works fine.
When I install xampp server on window 7 after that I run a control panel of xampp.
then I start the apache service its done successfully but when I click to start the MySQL I view this type of error "Attempting to start MySQL app.." and myself didn't start what is the solution??
Do you have anything else running on 3306? Skype has been known to run on 3306 which could be the issue. Try rebooting your machine and then launching xampp without launching anything else first.
If this doesn't work then please post error log
Go to xampp/php/mysql/data
Delete file name arial_log and then start mysql
I have a proyect that is working on my main machine. I use the php -S localhost:8080 -t public command to start a local server. It works perfectly. But now I want to access it from another computer inside my own network but it does not work. In my other computer I type the ip address of the computer with the php server running like this 192.168.1.135:8080, but it does not connect. It just gives me timed out error. Any ideas on how to make this work?
I figured it out. Instead of localhost:8080, I changed it to 0.0.0.0:8080. That did the trick.
So PHPstorm is running the php code fine in its console when I click run, that's great but I want to see it in the browser.
So I created a new PHP web application inside PHPstorm, set up the server to "localhost:8000".
Now when I click RUN it opens the browser but I get an error message: "Oops! Google Chrome could not connect to localhost:8000"
What am I doing wrong??
Thanks!
You have to configure a run configuration for your project first.
Go to Run -> Edit Configurations, click on "PHP Built-in Web Server" and then press "+". You should see something like this:
After saving the settings you can run the web server via Run -> Run '<project-name>'. It should now serve up the pages to your browser.