Hello all. I’ve reviewed this post several times in the past over the years, as well as have tried to make corrections and pass on any information that I think would be helpful to first time or amateur WordPress on Ubuntu installers. I was a bit dismayed when the original author made the decision to use the ‘upstream WordPress recommended installation’ instead of the original way it was written, what I believe is the Ubuntu way, but the author has the discretion to write the article in any way he feels necessary.
apt install wordpress
That should be the start for anyone installing WordPress on current versions of Ubuntu. Should also be the way this article should start, however the author has opted for ‘upstream Recommended installation’ which I completely understand. However it does get away from the ‘Ubuntu’ way.
I’m fully aware of the issues to install Wordpress the recommended way versus the apt install wordpress way and it comes down to configuration. There’s still lots of assumptions being made in this new revamped article. Though the idea is correct and in some instances I would use that option, I like having the control and security of the database details being set up in /etc/wordpress/config-hostname.php. Additionally with the Apache integration I also like to setup virtual hosts for each and every host on an Apache web server because it’s just the right way to do it. By default the Ubuntu Apache 2 configuration wants separate files for ssl and non-ssl web sites, which not only do I think is stupid but it makes things complicated. I create the virtual hosts file as a single file for each host, virtual or otherwise and put both the non-ssl (port 80) and ssl (port 443) apache configuration in each of the vhosts into a single file for /etc/apache2/sites-available. At this point new and amateur Linux/Apache/Wordpress users should be thoroughly confused and veteran sysadmins are following me along and hopefully agreeing.
All of the issues usually have to do with either something in the initial configuration and where those configuration files are, or have to do with subsystem upgrades where the command usage is slightly different, as evidenced by some of the confusion above in the MySQL statements, the create user/password issue repetitively occurs. I won’t go into the details of changing MySQL user passwords with the ALTER SQL syntax because again, I think it just makes things more complicated.
With the default installation of Apache 2 and Wordpress on Ubuntu it’s my opinion that this article should reflect that and either have WordPress installed into the default ‘html’ (/var/www/html) directories and NOT removing the 000-default* files, which are the default vhost config files for the web server operation on ports 80 and 443 (ssl) OR deleting all the 000-default* files and spell out in the tutorial how to create the vhost file for both port 80 and 443 in a single file.
Yes, I’m a bit of an expert not only of Linux, but of Apache 2 (and 1) and Wordpress as I have been using all those products for 15-40 years, depending. Regardless of how your installing your Ubuntu or Wordpress I’m open to personally help anyone having issues and get their web site up and running. Just look up my profile and send me an email.
I additionally have several web servers up and running (azure.zettabytes.org, weeklynewsworld.com) which is but a short collection of sites I’ve been working on lately. I can setup shell accounts and give some visibility on how a ‘production’ sites run with visibility into the actual configuration files.
It’s always just the initial setup and configuration which give the most headaches as there are many many ways a site might be configured but once a WordPress is finally up and running, I’ve found it to be very reliable.
If anyone wants some help with their setup drop me a line.
Ron