MediaWiki:Installasi on Ubuntu 20.04 (Nginx): Difference between revisions
m Kangtain moved page Install MediaWiki on Ubuntu 20.04 to MediaWiki:Installasi on Ubuntu 20.04 (Nginx) |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 22: | Line 22: | ||
sudo composer install --no-dev | sudo composer install --no-dev | ||
<blockquote> | |||
'''Note:''' That MediaWiki currently doesn’t support PHP8.0. If you have installed PHP8.0 on your Ubuntu server, then you should run sudo update-alternatives --config php command to set PHP7.4 as the default version. | |||
</blockquote> | |||
*Once all dependencies are installed, run the following command to set web server user (www-data) as the owner of this directory. | *Once all dependencies are installed, run the following command to set web server user (www-data) as the owner of this directory. | ||
| Line 29: | Line 31: | ||
===Step 2: Creating a Database=== | ===Step 2: Creating a Database=== | ||
*Log into MariaDB server with the command below. | *Log into [[MariaDB]] server with the command below. | ||
sudo mysql -u root | sudo mysql -u root | ||
| Line 102: | Line 104: | ||
'''Where''' | '''Where''' | ||
*< | *<code>--nginx</code>: Use the nginx plugin. | ||
*< | *<code>--apache</code>: Use the Apache plugin. | ||
*< | *<code>--agree-tos</code>: Agree to terms of service. | ||
*< | *<code>--redirect</code>: Force HTTPS by 301 redirect. | ||
*< | *<code>--hsts</code>: Add the Strict-Transport-Security header to every HTTP response. Forcing browser to always use TLS for the domain. Defends against SSL/TLS Stripping. | ||
*< | *<code>--staple-ocsp</code>: Enables OCSP Stapling. A valid OCSP response is stapled to the certificate that the server offers during TLS. | ||
*The certificate should now be obtained and automatically installed. | *The certificate should now be obtained and automatically installed. | ||
==Terkait== | |||
*[[MariaDB]] | |||
*[[Server]] | |||
*[[MediaWiki]] | |||
[[Category:Tutorial]] | [[Category:Tutorial]] | ||
[[Category:CMS]] | [[Category:CMS]] | ||
[[Category:Server]] | [[Category:Server]] | ||