Discarding PHP costs too high _php digest

Source: Internet
Author: User
Tags php language php server php code web services hosting vps laravel forge codeship

Objective

The first language I tried to use for programming was PHP, and I worked in several companies that used PHP as their main development language. However, I do not turn a blind eye to other languages, and PHP is not my main language of development today.

I think I am a person who can be happy because "I don't need to worry too much about language design" and "Make money and finish the job as easily as possible." I recently resigned from a full-time job with PHP as the front-end developer.

Recently I read through the post "eevee.php: The debris of poor design", which is old but still so real that I can no longer ignore it. However, I encountered some obstacles, this is about I do not use PHP after the difficult period of the story.

The economic problems of doing leisure projects

I'm free. If I don't want to, I can do a line of PHP code without writing; I no longer need back-end development work, and unless the browser crashes because of some catastrophic changes, I won't have to do this for the foreseeable future.

However, I do have a bunch of projects that I want to plan to build and implement, and there are more than one project. In fact, I'm trying to build a lot of smaller websites to get some of the negative income (not tax revenue) that is satisfying. (Anyway this is my goal) to this end, I launched my first unnamed web site yesterday.

Unfortunately, because it is a project that needs to be paid for by myself and I need to build a lot of sites, I have to give up something directly. I'll list them here and explain why I believe the host provider won't work for me and talk about people I'm in the same predicament.

Heroku

If I had money, I would put all the apps on top of the Heroku. As far as my experience of use is concerned, Heroku is very incredible. Hosting and configuring your own environment is no trouble at all, it has nothing to do with the language you use, so many.

The problem with using Heroku is his billing model, although every 7 dollars a month doesn't seem like much, but when you have a lot of projects, the cost is just as high as a rocket rub. Even if there were only 10 applications, the cost of 70 dollars a month would be too high for anything that might not result.

The above costs are not even considered the use of database factors, every 10 million lines of data requires an additional 9 dollars. If a project has a lot of data flow, it will also increase the cost of the application, and soon we will find that the cost of each month becomes more than 100 dollars.

Amazon Web Services

AWS's price looks cheaper, but I've always thought it would add complexity in many ways, as well as higher costs in terms of configuration and spending, which is not worth it for a small web site with only hundreds of visits a month.

I can't say I have a lot of experience using AWS, but everything about it has a strong corporate taste, and I believe that customers of complex applications are their focus.

Perhaps how to efficiently deploy on AWS is worth learning, but how can you simply deploy the git service? Do I need extra service for it? Can the same instance run multiple applications? What about the charging model? Despite reading their price page, I still don't understand which part is related to me. After reading their website, I still have a bunch of question marks. Unable to find a reply.

Microsoft Azure

At first glance, Microsoft's Azure seems to be the savior. However, even though I really want to deploy large applications here, I still have a concern about Google and HTTPS.

If you look at their pricing model, you should be able to understand (the picture is quoted from my homepage, I'm sorry to have some Swedish language on it). If you choose the standard version, I get the message that you can deploy up to 50 applications on it. As far as I am right, I have to choose a standard version. 580 CZK per month, equivalent to about 70 knives in dollars. Although it is still expensive, but in the Heroku above the features I like to be able to provide here, which is also very worth it. Of course, azure is slightly more complicated, and the price fluctuates frequently, but afterward.

The problem is that the standard version described in the pricing model supports only 5 SNI (Server Name indication). What does that mean? As I understand it, there are only 5 sites to support SSL. Given that Google has become increasingly unfriendly to sites that do not support SSL, and that the Let's encrypt project has enabled each site to use HTTPS encryption, only 5 of my 50 sites have SSL support, which is not very good. These are just my personal understanding, and it provides a little bit of explanation, so it may be that I understand the wrong. In fact, I really hope that I was wrong, if so, please reply to me in the comments section below the article.

Glesys, Digital Ocean, Linode own server, etc.

Using the money to rent a VPS from the service providers listed above is the only real alternative. The advantage of Glesys is that there are Swedish hosts available, which means low latency, and there is no risk of data being censored by the U.S. government. I can safely put the user data there.

Compared to managed services, the price is incredibly low, it takes a bit of time to configure, you have to complete all the settings and organization, which is a lot of work. The biggest reason I choose hosting Services is because if one of my services hangs up and I'm at work, I have to wait until I get home from work to deal with these things, which could be eight hours later.

The PHP Community offers solutions

When Eevee complained about the lack of unique features of the PHP language, the community has come up with the most awesome hosting solution I've ever tried. It's just the cheapest thing I've ever tried.

The solution is Laravel Forge (Laravel Workshop).

If you don't have access to the connection immediately, let me explain it to you. Laravel Forge Service One months, he offers unlimited production-level PHP server (installation, setup and configuration), and you can control all services from a Web interface. Even more magical is that I can target any VPS provider, even the simplest AWS or digital ocean. This will help you expand the server, set up cron jobs, edit the environment configuration, use git push deployment, and so on.

Laravel Forge Service gives me a good feature of the unlimited number of Azure or Herohu applications (as long as the VPS can handle it). Laravel Forge is not limited to the Laravel framework, any PHP application will do.

Like Eevee, if this article doesn't improve your mindset about the PHP community, it's nothing. But seriously, how could anyone who knew this would leave such a wonderful service?

Profit is important.

I think my story is very common. I don't think I'm alone. There must be thousands of small business owners in the world who need to host their apps. Either their project happens to be a website.

A 10 dollar server from Linode and 9 dollars of Laravel Forge, they deploy very cheaply, so the server can quickly replace any assumptions, you will not want to do operations, including server startup, running, installation certificate and so on.

I've looked up the answers on the web, but the only compelling alternative is to use a continuous integration (continuous integration) service similar to codeship. Although it is not unlimited, and when you have more than 5 projects (I have such a plan) when the cost of direct increase to 49 dollars, but the truth is that its service is really good. In addition, Codeship also provides automated testing and git push deployment services, but does not provide a server, so you still need to prepare your Web server, database and configuration.

For other languages, perhaps Laravel Forge has a better alternative, perhaps not. But I still think that for me and many others, the cost of abandoning PHP is too high. Even if I can afford it, it doesn't make any sense.

Finally, once again quote the words of Eevee:

There is no doubt that PHP is too popular!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.