Reputation: 2370
I have built an application which is used by a number of staff internally, I have hosted the app locally on a machine next to my desktop and I've done this by
php artisan serve --host 10.111.0.01 --port 1111
This allows everybody to access over the same network.
This works great, however recently we are seeing a few resource issues on the application. Taking too long to load, randomly crashing etc. This is more than likely due to the number of active users.
Which method would be the best approach to hosting this application internally? is there a better way that php artisan serve?
Thanks
Upvotes: 3
Views: 2091
Reputation: 1128
This question is quite broad. There are numerous ways of hosting a PHP application. nginx, Apache, lighttpd, to name major names, could all be of service to you.
Assuming Windows, there is an ideal tool called Xampp. You only need Apache, as with artisan serve
the only thing is needed is to serve the PHP files.
The best is to create a file in apache2/sites-available
. For example:
<VirtualHost *:1111>
ServerName 10.111.0.01
DocumentRoot "C:\xampp\laravel\public"
<Directory "C:\xampp\laravel\public">
AllowOverride all
</Directory>
</VirtualHost>
Then restart Apache.
Upvotes: 1