#Laravel shared hosting

1 messages · Page 1 of 1 (latest)

limber quail
#

i have hosted laravel project on shared hosting. I Dont understand how to handle public folder. Although i tried using .htaccess . it worked by hit and trial, but i am not confidant about it. Further i created a subdomain. that is not working because its not finding index.php. i have uploaded all my project to public_html. also created another folder in it - named ''sub", in which i copied whole another laravel project & added its directory - "public_html/sub" in subdomain . Subdomain is not working at all. what is proper way ?

fluid ingot
#

You should never upload a Laravel project in a public_html folder, it would make your entire app available (including .env files etc). Instead you'd point your document root to the public folder of your app.
Generally that's why it's a nightmare to use a shared host, since they often don't allow any modifications.

limber quail
#

since project is small for now, i didnt want to spend much. but anyhow, if i have to spend, what do u recommend ? what is cheepest option ? vps hosting or any other cloud hosting ?

#

i am new to laravel.

manic minnow
#

Hi, just like @fluid ingot said, the best way is to pay for VPS hosting because you can configure it as you need.
Some hosts do not charge for domain registration for new users.

limber quail
#

@fluid ingot Thanks

#

@manic minnowThanks.

limber quail
#

i have purchased vps hosting. Should i buy vps manager too.? ??

limber quail
#

i want to deploy my project using git

teal oyster
limber quail
#

i have spend a lot of time, in publishing project on vps server. Since i am doing it 1st time, it is feeling quite difficult . Have to do a lot of things manually in ssh using putty. Can u please suggest some methods or tricks or anything to make it easy or understand it. For example, i installed apache , composer & other things required, That part i understand. Now, deployement of code seems difficult because their is no ui. Can u please guide me. Because after deploying it 1st time, also need to update regularly , need to run php artisan migrate again & all.

manic minnow
severe temple
#

You can also look at Laravel Envoy, so that you can call actions from a trusted machine (e.g. you can tell it to do a composer update/git pull/artisan migrate)

#

You don't need a GUI to do all of that type of activity, if you're struggling with something in particular, then explain which bits, and someone will be able to advise

lethal void
#

Follow a Youtube tutorial to learn how to manually deploy. We can't hand hold you every step of the way.

limber quail
#

@manic minnow every thing is good. Thanks How are you ? i created a .sh file to automate it. thanks. and sir , link u provided showing page not exist. was it temporary ?

#

@severe temple Thank You.

#

@north krakenThanks

#

@lethal void yes , i am doing that. i was over overwhelmed before . i created a .sh file to automate it. Thanks.

severe temple
#

Well worth considering putting it into your project's composer file

manic minnow