PHP Deployment Ease
Comments emphasize PHP's simplicity in deployment on shared hosting via file uploads and FTP, contrasting it with the more complex setups required for languages like Python, Ruby, and Node.js.
Activity Over Time
Top Contributors
Keywords
Sample Comments
No, that's unlikely. PHP's main advantage is its ease of deployment on shared web hosts: upload your files and you're done.
Developers underestimate how difficult it can be to deploy server-side code for web apps or dynamic websites, particularly for less-technically minded users.As other posters have mentioned, PHP code can be as simple as uploading files to a folder on a server using a GUI FTP app. (And for some non-technical users, even that might be too complicated).By the way, Jeff Attwood (co-founder of Stack Overflow and one of the founders of Discourse), had this to say about PHP:"If you want
A very pragmatic reason exists: deployment is dead simple for users with very little technical skill. Deploying PHP software is as easy as subscribing to a shared web host (expensive or not, but most will make your life easy), connecting using FTP/SFTP, and extracting a ZIP file into the main directory. Some hosts even skip the last couple of steps and let you apply a template with a well-known PHP CMS to get you started. Hey presto, you have a functioning web shop, business website, charit
That's the thing right? With PHP you need a server or you can't do anything. With Django, Sinatra, Rails, Flask, (Node?, Meteor?) you have all that for development as part of the application.To deploy you just push to a free heroku instance and you are fine until you get big. Much, much easier than setting up your own Apache+PHP. And much, much cheaper than buying hosting.
Why not PHP on a shared or dedicated hosted server?
PHP is still the only language on the web you can deploy to a $5/mo host with a zipfile without needing wade through Docker, Git, the command line, token management, etc. My dad can install this for the middle school he teaches at. You couldn't say the same thing for a Node app.
Probably never. PHP is at least generally simple to deploy.
Setup costs - PHP has a low barrier to entry in the sense that Apache's mod_php5 is a simple "a2enmod php5" command away. Even PHP-FPM with Nginx is only a few well-documented configuration options away from working.Currently, no other language can match that. They either require a VM running (Java, Ruby, etc.) or at least have a compile/build step (Python).UWSGI has a lot of promise, but until it's as easy to get configured as PHP-FPM, PHP is still way easier than everything else.
Regarding hosting I wasn't just talking about shared hosting. Setting up a LAMP VPS is just a couple of clicks. Compare that to setting up e.g. Django or Rails. I personally love Django, Flask, etc., but setting up a website is still faster with PHP (depending on your setup, of course).
A php version would be useful for someone with an existing php project who doesn't want to add another tech stack to their build/deploy/host requirements. This is especially useful for authors who might target customers self-hosting on low cost shared hosting services, where php & mysql is ubiquitous.