From 35a39ab7ebafdfb4324cf2d9c3d7d2453b64e6ef Mon Sep 17 00:00:00 2001 From: Marvin Sanders Date: Wed, 22 May 2024 15:00:23 +0200 Subject: [PATCH 1/6] Added some wordpress and Wocommerce docs --- ...-media-plugin-for-wordpress-woocommerce.md | 91 +++++++++++++++++++ ...-for-wordpress-woocommerce-on-hypernode.md | 47 ++++++++++ ...-woocommerce-and-wordpress-on-hypernode.md | 29 ++++++ 3 files changed, 167 insertions(+) create mode 100644 docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md create mode 100644 docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md create mode 100644 docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md new file mode 100644 index 00000000..57ff8674 --- /dev/null +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -0,0 +1,91 @@ +--- +myst: + html_meta: + description: Learn how to configure the "Converter for Media – Optimize images | Convert WebP & AVIF" plugin on your Hypernode server. Follow step-by-step instructions to verify your VHOST type, update NGINX configuration, and test the plugin for optimal performance and compatibility with WordPress/WooCommerce. + title: How to Configure "Converter for Media – Optimize images | Convert WebP & AVIF" Plugin on Hypernode +redirect_from: + - /en/ecommerce/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce/ +--- + + + +# How to Configure "Converter for Media – Optimize images | Convert WebP & AVIF" Plugin on Hypernode + +For the WordPress/WooCommerce plugin [Converter for Media – Optimize images | Convert WebP & AVIF](https://nl.wordpress.org/plugins/webp-converter-for-media/), an adjustment is required in your Hypernode NGINX configuration. To make it easier for you, follow the instructions below to get the plugin working correctly on Hypernode. + +## Verify your VHOST type + +First, check if your VHOSTS has the correct type by running the following command: + +```bash +hmv --list + +``` + +Running this command will give you an output like this: +```console ++-------------------+----------+----------------+-------+-------------+---------+--------------+ +| servername | type | default_server | https | force_https | varnish | ssl_config | ++-------------------+----------+----------------+-------+-------------+---------+--------------+ +| test.hypernode.io | magento2 | True | True | True | False | intermediate | ++-------------------+----------+----------------+-------+-------------+---------+--------------+ +``` + +As you can see, the type is incorrect because it needs to be set to WordPress. To change this, use the following command: +```bash +hmv --type wordpress --https test.hypernode.io +``` +After running this command, your VHOSTS will be set to WordPress. Make sure to replace `test.hypernode.io` with your actual domain name. + +## Update NGINX configuration for the plugin + +To ensure that "Converter for Media – Optimize images | Convert WebP & AVIF" works correctly, apply the following configuration: + +```nginx +# BEGIN Converter for Media +set $ext_avif ".avif"; +if ($http_accept !~* "image/avif") { + set $ext_avif ""; +} + +set $ext_webp ".webp"; +if ($http_accept !~* "image/webp") { + set $ext_webp ""; +} + +location ~ /wp-content/(?.+)\.(?jpe?g|png|gif|webp)$ { + add_header Vary Accept; + add_header Cache-Control "private"; + expires 365d; + try_files + /wp-content/uploads-webpc/$path.$ext$ext_avif + /wp-content/uploads-webpc/$path.$ext$ext_webp + $uri =404; +} +# END Converter for Media +``` + +Place the above configuration in `/data/web/server.media.conf.` Once you save the file, NGINX will automatically reload, and if something goes wrong, you will be notified. + +## Test the Configuration + +To test the configuration, you can use the following command: + +```bash +➜ ~ curl -IL -H "Accept: image/webp" https://test.hypernode.io/wp-content/upload/test.jpg + +HTTP/2 200 +server: nginx +date: Mon, 13 May 2024 08:49:44 GMT +content-type: image/webp +content-length: 53624 +last-modified: Wed, 08 May 2024 13:34:25 GMT +etag: "663b7f61-d178" +expires: Tue, 13 May 2025 08:49:44 GMT +cache-control: max-age=31536000 +vary: Accept +cache-control: private +accept-ranges: bytes +``` + +By following these instructions, you should be able to configure and test the "Converter for Media – Optimize images | Convert WebP & AVIF" plugin to work correctly on your Hypernode server. \ No newline at end of file diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md new file mode 100644 index 00000000..e4439391 --- /dev/null +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -0,0 +1,47 @@ +--- +myst: + html_meta: + description: Learn how to replace the default WordPress cron with a cron job on Hypernode to improve performance, schedule tasks precisely, and mitigate DDoS attacks. + title: How to Set Up a Real Cron Job for WordPress/WooCommerce on Hypernode +redirect_from: + - /en/ecommerce/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode/ +--- + + + +# How to set up a cron job for WordPress/WooCommerce on Hypernode + +In this guide, we'll explain how to replace the default WordPress cron job with a cron job on your Hypernode server. This can be useful for low traffic sites, important tasks that need to be run at specific times, mitigating excessive DDoS attacks, or improving high page load times. + +## Disable WordPress cron + +To begin, disable the default WordPress cron by editing the wp-config.php file. + +Connect to your server using an FTP client like FileZilla or an SSH client such as PuTTY. Navigate to the root directory of your WordPress installation and locate the `wp-config.php` file. Open the file for editing and add the following line of code before `/* That’s all. Stop editing! Happy blogging. */`: + +```php +define('DISABLE_WP_CRON', true); +``` + +This code disables the default WordPress cron functionality, allowing you to set up a cron job. + +## Adding a new cron job to your server + +Next, set up a cron job on your Hypernode server. Log in to your server via SSH and open your crontab file with the following command: + +```bash +crontab -e +``` + +Add the following line to your crontab file to set up a cron job that runs every minute: +```console +* * * * * wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron' >/dev/null 2>&1 +``` +Replace `https://yourdomain.hypernode.io` with the actual URL of your WordPress site. + +Explanation of the Cron Job Command +- `* * * * *`: Specifies the interval for the cron job. In this case, it is set to run every minute. You can adjust this based on your needs. +- `wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron'`: Uses wget to make a web request to the WordPress cron URL, triggering any scheduled tasks. +- `>/dev/null 2>&1`: Discards any output from the command, preventing it from filling up your server logs. + +After setting up your cron job, monitor your WordPress site to ensure that scheduled tasks are being executed as expected. This setup ensures that your WordPress or WooCommerce site on Hypernode handles scheduled tasks more reliably, especially under conditions where the default cron system may not suffice. \ No newline at end of file diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md new file mode 100644 index 00000000..59de80d1 --- /dev/null +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -0,0 +1,29 @@ +--- +myst: + html_meta: + description: How to enhance your WordPress/WooCommerce site's performance using Redis. Discover the benefits of Redis, recommended plugins, and step-by-step installation instructions. + title: How to Use Redis with WooCommerce and WordPress on Hypernode +redirect_from: + - /en/ecommerce/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode/ +--- + + + +# How to Use Redis with WooCommerce and WordPress on Hypernode + +Remote Dictionary Server (Redis) is an in-memory, persistent, key-value database known as a data structure server. Unlike similar servers, Redis can store and manipulate high-level data types such as lists, maps, sets, and sorted sets. + +By storing important data in its memory, Redis ensures fast data retrieval, significantly boosting performance and reducing response times. + +## Which Plugins Can We Use for Redis in WordPress/WooCommerce? + +There are several plugins available for Redis. The two most commonly used are [Redis Object Cache](https://wordpress.org/plugins/redis-cache/) and [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/). + +Due to the complexity of the cache module in "W3 Total Cache" and the possibility that you may already be using other cache plugins, we recommend the "Redis Object Cache" plugin. + +## How to Install Redis Object Cache +Redis is already active on the server on port 6379. + +Next, install the Redis Object Cache plugin via the WordPress Dashboard or using Composer. For detailed installation instructions, please refer to the standard installation procedure for WordPress plugins. + +After installing and activating the plugin, navigate to `WordPress` -> `Settings` -> `Redis` or `Network Admin` -> `Settings` -> `Redis on Multisite networks`. Enable the cache and check if the plugin can connect automatically. \ No newline at end of file From 00d730953eda1d3bae77f358a25f9ccdef1f5bd6 Mon Sep 17 00:00:00 2001 From: Marvin Sanders Date: Wed, 22 May 2024 15:24:25 +0200 Subject: [PATCH 2/6] Small fixed for md formatted --- ...converter-for-media-plugin-for-wordpress-woocommerce.md | 7 +++++-- ...up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md | 5 ++++- ...se-redis-with-woocommerce-and-wordpress-on-hypernode.md | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md index 57ff8674..97f2c678 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -9,7 +9,7 @@ redirect_from: -# How to Configure "Converter for Media – Optimize images | Convert WebP & AVIF" Plugin on Hypernode +# How to Configure Converter for Media – Optimize images Convert WebP & AVIF Plugin on Hypernode For the WordPress/WooCommerce plugin [Converter for Media – Optimize images | Convert WebP & AVIF](https://nl.wordpress.org/plugins/webp-converter-for-media/), an adjustment is required in your Hypernode NGINX configuration. To make it easier for you, follow the instructions below to get the plugin working correctly on Hypernode. @@ -23,6 +23,7 @@ hmv --list ``` Running this command will give you an output like this: + ```console +-------------------+----------+----------------+-------+-------------+---------+--------------+ | servername | type | default_server | https | force_https | varnish | ssl_config | @@ -32,9 +33,11 @@ Running this command will give you an output like this: ``` As you can see, the type is incorrect because it needs to be set to WordPress. To change this, use the following command: + ```bash hmv --type wordpress --https test.hypernode.io ``` + After running this command, your VHOSTS will be set to WordPress. Make sure to replace `test.hypernode.io` with your actual domain name. ## Update NGINX configuration for the plugin @@ -88,4 +91,4 @@ cache-control: private accept-ranges: bytes ``` -By following these instructions, you should be able to configure and test the "Converter for Media – Optimize images | Convert WebP & AVIF" plugin to work correctly on your Hypernode server. \ No newline at end of file +By following these instructions, you should be able to configure and test the "Converter for Media – Optimize images | Convert WebP & AVIF" plugin to work correctly on your Hypernode server. diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md index e4439391..488d6ca0 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -34,14 +34,17 @@ crontab -e ``` Add the following line to your crontab file to set up a cron job that runs every minute: + ```console * * * * * wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron' >/dev/null 2>&1 ``` + Replace `https://yourdomain.hypernode.io` with the actual URL of your WordPress site. Explanation of the Cron Job Command + - `* * * * *`: Specifies the interval for the cron job. In this case, it is set to run every minute. You can adjust this based on your needs. - `wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron'`: Uses wget to make a web request to the WordPress cron URL, triggering any scheduled tasks. - `>/dev/null 2>&1`: Discards any output from the command, preventing it from filling up your server logs. -After setting up your cron job, monitor your WordPress site to ensure that scheduled tasks are being executed as expected. This setup ensures that your WordPress or WooCommerce site on Hypernode handles scheduled tasks more reliably, especially under conditions where the default cron system may not suffice. \ No newline at end of file +After setting up your cron job, monitor your WordPress site to ensure that scheduled tasks are being executed as expected. This setup ensures that your WordPress or WooCommerce site on Hypernode handles scheduled tasks more reliably, especially under conditions where the default cron system may not suffice. diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md index 59de80d1..8f75298e 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -22,8 +22,9 @@ There are several plugins available for Redis. The two most commonly used are [R Due to the complexity of the cache module in "W3 Total Cache" and the possibility that you may already be using other cache plugins, we recommend the "Redis Object Cache" plugin. ## How to Install Redis Object Cache + Redis is already active on the server on port 6379. Next, install the Redis Object Cache plugin via the WordPress Dashboard or using Composer. For detailed installation instructions, please refer to the standard installation procedure for WordPress plugins. -After installing and activating the plugin, navigate to `WordPress` -> `Settings` -> `Redis` or `Network Admin` -> `Settings` -> `Redis on Multisite networks`. Enable the cache and check if the plugin can connect automatically. \ No newline at end of file +After installing and activating the plugin, navigate to `WordPress` -> `Settings` -> `Redis` or `Network Admin` -> `Settings` -> `Redis on Multisite networks`. Enable the cache and check if the plugin can connect automatically. From f27c345d9a148345cc90005bcd4a845995cbd884 Mon Sep 17 00:00:00 2001 From: Rick van de Loo Date: Sat, 25 May 2024 07:40:27 +0200 Subject: [PATCH 3/6] format wordpress and woocommerce docs --- ...onverter-for-media-plugin-for-wordpress-woocommerce.md | 8 ++++++-- ...p-a-cron-job-for-wordpress-woocommerce-on-hypernode.md | 4 +++- ...e-redis-with-woocommerce-and-wordpress-on-hypernode.md | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md index 97f2c678..746aa3ff 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -1,8 +1,12 @@ --- myst: html_meta: - description: Learn how to configure the "Converter for Media – Optimize images | Convert WebP & AVIF" plugin on your Hypernode server. Follow step-by-step instructions to verify your VHOST type, update NGINX configuration, and test the plugin for optimal performance and compatibility with WordPress/WooCommerce. - title: How to Configure "Converter for Media – Optimize images | Convert WebP & AVIF" Plugin on Hypernode + description: Learn how to configure the "Converter for Media – Optimize images + | Convert WebP & AVIF" plugin on your Hypernode server. Follow step-by-step + instructions to verify your VHOST type, update NGINX configuration, and test + the plugin for optimal performance and compatibility with WordPress/WooCommerce. + title: How to Configure "Converter for Media – Optimize images | Convert WebP + & AVIF" Plugin on Hypernode redirect_from: - /en/ecommerce/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce/ --- diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md index 488d6ca0..d4df366d 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -1,7 +1,9 @@ --- myst: html_meta: - description: Learn how to replace the default WordPress cron with a cron job on Hypernode to improve performance, schedule tasks precisely, and mitigate DDoS attacks. + description: Learn how to replace the default WordPress cron with a cron job on + Hypernode to improve performance, schedule tasks precisely, and mitigate DDoS + attacks. title: How to Set Up a Real Cron Job for WordPress/WooCommerce on Hypernode redirect_from: - /en/ecommerce/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode/ diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md index 8f75298e..ddcb51ef 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -1,7 +1,9 @@ --- myst: html_meta: - description: How to enhance your WordPress/WooCommerce site's performance using Redis. Discover the benefits of Redis, recommended plugins, and step-by-step installation instructions. + description: How to enhance your WordPress/WooCommerce site's performance using + Redis. Discover the benefits of Redis, recommended plugins, and step-by-step + installation instructions. title: How to Use Redis with WooCommerce and WordPress on Hypernode redirect_from: - /en/ecommerce/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode/ From 053f77e9d55864c864cf4ce199eac2a06ece747e Mon Sep 17 00:00:00 2001 From: Marvin Sanders Date: Fri, 13 Dec 2024 12:50:28 +0100 Subject: [PATCH 4/6] remove the redirect_from --- ...gure-converter-for-media-plugin-for-wordpress-woocommerce.md | 2 -- ...-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md | 2 -- ...-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md | 2 -- 3 files changed, 6 deletions(-) diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md index 746aa3ff..1234356b 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -7,8 +7,6 @@ myst: the plugin for optimal performance and compatibility with WordPress/WooCommerce. title: How to Configure "Converter for Media – Optimize images | Convert WebP & AVIF" Plugin on Hypernode -redirect_from: - - /en/ecommerce/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce/ --- diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md index d4df366d..c22bab30 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -5,8 +5,6 @@ myst: Hypernode to improve performance, schedule tasks precisely, and mitigate DDoS attacks. title: How to Set Up a Real Cron Job for WordPress/WooCommerce on Hypernode -redirect_from: - - /en/ecommerce/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode/ --- diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md index ddcb51ef..c1ff0468 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -5,8 +5,6 @@ myst: Redis. Discover the benefits of Redis, recommended plugins, and step-by-step installation instructions. title: How to Use Redis with WooCommerce and WordPress on Hypernode -redirect_from: - - /en/ecommerce/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode/ --- From 064ec4a3a78760904337e0945f13362b1aba992c Mon Sep 17 00:00:00 2001 From: Marvin Sanders Date: Fri, 13 Dec 2024 13:15:16 +0100 Subject: [PATCH 5/6] Change some things on suggestion --- ...converter-for-media-plugin-for-wordpress-woocommerce.md | 7 +++---- ...up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md | 2 +- ...se-redis-with-woocommerce-and-wordpress-on-hypernode.md | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md index 1234356b..ca048b3f 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -20,8 +20,7 @@ For the WordPress/WooCommerce plugin [Converter for Media – Optimize images | First, check if your VHOSTS has the correct type by running the following command: ```bash -hmv --list - +app@abcdef-example-magweb-cmbl ~ $ hmv --list ``` Running this command will give you an output like this: @@ -37,7 +36,7 @@ Running this command will give you an output like this: As you can see, the type is incorrect because it needs to be set to WordPress. To change this, use the following command: ```bash -hmv --type wordpress --https test.hypernode.io +app@abcdef-example-magweb-cmbl ~ $ hmv --type wordpress --https test.hypernode.io ``` After running this command, your VHOSTS will be set to WordPress. Make sure to replace `test.hypernode.io` with your actual domain name. @@ -77,7 +76,7 @@ Place the above configuration in `/data/web/server.media.conf.` Once you save th To test the configuration, you can use the following command: ```bash -➜ ~ curl -IL -H "Accept: image/webp" https://test.hypernode.io/wp-content/upload/test.jpg +$ curl -IL -H "Accept: image/webp" https://test.hypernode.io/wp-content/upload/test.jpg HTTP/2 200 server: nginx diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md index c22bab30..9ffae818 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -30,7 +30,7 @@ This code disables the default WordPress cron functionality, allowing you to set Next, set up a cron job on your Hypernode server. Log in to your server via SSH and open your crontab file with the following command: ```bash -crontab -e +app@abcdef-example-magweb-cmbl ~ $ crontab -e ``` Add the following line to your crontab file to set up a cron job that runs every minute: diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md index c1ff0468..081fdb1d 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -23,7 +23,7 @@ Due to the complexity of the cache module in "W3 Total Cache" and the possibilit ## How to Install Redis Object Cache -Redis is already active on the server on port 6379. +Redis is already active on the server on port `6379`. Next, install the Redis Object Cache plugin via the WordPress Dashboard or using Composer. For detailed installation instructions, please refer to the standard installation procedure for WordPress plugins. From bb72be5f92b9a26a0b3dd72b6b2c6ba9acf79a5b Mon Sep 17 00:00:00 2001 From: Marvin Sanders Date: Fri, 13 Dec 2024 13:21:52 +0100 Subject: [PATCH 6/6] more suggestions added and `/dev/null` change to `/usr/bin/chronic` --- ...re-converter-for-media-plugin-for-wordpress-woocommerce.md | 2 -- ...et-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md | 4 +--- ...o-use-redis-with-woocommerce-and-wordpress-on-hypernode.md | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md index ca048b3f..4d7c1253 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md +++ b/docs/ecommerce-applications/woocommerce/how-to-configure-converter-for-media-plugin-for-wordpress-woocommerce.md @@ -9,8 +9,6 @@ myst: & AVIF" Plugin on Hypernode --- - - # How to Configure Converter for Media – Optimize images Convert WebP & AVIF Plugin on Hypernode For the WordPress/WooCommerce plugin [Converter for Media – Optimize images | Convert WebP & AVIF](https://nl.wordpress.org/plugins/webp-converter-for-media/), an adjustment is required in your Hypernode NGINX configuration. To make it easier for you, follow the instructions below to get the plugin working correctly on Hypernode. diff --git a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md index 9ffae818..fe56c4cf 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-set-up-a-cron-job-for-wordpress-woocommerce-on-hypernode.md @@ -7,8 +7,6 @@ myst: title: How to Set Up a Real Cron Job for WordPress/WooCommerce on Hypernode --- - - # How to set up a cron job for WordPress/WooCommerce on Hypernode In this guide, we'll explain how to replace the default WordPress cron job with a cron job on your Hypernode server. This can be useful for low traffic sites, important tasks that need to be run at specific times, mitigating excessive DDoS attacks, or improving high page load times. @@ -36,7 +34,7 @@ app@abcdef-example-magweb-cmbl ~ $ crontab -e Add the following line to your crontab file to set up a cron job that runs every minute: ```console -* * * * * wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron' >/dev/null 2>&1 +* * * * * /usr/bin/chronic wget -q -O - 'https://yourdomain.hypernode.io/wp-cron.php?doing_wp_cron' ``` Replace `https://yourdomain.hypernode.io` with the actual URL of your WordPress site. diff --git a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md index 081fdb1d..c5be27ea 100644 --- a/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md +++ b/docs/ecommerce-applications/woocommerce/how-to-use-redis-with-woocommerce-and-wordpress-on-hypernode.md @@ -7,8 +7,6 @@ myst: title: How to Use Redis with WooCommerce and WordPress on Hypernode --- - - # How to Use Redis with WooCommerce and WordPress on Hypernode Remote Dictionary Server (Redis) is an in-memory, persistent, key-value database known as a data structure server. Unlike similar servers, Redis can store and manipulate high-level data types such as lists, maps, sets, and sorted sets.