Hi, my question might be a little off topic but I got no where to go.
I have to deploy Laravel 5 application for use internally and I have to install web server on PC running Windows 7. According to these scenario, please suggest what should I use ?
My current approaches are:
Put application in WAMP server and set VirtualHost to serve. I've tried this many times, but I can't get it running. My hypothesis is that may be because I developed on Mac using Homestead, and when I copy application to Windows, it seems to treat file .env differently, if not I'm sorry. Did anyone encounter problems when developed on Mac and deploy on Windows ?
Should I use Homestead to serve Laravel 5 application on production ? I don't think I should but this is will be considered if others approaches don't work.
If you have others way, please tell me. Thank you.
i did install Bitnami https://bitnami.com/stack/wamp
for my local test and it's work fine
this stack support laravel 5 all you have to do is to set your conf and host file and voila
also
<VirtualHost 192.168.2.10:80>
ServerAdmin mymail@localhost
ServerName dev.laravel5
DocumentRoot "C:/Bitnami/wampstack-5.4.36-0/frameworks/laravel/laravel5/public"
<Directory "C:/Bitnami/wampstack-5.4.36-0/frameworks/laravel/laravel5/public/">
Options +MultiViews
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
Thanks guys.
I didn't touch anything inside .htaccess file because I'm not familiar with it, sorry. Laravel is my first time on Backend world :)
I tried add AllowOverride All like this:
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/myapp/public"
ServerName myapp.app
AllowOverride All
</VirtualHost>
but WAMP cannot become green, it stays in orange state.
I will try both Laragon and Bitnami.
Just curious, could it be that Windows treat dotFile differently or something like permission to look at .htaccess file ?