Yes, you can use Laravel on shared-hosting. But WHY?

Yes, you can use Laravel on shared-hosting. But WHY?

Laravel Daily

7 лет назад

17,326 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Aldrin John Encina
Aldrin John Encina - 26.08.2023 04:00

thank you for you feedback regarding in shared hosting. i used hostinger shared hosting for my laravel api. I got a lot of problem. until know I did not solved yet. I can not use a post method. only get method. I think it's time to switch to AWS ec2. by the way sir, do you a online course about laravel and aws ec2?

Ответить
Meinungsmacher
Meinungsmacher - 21.03.2022 03:30

my shared hosting has ssh, composer and so on... and i really enjoy riding a bike for 100 miles more instead of driving an old stinky italien car :) welcome to 2022

Ответить
Dharmendrasingh Pawar
Dharmendrasingh Pawar - 29.05.2021 07:46

I should have followed your advice. I learnt the hard way.

Ответить
Hemant mudgil
Hemant mudgil - 28.03.2021 14:50

brother you are misinformed, there is a huge difference. Please upload a video with the correct pieces of information.

Ответить
Sedat Kaplan
Sedat Kaplan - 06.02.2021 08:23

someone teach him money. Cost baby cost.

Ответить
Caribe Digital
Caribe Digital - 23.12.2020 17:41

If laravel wants to be a popular framework it must support shared hosting. Otherwise they will lose this market segment.
And yes, SSH ist available on those servers. What sucks is npm.
Laravel installation does not need npm, but add-on packages like breeze do.
I was successful in implementing breeze on my laptop but failed on the production server.
Can't these vendors imagine life without npm?

Ответить
Muhammad Mubashir
Muhammad Mubashir - 22.11.2020 02:19

idk why but whenever u said shared hosting i heard it as shit hosting :P

Ответить
TwoAM
TwoAM - 17.06.2020 10:33

In Germany there is one big argument for shared hosting: traffic flat

Ответить
bru
bru - 12.06.2020 14:01

Hey guys i want to deploy my laravel + vue project on free hosting and i want to use 000webhost. I just want to try this in production and i have 0 experience in deploying laravel or any other things. i have created three portfolio projects and none of them are deployed. I know this is stupid question but can someone help me ? Im just a beginner trying to upload my work on the internet thanks.

Ответить
samjad ps
samjad ps - 27.03.2020 12:38

Digital ocean hosting 3gb ram with 1 vcpu or 2 gbram with 2 vcpu? For laravel hosting which one have more precidence???

Ответить
samjad ps
samjad ps - 27.03.2020 12:37

On laravel hosting ram or vcpu which want to give more precidence??

Ответить
TwoAM
TwoAM - 21.01.2020 10:39

In Germany we have no Traffic Limits on Shared hosting. That's why we use it verry often.

Ответить
Yung Gud
Yung Gud - 16.08.2019 04:05

Here in Australia I'm using a provider that gives full SSH access and complete control at only a couple bucks a month (using cheapest plan), so this topic always perplexed me when I saw it. Sucks they restrict it so bad in other countries

Ответить
Barry Docherty
Barry Docherty - 09.07.2019 06:05

shared hosting is inherently annoying and restrictive. I agree with this chap. Get a VPS at digitalocean, OVH or many others that give you your own box at $5/month min 1gb RAM 1 CPU 25gb HD... what more do you need? Don't get swayed by huge storage space.

Ответить
Migara Karunarathne
Migara Karunarathne - 06.07.2019 19:54

If i have SSH Access is it ok to host in shared host

Ответить
Christine Nichols
Christine Nichols - 26.04.2019 00:28

How will I demonstrate my experience with Laravel on my portfolio site unless I deploy it to a shared hosting account?

Ответить
404
404 - 08.04.2019 14:49

Here in Brazil, the cheapest dedicated server (with good support) costs around R$390,90/mo (around US$97,72/mo). So... yeah....

Ответить
Ben Sweetnam
Ben Sweetnam - 06.09.2018 07:41

it's cheap and what my boss wants which now forces me to use codeigniter because. yeah not happy aye.

Ответить
Matteus Barbosa matteusdev
Matteus Barbosa matteusdev - 18.06.2018 19:00

actually Hostinger is a shared hosting service that supports everything laravel needs. I'm telling you as a simple user.

Ответить
Elmehdi GROLA
Elmehdi GROLA - 03.05.2018 00:26

Yeeh you are right and I share this opinion, shared-hosting is just a hell cause of its limitations and restrictions :/ -_-

Ответить
Anton Hinxman
Anton Hinxman - 14.08.2017 22:13

I use shared hosting simply as a 'per website backup' via easy cron driven SFTP. Backup being directly done over server to server connections it is very fast but beyond this function I would not use a shared server for any modern PHP framework. This issue is, as you state, 'control' when for example PHP requirements move to 7.x or even dom or xml module requirements change.

The scale of change risk is for ever growing because your framework uses more code libraries from elsewhere. The problem is not containable with some strict 'set in stone' minimum requirement definitions.

Shared hosting carries the liability of legacy because someone, somewhere else on the same server, can not upgrade. The upgrade is stopped because their system breaks but then your 'more modern' system breaks because upgrades to underlying system or web server modules can not be upgraded.

When client budgets run low there is a client tendency not to use the skills of a web master arranging and maintaining web hosting. The shared sites get hacked simply because they do not receive enough upgrade attention at every level: server core, services on same server, connection layers such as cache/sql/graphics/xml/dom/php and finally within the client application itself. Will a shared hosting end user look at their security logs and amend the server firewall - unlikely!

Shared servers can exist if they are dedicated to a purpose and given the resources to maintain them. This is not shared hosting like GoMommy but managed hosting for a specific application platform/framework. I believe that your assertions are correct: technical decisions should be in the hands of those who can understand and manage them.

If a client wants to compare pro-managed VPS/dedicated hosting to $10 hosting then that 'red flag warning' is for both parties. Your red flag is: You should not worry about prospects wanting such dangerously cheap hosting. The client prospect has to go through whatever experience their $10 will purchase - it is their right to take this path. Perhaps they get lucky but as an expert you know that the odds are against them but the client prospect also has the right to ignore you. So the conversation yourself and the prospect should be fairly short.

Talking too much to a client wanting $10 hosting is like the $5 psychotherapist comedy session with only enough time to say 'Stop It!', Google: ‘Bob Newhart Stop It.’ to see what I mean. It is not something you can base a business relationship upon - unless you do highly specialised hosting dedicated to a specific framework... I think that the smart people are already doing this.

Ответить
Khyoz
Khyoz - 20.07.2017 11:41

do your video mean, you are developing and testing directly in the production environment ? An application should be able to run in a shared hosting as well, and most users will not access and maybe not understand and not care on the invisible side of the framework and development iceberg and all the tools provided. So it depends on other criteria as well, as size of project, goal of project, amount of data, budget, technical knowledge and size of customer's team etc etc... And local machine is good for a development...no need to have a VPS machine for that.

Ответить
The Blue Dragon
The Blue Dragon - 14.07.2017 20:34

I have this issue with laravel on shared hosting
Actually some of my clients are host on my vps where i use cpanel bcuz its make things easier for me to control.
So the contract between us is doing laravel abd hosting with cpanel so its easy for them also. I know the limitations and i really agree with u 100% but i have a server with 3tb and extra client coming i can add them easily without affecting my budget for server or resources bcuz the contract we have i need to provide a host so if i do it on another cloud system or different vps then i will lose money and time for making the server and configure it and install laravel rather than just make the site with cpanel and upload laravel.

In another hand if client need his own server or he will pay for hosting then for sure i will not take big headache just install it for him and thats it.

Hope in the future cpanel gives many things to do for such frameworks.
And thanks for the video.

Ответить
John Farrar
John Farrar - 14.07.2017 13:58

You are right, but simple to learn doesn't mean accessible information or an approachable learning process. So often people who know how to do things forget simple is practice, learning is difficult. This is why we developers spend perhaps the largest block of our time in a day debugging. It is because we are learning how to build something.

I would love to see some great guides on these topics, that would make your advice win on the other side. Right now you are right, but that doesn't mean your answer is an answer without the guides.

Ответить
Yolandi
Yolandi - 14.07.2017 10:46

Why shared hosting? Mostly this is what the customers already have and know. When you sell a website, you dont have to deal around with servers for them. Also the customers maybe are not experienced with administrating an own server (maybe no time, no Linux knowledge???). So you have to do this or what? Remember, you are only a developer selling a website to somebody.

What you saying will work when you host your own sites, but as soon you do customer projects you also have to think about whats best for the customer (and mostly also cheap, to be in their price range). Its not always possible to recommend a own server for them. Think a little bit.

And what Cuculeac Stefan said is also true, because mostly they already have something from their old site, and also already paid for the full next year.

Ответить
pastuh
pastuh - 13.07.2017 23:04

Can you suggest best price/quality server in Lithuania?

Ответить
Stefan C
Stefan C - 13.07.2017 08:44

Let me give you an exemple. I've tell client that we're developing in laravel and sent him the requirements (including SSH access) and when the project is finished i get a share hosting account. I'm pushing about ssh access but the client already paid for a full year so...we have to manage with that one. Usually i'm copy the files and set up database and then ask to hosting provider to run some commands for me. For ex:

composer install
composer dump-autoload
php artisan key:generate
php artisan cache:clear
php artisan optimize

And usually i'm doing like this.

Ответить