The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

1

If you're running the official wordpress image from dockerhub, the docs advise mapping a volume to /var/www/html inside the container. So your flag would look like: -v wordpress_data:/var/www/html What is the difference between /var/www/html/ and /var/www/html/wp-content/? wp-content is just a subdirectory of the wordpress installation, which is ...


0

How to find email account associated with the above Google Storage image in the Google Cloud console? Unless you already know this you cannot. Your error message does have the Google Cloud Project Number. You can provide this to Google Cloud Billing Support. If we couldn't find email account, then how to get that information previously stored in ...


0

Edit wp-config.php Add following line: define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL); If your database(MySQL 5.6 or later) use a self-assigned certificate, you may try: define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT); Tested on WordPress version 5.2.


0

I solved the same issue by changing the configuration. When you use Alias /blog then accessing WP posts using permalink example.com/blog/sample-post/ will be redirected to example.com by Apache so you get 404 error. I was using Reverse Proxy and to ignore redirects my setting was: <Location /blog/> RewriteEngine off ProxyPass ! </Location>...


1

This is an old question so I'm not sure if it's still relevant, but here's my take on it. I don't think you're overthinking it as, yes, the file will be writeable. So if anything fishy happens on the server - e.g. an attack which based on changing / creating files on the server, it will be easier for an attacker to compromise the server or adjust certain ...


0

Cheap solution : buy a second vps and synchronise the blog on it (for example using mysql master/master replication and unison for files). Install heartbeat and haproxy, for example : https://www.howtoforge.com/setting-up-a-high-availability-load-balancer-with-haproxy-heartbeat-on-debian-lenny If there is any apache or mysql problem on the first server, ...


0

Add your Web Server IP to DB: mysql> GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'YourWebServerIP' IDENTIFIED BY 'YourPassword' WITH GRANT OPTION;


0

You could try creating a virtual host with the /var/www/html/example.com/specific-page/ folder as the DocumentRoot and have your DNS provider set up an A-record for https://specific.example.com


0

The easiest way to achieve this would be to use a 301 redirect of/specific-page like this: <VirtualHost *:443> ServerName example.com Redirect permanent /specific-page/ https://specific.example.com/ # SSLEngine On # and so on </VirtualHost> <VirtualHost *:443> ServerName specific.example.com DocumentRoot /var/www/...


0

I have used /favico.ico Sounds more like a hack but if wordpress doesn't work you get 5xx error otherwise 200 ( installation wizzard / already installed )


Top 50 recent answers are included