php - how to upload a laravel project on server for clients -


i have developed mvc project laravel 5.4. whenever want develop on localhost, use php artisan serve command access via localhost:8000 on browser. have uploaded project on linux server centos 6 , run php artisan serve --host 0.0.0.0 --port 8080 access via x.x.x.x:8080 on browser temporary way access project browser. permanent way access laravel project clients via public ip?

i have apache,php , ... separately installed on server. can not see x.x.x.x/projectname/public or x.x.x.x/projectname. project in /var/www/html directory.

you can access laravel project yoursite.com/projectname/public if upload project on web root.

if want access directly yoursite.com need map public folder in virtual host configuration.

# location of our projects public directory. documentroot    /path/to/your/public 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -