I try to install WordPress on Ubuntu 20.04 with a LAMP stack as the following tutorial https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-20-04-with-a-lamp-stack with exact step by step, but when I go to WordPress Dashboard > Setting > Permalink and change the default plain to the custom permalink, I got 404 pages with sample post and page. If I type HTTP instead of HTTPS, I saw posts and pages displayed as normal.
When I try to create a new post I got the error: “Updating or Publishing failed. The response is not a valid JSON response”.
I guess SSL certification makes the issue but don’t know what is the problem exactly and can’t find the solution on Google. Some post advice I should keep the plain permalink but It’s not good for SEO. Anyone has met this issue? I very much appreciate your response.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Can you share the contents of both your HTTP and HTTPS Apache Vhost files? It sounds like that something might not be right with your HTTPS virtual host.
Alternatively, if this is a fresh new website, I could suggest using this 1-Click WordPress installation:
https://marketplace.digitalocean.com/apps/wordpress
It also comes with an automated SSL installation out of the box.
Best,
Bobby
Hi @nguyennamnvn9x,
It sounds to me like there are some issues loading the website over SSL, do you have an SSL installed or have the proper HTTPS Apache2 config?
To these those, it will be best to post the config here to see if we can find anything that might be a reason for this behavior.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.