@t-p thanks, but sorry that page doesn’t help…it’s too generic for the problem at hand. I am in the same situation. Here’s a little background and elaboration.
I setup a fresh installation of Ubuntu on the free tier of Google Cloud (https://cloud.google.com/) and installed Word Press. I used the technique outlined by Chris Titus in his video (https://www.youtube.com/watch?v=vIJdypOqlL4) and everything seems to work right except the permalinks. Like the OP I have setup my .htaccess correctly but nothing works except the Plain permalinks. If I change it to anything else and then try to create a new page or post I get the red bar that says “Updating Failed” and it won’t save a draft or publish…I have no choice but to discard the page/post. If I change it back to Plain, bingo it works. Below is the contents of my .htaccess file. The file is in the /var/www/html folder along side the rest of the files. I’ve tried various permissions settings on the .htaccess file, but that has had no affect on it. I’m sure WordPress is writing to the file because after I go into Permalinks and do a Save Changes the file is altered (verified by commenting out a line, then clicking Save Changes and the comment line is now uncommented, so WordPress did change it!) So, I’m at a total loss! Is there somewhere else to look? I don’t think the problem lies with the .htaccess file. What is very odd is that if I do a “Quick Draft” via the Dashboard widget a Post will go in as a Draft, but if I go in and try to make any changes to that post under Posts I get the same red error as shown. Not sure if Quick Draft does something different than going in to Posts and doing Add New and saving as a Draft…but that way doesn’t work at all. Very strange.
Below are screenshots to illustrate.
Error: https://i.imgur.com/Pkruv11.png
WWWFolder: https://i.imgur.com/uZRfGz3.png
.htaccess: https://i.imgur.com/plsXz1w.png
One last bit of info. I installed the Health Check plugin and under Filesystem Permissions it says that that the Main WordPress directory is Not Writable. In the screenshot above it shows the permissions, I’m not sure which directory is the “Main WordPress” directory, assume it is /var/www/html and if so I would say it IS writable, but am I wrong? Maybe this is the problem…suggestions?
View post on imgur.com
Thanks!
Randy