How to run laravel without using port in url? - laravel-5.1

How can I run laravel application without using port or without using the php serve command ? just like other php webapps. ex:http://localhost/myproject/
Is it possible or laravel should use the php serve command ?
Thank you in advance.

You need to run it on default port 80 not to laravel`s default port 8080 so you need to do this
php artisan serve --port=80

Related

How yo fix port issue in ruby on rails. Port is not working on 3000 and im unable to select different port

This is the output im getting whenever im trying to fix port or run the server or trying to run some command. Its not working on any port.
goto config/puma.rb in you application, here you will find the port to change.
port ENV.fetch("PORT") { 3000 }

How can we use two different Magento 2 Versions/Instances installed using Docker?

I have installed Docker Image for Magento 2 and it is working fine. I need two different Magento Versions i.e Magento 2.1.13 and Magento 2.3.0 working simultaneously on my system.
How can I install 2nd Magento 2 instance using Docker ?
Thanks
You have to publish them on different ports, like this:
docker run -p 8080:80 YourMagentoImage1
docker run -p 8081:80 YourMagentoImage2
Finally you could use a reverse proxy to access both from your browser over port 80.
Note that I don't know the actual Port your Magento uses, 80 is an example.

What is the default port to connect to Airbnb Caravel UI?

I have the installation done on my Mac. What local port does Caravel run on ?
It has got no default port, instead we need to provide the port number when we start the Superset service.
superset runserver -p Port_Number
And it should get going..
Default port is 8088.
# Start the web server on port 8088, use -p to bind to another port
superset runserver
This is directly copied from The Superset installation guide.

can't run both phpmyadmin and rails server on cloud9

I am working on a rails project on cloud9 and I followed this tutorial to install PhPmyadmin.
The problem is that I can't run at the same time a rails server and a php my admin server since they both seem to use the same Port.
To launch my rails server, I use rails s -b $IP -p $PORT.
Here is the error I get:
/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/socket.rb:205:in `bind': Address already in use - bind(2) for 0.0.0.0:8080 (Errno::EADDRINUSE)
Has anyone an idea how to fix this?
phpMyAdmin is just another PHP application, so it doesn't listen on a port. You should instead check your webserver configuration to see what port it is on. Most webservers tend to default to port 80, though, so it might be some other process.
You can use netstat -tulpn | grep 8080 to find what's using that port and modify either your Rails configuration or the other process to use a different port.

How to access localhost:1080 on Cloud9

I'm trying to access localhost with specified port on my application on Cloud9 platform. I'm building a ruby on rails app, running a server with command below.
rails s -b $IP -p $PORT
I have a special occasion where I need to access a different port (not localhost:3000). Does anyone know how to do this?
Thanks for the help!
Cloud9 now has multiple external ports (released a few days ago but not yet documented). You can run a service on port 8081 or 8082 and it will be accessible by appending the relevant port to your preview url (e.g. http://project-user.c9.io:8081). Only http works for now, https will be available soon.

Resources