From e977d3da77b5cbd4943327afe9742998cf8a63fe Mon Sep 17 00:00:00 2001 From: Anirudh Duggal Date: Sat, 19 Dec 2020 12:24:47 +0530 Subject: [PATCH 1/3] Modified cron job docs so that user does not end up searching for a solution and later find out that it was a chmod chown issue Signed-off-by: Anirudh Duggal --- .../configuration_server/background_jobs_configuration.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin_manual/configuration_server/background_jobs_configuration.rst b/admin_manual/configuration_server/background_jobs_configuration.rst index d4c2a709f..cfdaa3383 100644 --- a/admin_manual/configuration_server/background_jobs_configuration.rst +++ b/admin_manual/configuration_server/background_jobs_configuration.rst @@ -64,6 +64,8 @@ Using the operating system cron feature is the preferred method for executing regular tasks. This method enables the execution of scheduled jobs without the inherent limitations the Web server might have. +.. note:: Please make sure that your cron.php file has executable permissions and is owned by www-data + To run a cron job on a \*nix system, every 5 minutes, under the default Web server user (often, ``www-data`` or ``wwwrun``), you must set up the following cron job to call the **cron.php** script:: From 9d3360c264be0e07a2dc63a4349fc009b19ab9ca Mon Sep 17 00:00:00 2001 From: Anirudh Duggal Date: Sat, 19 Dec 2020 12:27:11 +0530 Subject: [PATCH 2/3] Modified server tuning docs to ensure that a person can find out if they already have HTTP2 enabled or not before going about reading how to do it. Also this would prevent the additional effort he has to do to find out a way to see if HTTP2 is already enabled or not Signed-off-by: Anirudh Duggal --- admin_manual/installation/server_tuning.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin_manual/installation/server_tuning.rst b/admin_manual/installation/server_tuning.rst index ae912086f..a95b739c2 100644 --- a/admin_manual/installation/server_tuning.rst +++ b/admin_manual/installation/server_tuning.rst @@ -100,6 +100,11 @@ Enable HTTP2 for faster loading HTTP2 has `huge speed improvements `_ over HTTP with multiple request. Most `browsers already support HTTP2 over SSL (HTTPS) `_. So refer to your server manual for guides on how to use HTTP2. +You can check if your application already uses HTTP2 or not by running the simple curl command + +..code:: sh + curl -I https://mywebsite.com/ + Tune PHP-FPM ------------ From ba34d2c2564571a37cee3409393003b901914b43 Mon Sep 17 00:00:00 2001 From: Anirudh Duggal Date: Sun, 20 Dec 2020 16:48:24 +0530 Subject: [PATCH 3/3] Since cron will be executed via PHP, cron.php does not need executable permissions Signed-off-by: Anirudh Duggal --- .../configuration_server/background_jobs_configuration.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin_manual/configuration_server/background_jobs_configuration.rst b/admin_manual/configuration_server/background_jobs_configuration.rst index cfdaa3383..d4c2a709f 100644 --- a/admin_manual/configuration_server/background_jobs_configuration.rst +++ b/admin_manual/configuration_server/background_jobs_configuration.rst @@ -64,8 +64,6 @@ Using the operating system cron feature is the preferred method for executing regular tasks. This method enables the execution of scheduled jobs without the inherent limitations the Web server might have. -.. note:: Please make sure that your cron.php file has executable permissions and is owned by www-data - To run a cron job on a \*nix system, every 5 minutes, under the default Web server user (often, ``www-data`` or ``wwwrun``), you must set up the following cron job to call the **cron.php** script::