6 ms·
"running WordPress locally is a nightmare... I should also caveat that I know almost nothing about Apache, MySQL, FTP, and PHP." Without wishing to be too snar
by frereubu 6y ago
"running WordPress locally is a nightmare... I should also caveat that I know almost nothing about Apache, MySQL, FTP, and PHP."
Without wishing to be too snarky, this could be rewritten as "Running this software is a nightmare if you know nothing about the technologies it is built on." And being slightly more snarky, my response would be: well, duh.
- jonwinstanley 6y agoTotally agree, running Wordpress locally needs a minimum understanding of Apache, MySQL and PHP for sure
- tmpz22 6y agoI'd add you need to know how your OS will handle the installation, IIRC Mac OS comes with pre-installed PHP and/or Apache which uses configuration files you might not know to look for and may conflict using the same ports etc. Its a mess.
- reaperducer 6y agoIt's not a mess. It's just different from what you're used to. Running WordPress on macOS is slightly different from running WordPress on Ubuntu, which is different from running it on CentOS. I maintain WordPress sites on all three. None of them are inferior to the other for this purpose. They just have different conventions. In fact, I've had far fewer problems running multiple WordPress installations on macOS than I have on CentOS. But that's because I understand Apache better than the author of this article. Pretty much the only problem comes during a major OS upgrade when the installed backs up some of your configuration files and replaces them with the default. But once you deal with it one or two times, you know what to do.
- wolco 6y agoWith programs like ammp abd wamp and others things are really point and click.
- hbcondo714 6y agoFor local WordPress development, we used Bitnami's WordPress image[1]. Later, we used Local by Flywheel[2]. Both used VirtualBox so it was nice to get the entire WordPress stack with minimal installations. We only had a .NET developer at the time but he was able to "pick up" the LAMP stack with these solutions. [1] https://bitnami.com/stack/wordpress/virtual-machine https://bitnami.com/stack/wordpress/virtual-machine [2] https://localwp.com/ https://localwp.com/
- httpsterio 6y agoWhat would you consider understanding the tech? I can't write a single line in Apache config nor can I do a Hello World in PHP or query anything in MySQL, but I can setup and install WordPress on a local machine or a server. I don't feel like that I understand the underlying tech, but as long as you know how to install WordPress, you can install WordPress.
- mdu96 6y agoYes, hence the caveat. :) For my purposes (set up a simple blog and get it running), I truly don't think that I need, or should, have to learn the ins and outs of the tech stack. In fact I chose WordPress specifically _because_ I wanted it to abstract most of the implementation details away from me. I don't think this is true for development generally.
- frereubu 6y agoPerhaps it wasn't intended, but the post read as a complaint that it wasn't easy, but self-hosted WordPress (i.e. wordpress.org rather than wordpress.com) doesn't sell itself as a one-click install CMS. (Although there are things like MAMP that allow you to delegate the basic server setup).
- macspoofing 6y ago>For my purposes (set up a simple blog and get it running), I truly don't think that I need, or should, have to learn the ins and outs of the tech stack. Well ... if you want a simple blog, then you can setup an account with the 10million hosted blogging services that are out there. And if you want a wordpress blog, then you can set up an account with wordpress.com, or get a hosted solution with Wordpress/LAMP already preinstalled, or get a VM with Wordpress pre-configured (e.g. Vagrant Box with Wordpress: https://themeisle.com/blog/vagrant-wordpress/ https://themeisle.com/blog/vagrant-wordpress/). What you wanted however, was a locally hosted Wordpress (why?) that you installed and configured (on Windows no less). That's fine, but Wordpress requires PHP, and requires a web-server, and requires a database - so you'll have to be able to understand what all those pieces are in order to install and configure them together. >In fact I chose WordPress specifically _because_ I wanted it to abstract most of the implementation details away from me. Which it does. There is a difference between being a user of Wordpress and installing and administrating Wordpress. For the former, understanding the tech stack is not required. The UI is meant to be used by non-tech savvy people. For the latter, yeah, you need to be familiar with the tech stack. That you're not, and you had some trouble installing it, that's not the fault of Wordpress.
- kaslai 6y agoThis was pretty much my thoughts too. This use case is quite a bit outside of the realm of what Wordpress is intended to be used for. Local deployments are only really intended to be for people who are serious about administrating their own web server or developing plugins for Wordpress, so it's assumed that you already have the knowledge to set up a web server with PHP and MySQL. The people who want a "writing first" experience _with Wordpress specifically_ have many paid hosting providers to choose from, but that would defeat the purpose of the article. Making a one-click installation process would also take a significant amount of dev resources to handle all the different platforms and require expertise that isn't required for the main product, given that it is a PHP project which is almost entirely cross platform by default.
- king_phil 6y agoI run a shared hosting business. Mostly wordpress, of course. Most people have their first contact with all this when their site is hacked (plugins not updated for years) and they have to clean up. Then we need to babysit them - but to a degree that is what we are paid for. And for good reason.
- blakesterz 6y agoI can totally relate to this. Just shut down my little hosting business I've been doing since 2002. I just couldn't keep everyone safe.
- coldtea 6y ago>Most people have their first contact with all this when their site is hacked (plugins not updated for years) Well, Wordpress can know auto-update the plugins...
- AnonHP 6y ago> Well, Wordpress can know auto-update the plugins...(sic) And your site (Or some parts of your site) could break at any point in time without your knowledge and remain broken for a long time until you find that it’s broken. There is no platform that doesn’t require “babysitting” with maintenance and testing.
- coldtea 6y agoThe key is to use select few plugins, with huge communities, sure to be updated to the latest version... You still need to check on them, sure. >and remain broken for a long time until you find that it’s broken Well, if you don't find out that it's broken fast enough, perhaps you don't need it anyway!
- todotask 6y agoHowever, we have a site with visual builder that is no longer under annual subscription.
- 6y ago
- oneeyedpigeon 6y agoI think your response would be unfair. If you think about the statement "running this software is a nightmare if you know nothing about the technologies it is built on" outside of this context, it clearly doesn't typically apply. You wouldn't apply that to using a web browser or a word processor, right? Should 'blog writing' software really have such a greater barrier of entry?
- jay_kyburz 6y agoBring Back CityDesk! https://www.joelonsoftware.com/2001/10/12/what-does-citydesk-do/ https://www.joelonsoftware.com/2001/10/12/what-does-citydesk...
- macspoofing 6y ago>I think your response would be unfair. I don't think so. The author actually gave themselves a weird goal - to use Wordpress as the text editor, and export/copy the static content to github. I'm not sure why they would do that, but OK! In the end, their problem wasn't with the workflow but with setting up local version of Wordpress (why? why not use a hosted version of Wordpress????), PHP, Apache, MySQL and FTP(!!). WordPress isn't actually that hard to setup. It's a little harder on Windows, because setting up PHP on Windows just isn't as natural as on Linux but XAMPP makes it as easy as possible. >Should 'blog writing' software really have such a greater barrier of entry? But it doesn't. You have a plethora of (free) hosted blogging solutions. You could also get private hosting with the LAMP stack already pre-installed and configured.
- manigandham 6y agoWhy someone would do this: Wordpress has a solid editor, lots of plugins, and is used by millions so the workflow is well tested. The resulting pages are a perfect fit as static content. You can accomplish this by using a CDN that caches everything, or use plugins that export static files like WP2Static, or use integrations with static site frameworks like Gatsby that treat WP as a CMS. But yes, doing it all from scratch yourself is probably not worth it, especially if you're unfamiliar with the tech.
- scotu 6y agowhile you are right for a tl;dr, from the article, the feeling I'm getting is more that those are known unknowns only now for the author, and they were unknown unknowns at the beginning. The fact that each moving part wp needds is tricky in its own way doesn't make the experience better if you are encountering them for the first time :) The author was probably not aware how complicated set of dependencies (moving parts) wordpress needs compared to jekyll. Which is fair if from the outside the two seem to be products in the same category.
- nashadelic 6y agoYes but the promise of wordpress is to democratize content and its distribution. It works in many ways and fails in some.
- searchableguy 6y agoFor the author: https://docs.docker.com/compose/wordpress/ https://docs.docker.com/compose/wordpress/
- noahtallen 6y agoFor what it’s worth, many WordPress devs are using docker solutions anyways these days. For example, core WordPress and Gutenberg (the block editor) are often developed using Docker. You can do it other ways too, but much of the tooling is built around docker anyways. In fact, myself and a few others have spent some time improving the local environment situation with a tool called wp-env [1]. So long as you have docker & node installed, you can install wp-env with npm. Then you can just use “wp-env start” to get a local WordPress instance running. It’s fairly straightforward to configure for basic needs too! No need to understand Apache, SQL, FTP, or even PHP to get it running. All this to say: there are open source solutions to the local dev environment problem even being developed and supported by core WordPress teams. :) 1: https://make.wordpress.org/core/2020/03/03/wp-env-simple-local-environments-for-wordpress/ https://make.wordpress.org/core/2020/03/03/wp-env-simple-loc...