Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point what is needed in terms of Apache2.x configurations to runs Laravel apps ?

Hi Experts

Could you point what is needed in terms of Apache2.x  configurations to runs Laravel apps ?

The examples I had run uses Laravel's internal server
 http://localhost:8000/

Open in new window


And I want to run from Apache.

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Olgierd Ungehojer
Olgierd Ungehojer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

I'm using Linux.

This:

You have to change configuration in apache to listen on your NIC ip and if you want use different port....
For me is a little vague...

Maybe is a matter of configure virtual hosts.. f.e.
Avatar of Olgierd Ungehojer
Olgierd Ungehojer

ok so try to type on the computer  in your network  http://server-ip-address and http://server-ip-address:8000 and tel me what you get ?
To run  http://server-ip-address:8000  first the Laravel's internal web server must be started - then  the site is renderized - ok.

Running http://localhost, after Apache is started, the site isn't renderized and a directory structure is presented instead.
Running http://localhost will send request on port 80  - if apache is not listening on this port you will have error 404.
If you have only one service (one web site) you do not need setup virtual hosts.
check /etc/init.d/apache2 status if apache is running
post ports.conf
netstat -ln will give you information what ports you have open.

/etc/apche2/sites-enabled/000-default file tells you where you have root folder for main website
Sorry.
I need a little more time to interact due some professional intercurrences!