Table of Contents
The price of abandoning PHP is too high, the price of abandoning PHP
Home Backend Development PHP Tutorial The price of abandoning PHP is too high, the price of abandoning PHP_PHP Tutorial

The price of abandoning PHP is too high, the price of abandoning PHP_PHP Tutorial

Jul 12, 2016 am 08:53 AM
mysql php server

The price of abandoning PHP is too high, the price of abandoning PHP

Foreword

The language I used when I first tried programming was php, and I have worked in several companies that use php as the main development language. However, I don't turn a blind eye to other languages, and php is no longer my main development language.

I think I am a person who can be happy because "you don't need to worry too much about language design" and "make money quickly and get work done as easily as possible". I recently left a full-time job where I was primarily working on PHP as a front-end developer.

Recently I read through the blog post "Eevee.PHP: The Debris of Bad Design" that is old but still evokes such real pain that I can no longer ignore it. However, I hit some roadblocks and this is my story about the hard times I had after not using php.

Economic Issues of Working on Free Time Projects

I am free. I don't have to write a line of php code if I don't want to; I no longer have to do backend development work; and, unless the browser crashes due to some catastrophic change, I won't have to for the foreseeable future Do the work.

However, I do have a bunch of projects that I want to plan to build and make happen, more than just one. I'm actually trying to get some satisfying passive income (untaxed income) by building a bunch of smaller websites. (That's my goal anyway) To do this, I launched my first unnamed website yesterday.

Unfortunately, because this is a self-funded project and I need to build a lot of sites, I have to give up some things directly. Below I'll list them, explain why I believe my hosting provider won't work for me, and talk about others who are in the same predicament as me.

Heroku

If I had money, I would put all my applications on heroku. In my experience, Heroku has been incredible. Hosting and configuring your own environment is effortless, it doesn't matter what language you use, and so on.

The problem with using Heroku is its charging model. Although $7 per project per month does not seem like much, when you have many projects, the cost goes up like a rocket. Even with just ten apps, $70 a month is too much for something that may not lead to any results.

The costs above don’t even take into account the use of a database, which is an additional $9 per 10 million rows of data. If a project has a lot of data traffic, it will also increase the cost of the application, and soon we will find that the monthly cost becomes more than a hundred dollars.

Amazon web services

The price of AWS seems cheaper, but I always think that using it will increase complexity in many aspects, and the configuration and cost will also increase the cost. For a small website with only a few hundred visits per month Quite not worth it.

I can’t say I have a lot of experience using AWS, but everything about it has a strong enterprise flavor, and I believe customers with complex applications are their focus.

Perhaps it is worth learning how to deploy on AWS efficiently, but how to deploy git service simply? Do I need additional services for it? Can the same instance run multiple applications? What is the charging model like? Despite looking at their pricing page, I still don't understand which part is relevant to me. After reading their website, I still have a lot of questions in my mind that I can't find answers to.

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 one concern, and that is about Google and HTTPS.

If you take a look at their pricing model, you should be able to understand (the picture is quoted from my homepage, sorry for the Swedish language~), and it is wisest to look for these. If you choose the Standard Edition, from what I've heard you can deploy up to 50 applications on it. In my case, I almost have to choose the standard version. 580 kronor per month, equivalent to about 70 U.S. dollars. Although it is still a bit expensive, the features I like on Heroku are also available here, so it is worth it. Of course, Azure is a little more complicated and has frequent price fluctuations, but its flaws are not outweighed.

The problem is that the standard version described in the pricing model only supports 5 SNI (Server Name Indication). What does this mean? According to my understanding, only 5 sites support SSL. In view of the fact that Google has become increasingly unfriendly to sites that do not support SSL, and the Let's Encrypt project has enabled every website to use HTTPS encryption, only 5 of my 50 sites have SSL support. , this is really not good. The above is just my personal understanding, and the instructions it provides are somewhat sparse, so it is possible that I have misunderstood it. In fact, I do hope that I am wrong. If so, please reply to me in the comment box below the article.

GleSYS, Digital Ocean, Linode own server, etc.

Using this money to rent a VPS from one of the service providers listed above is the only real alternative. The good thing about GleSYS is that it has a Swedish host available, which means low latency and no risk of the data passing US government scrutiny. I can safely store user data there.

Compared to hosting services, the price is incredibly low, but it does take some time to configure. You have to complete all the settings and organization yourself, which is a lot of work. The biggest reason why I choose a hosting service is because if one of my services goes down while I am at work, I have to wait until I get home from get off work to deal with these things, which may take seven or eight hours. That’s a matter for the future.

The PHP community provides solutions

While Eevee complained about the lack of unique features of the PHP language, the community has come up with the coolest hosting solution I have ever tried. It also happens to be the cheapest I've ever tried.

The solution is Laravel Forge.

If you don’t have immediate access to this link, let me explain it to you. For $9 a month, Laravel Forge provides unlimited production-grade PHP servers (installation, setup, and configuration), and you can control all services from a single web interface. Even more amazing is that I can target any VPS provider, even the simplest AWS or Digital Ocean. This will help you scale your server, set up cron jobs, edit environment configurations, deploy using git push, and more.

The Laravel Forge service gives me the nice feature of unlimited number of applications with Azure or HeroHu (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 perception of the PHP community, nothing will. But seriously, how could someone who knew this leave such a great 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 applications. Either their project happens to be a website.

A $10 server from Linode and a $9 Laravel Forge, they are fast and cheap to deploy, so the server built in this way can quickly replace any assumptions, you will not want to do operation and maintenance work, including server startup , run, install the certificate and other tasks.

I looked for answers on the web, but the only convincing alternative was to use a Continuous Integration service like Codeship. While it's not unlimited and the cost jumps straight up to $49 when you have more than 5 projects (which is the plan I have), it honestly does a pretty good job. In addition, Codeship also provides automated testing and git push deployment services, but does not provide a server, so you still need to prepare and configure the website server and database yourself.

For other languages, maybe Laravel Forge has a better alternative, maybe not. But I still think that, for me and many others, the cost of ditching PHP is simply too high. Even if I could afford it, it wouldn't make much sense.

Finally, quote Eevee again:

There is no doubt that PHP is so popular!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1123828.htmlTechArticleThe cost of abandoning PHP is too high, the cost of abandoning php Preface The language I used when I first tried programming was php, and in several Worked in companies that use PHP as their main development language. But, I won’t...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MySQL: The Ease of Data Management for Beginners MySQL: The Ease of Data Management for Beginners Apr 09, 2025 am 12:07 AM

MySQL is suitable for beginners because it is simple to install, powerful and easy to manage data. 1. Simple installation and configuration, suitable for a variety of operating systems. 2. Support basic operations such as creating databases and tables, inserting, querying, updating and deleting data. 3. Provide advanced functions such as JOIN operations and subqueries. 4. Performance can be improved through indexing, query optimization and table partitioning. 5. Support backup, recovery and security measures to ensure data security and consistency.

How to create navicat premium How to create navicat premium Apr 09, 2025 am 07:09 AM

Create a database using Navicat Premium: Connect to the database server and enter the connection parameters. Right-click on the server and select Create Database. Enter the name of the new database and the specified character set and collation. Connect to the new database and create the table in the Object Browser. Right-click on the table and select Insert Data to insert the data.

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

Navicat cannot connect to MySQL/MariaDB/PostgreSQL and other databases Navicat cannot connect to MySQL/MariaDB/PostgreSQL and other databases Apr 08, 2025 pm 11:00 PM

Common reasons why Navicat cannot connect to the database and its solutions: 1. Check the server's running status; 2. Check the connection information; 3. Adjust the firewall settings; 4. Configure remote access; 5. Troubleshoot network problems; 6. Check permissions; 7. Ensure version compatibility; 8. Troubleshoot other possibilities.

How to execute sql in navicat How to execute sql in navicat Apr 08, 2025 pm 11:42 PM

Steps to perform SQL in Navicat: Connect to the database. Create a SQL Editor window. Write SQL queries or scripts. Click the Run button to execute a query or script. View the results (if the query is executed).

How to create a new connection to mysql in navicat How to create a new connection to mysql in navicat Apr 09, 2025 am 07:21 AM

You can create a new MySQL connection in Navicat by following the steps: Open the application and select New Connection (Ctrl N). Select "MySQL" as the connection type. Enter the hostname/IP address, port, username, and password. (Optional) Configure advanced options. Save the connection and enter the connection name.

The Future of PHP: Adaptations and Innovations The Future of PHP: Adaptations and Innovations Apr 11, 2025 am 12:01 AM

The future of PHP will be achieved by adapting to new technology trends and introducing innovative features: 1) Adapting to cloud computing, containerization and microservice architectures, supporting Docker and Kubernetes; 2) introducing JIT compilers and enumeration types to improve performance and data processing efficiency; 3) Continuously optimize performance and promote best practices.

What is the difference between syntax for adding columns in different database systems What is the difference between syntax for adding columns in different database systems Apr 09, 2025 pm 02:15 PM

不同数据库系统添加列的语法为:MySQL:ALTER TABLE table_name ADD column_name data_type;PostgreSQL:ALTER TABLE table_name ADD COLUMN column_name data_type;Oracle:ALTER TABLE table_name ADD (column_name data_type);SQL Server:ALTER TABLE table_name ADD column_name data_

See all articles