├── CHANGES.md ├── LICENSE ├── MAINTAINERS ├── Plesk-WordPress-Edition.pdf ├── README.md └── install_wordpress_edition.sh /CHANGES.md: -------------------------------------------------------------------------------- 1 | # 1.2.1 2 | * [*] Fixed bug with plesk_ui 3 | * [*] Changed default plesk_ui to Service Provider View 4 | 5 | # 1.2 6 | * [*] Replaced old Welcome Extension with the new Welcome Guide 7 | 8 | # 1.1 9 | * [*] Updated the cookbook for the latest version of the WordPress Edition 10 | * [*] Replaced the Security Advisor with our new Advisor Extension 11 | * [*] Replaced PHP5.6 with PHP7.2 12 | * [*] Changed default behaviour of cloning to false 13 | * [+] Added Extension installation for SEO Toolkit, Advisor, Uptime Robot and many more 14 | * [+] Added Solution Type for reporting purposes 15 | * [+] Mentioned Feature Pack in README.md 16 | * [+] Added option to use the activation key as parameter 17 | * [+] Added output of one-time login link if clone is set to off 18 | * [-] Removed extensions no longer available in WordPress Edition like Opsani or Addendino 19 | * [-] Removed Route 53 Extension 20 | * [-] Removed no longer needed admin information 21 | 22 | # 1.0.1 23 | 24 | * [*] Updated link to the latest Welcome WordPress extension package (version 1.0.2) 25 | 26 | # 1.0.0 27 | 28 | * [+] First commit 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 1999 - 2017 Plesk International GmbH 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /MAINTAINERS: -------------------------------------------------------------------------------- 1 | Jan Löffler 2 | Viktor Vogel 3 | Lucas Radke 4 | -------------------------------------------------------------------------------- /Plesk-WordPress-Edition.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plesk/wordpress-edition/8c397ed2edb6fb9b8577fb39f8bf4920aed4ef2e/Plesk-WordPress-Edition.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Apache 2](http://img.shields.io/badge/license-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | # Plesk WordPress Edition 4 | 5 | This repository contains all you need to build and customize your personal preconfigured WordPress Server solution with Plesk. The included whitepaper describes the solution in detail and highlights why you should offer it to your customers. 6 | 7 | ![](https://raw.githubusercontent.com/plesk/ext-welcome-guide/master/src/_meta/screenshots/2.png) 8 | 9 | ## Description 10 | 11 | Here at Plesk we strive to Simpify the Lives of Web Professionals. This includes our Partners. This cookbook will install and configure Plesk Core, Modules and Bundle Extensions. It will also enable and configure security features and prepare your VM to be used as a VM template. 12 | 13 | ## Requirements 14 | 15 | * Contract with Plesk to be able to retrieve Plesk Licenses from the Key Administrator Server (KA) 16 | * Provide Plesk Key with Proper Plesk Exension keys associated in cookbook script 17 | 18 | or 19 | 20 | * A Plesk license with the [WordPress Pack](https://ext.plesk.com/packages/f8afea30-b1e9-45f5-ab71-437a0ce7c817-offer-wordpress-feature-pack) 21 | 22 | ## Deploying Plesk with WordPress Edition Cookbook 23 | 24 | 1. Install one of the supported Linux Operating Systems ( https://docs.plesk.com/release-notes/onyx/hardware-requirements ) following hardware specs ( https://docs.plesk.com/release-notes/onyx/hardware-requirements/ ) 25 | 26 | 2. Shell to server as root 27 | 28 | 3. Download and Edit Variables noted in install_wordpress_edition.sh 29 | 30 | 4. Execute command 31 | 32 | $ chmod +x install install_wordpress_edition.sh 33 | 34 | 5. Execute command 35 | 36 | $ ./install_wordpress_edition.sh 37 | 38 | ### Using prebuild Plesk Images 39 | 40 | tbd 41 | 42 | ## Support 43 | 44 | Found a bug or experienced an issue? Please open an [issue on Github](https://github.com/plesk/wordpress-edition/issues)! 45 | -------------------------------------------------------------------------------- /install_wordpress_edition.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ################################################################################ 4 | ## Installation script for Plesk WordPress Edition ## 5 | ################################################################################ 6 | 7 | # Edit variables for Plesk pre-configuration 8 | 9 | email='admin@test.tst' 10 | passwd='CookBook123' 11 | name='admin' 12 | agreement=true 13 | 14 | # Plesk Activation Code - provide proper license for initialization, it will be replaced after cloning 15 | # leave as null if not providing key 16 | activation_key=$1 17 | 18 | # Plesk UI View - can be set to Service Provider View (spv) or Power User View (puv) 19 | plesk_ui=spv 20 | 21 | # Turn on Fail2Ban, yes or no, Keep in mind you need to provide temp license for initialization for this to work 22 | fail2ban=yes 23 | 24 | # Turn on http2 25 | http2=yes 26 | 27 | # Turn on Cloning - Set to "on" if this it to make a Golden Image, set to "off" if for remote installation 28 | clone=off 29 | 30 | # Test to make sure all initialization values are set 31 | 32 | if [[ -z $activation_key ]]; then 33 | echo 'Please provide a proper Plesk Activation Code (Bundle License).' 34 | exit 1 35 | fi 36 | 37 | if [[ -z $email || -z $passwd || -z $name || -z $agreement ]]; then 38 | echo 'One or more variables are undefined. Please check your initialization values.' 39 | exit 1 40 | fi 41 | 42 | echo "Plesk initialization values are all assigned. We are good so far." 43 | echo 44 | 45 | ######### Do not edit below this line ################### 46 | ######################################################### 47 | 48 | # Download Plesk AutoInstaller 49 | 50 | echo "Downloading Plesk Auto-Installer" 51 | wget https://installer.plesk.com/plesk-installer 52 | echo 53 | 54 | # Make Installed Executable 55 | 56 | echo "Making Plesk Auto-Installer Executable" 57 | chmod +x ./plesk-installer 58 | echo 59 | 60 | # Install Plesk with Required Components 61 | 62 | echo "Starting Plesk Installation" 63 | ./plesk-installer install plesk --preset Recommended --with fail2ban modsecurity spamassassin mailman psa-firewall pmm health-monitor 64 | OUT=$? 65 | if [ $OUT -ne 0 ];then 66 | echo 67 | echo "An error occurred! The installation of Plesk failed. Please see logged lines above for error handling!" 68 | exit 1 69 | fi 70 | 71 | # If Ruby and NodeJS are needed then run install Plesk using the following command: 72 | # ./plesk-installer install plesk --preset Recommended --with fail2ban modsecurity spamassassin mailman psa-firewall pmm health-monitor passenger ruby nodejs gems-preecho 73 | echo 74 | echo 75 | 76 | # Initalize Plesk before Additional Configuration 77 | # https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/init_conf-server-configuration.37843/ 78 | 79 | echo "Starting initialization process of your Plesk server" 80 | plesk bin init_conf --init -email $email -passwd $passwd -name $name -license_agreed $agreement 81 | plesk bin settings --set solution_type="wordpress" 82 | echo 83 | 84 | # Install Plesk Activation Key if provided 85 | # https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/license-license-keys.71029/ 86 | 87 | if [[ -n "$activation_key" ]]; then 88 | echo "Installing Plesk Activation Code" 89 | plesk bin license --install $activation_key 90 | echo 91 | fi 92 | 93 | # Configure Service Provider View On 94 | 95 | if [ "$plesk_ui" = "spv" ]; then 96 | echo "Setting to Service Provider View" 97 | plesk bin poweruser --off 98 | echo 99 | else 100 | echo "Setting to Power user View" 101 | plesk bin poweruser --on 102 | echo 103 | fi 104 | 105 | # Make sure Plesk UI and Plesk Update ports are allowed 106 | 107 | echo "Setting Firewall to allow proper ports." 108 | iptables -I INPUT -p tcp --dport 21 -j ACCEPT 109 | iptables -I INPUT -p tcp --dport 22 -j ACCEPT 110 | iptables -I INPUT -p tcp --dport 25 -j ACCEPT 111 | iptables -I INPUT -p tcp --dport 80 -j ACCEPT 112 | iptables -I INPUT -p tcp --dport 110 -j ACCEPT 113 | iptables -I INPUT -p tcp --dport 143 -j ACCEPT 114 | iptables -I INPUT -p tcp --dport 443 -j ACCEPT 115 | iptables -I INPUT -p tcp --dport 465 -j ACCEPT 116 | iptables -I INPUT -p tcp --dport 993 -j ACCEPT 117 | iptables -I INPUT -p tcp --dport 995 -j ACCEPT 118 | iptables -I INPUT -p tcp --dport 8443 -j ACCEPT 119 | iptables -I INPUT -p tcp --dport 8447 -j ACCEPT 120 | iptables -I INPUT -p tcp --dport 8880 -j ACCEPT 121 | 122 | echo 123 | 124 | # Enable Modsecurity 125 | # https://docs.plesk.com/en-US/onyx/administrator-guide/server-administration/web-application-firewall-modsecurity.73383/ 126 | 127 | echo "Turning on Modsecurity WAF Rules" 128 | plesk bin server_pref --update-web-app-firewall -waf-rule-engine on -waf-rule-set tortix -waf-rule-set-update-period daily -waf-config-preset tradeoff 129 | echo 130 | 131 | # Enable Fail2Ban and Jails 132 | # https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/ip_ban-ip-address-banning-fail2ban.73594/ 133 | 134 | if [ "$fail2ban" = "yes" ]; then 135 | echo "Configuring Fail2Ban and its Jails" 136 | plesk bin ip_ban --enable 137 | plesk bin ip_ban --enable-jails ssh 138 | plesk bin ip_ban --enable-jails recidive 139 | plesk bin ip_ban --enable-jails modsecurity 140 | plesk bin ip_ban --enable-jails plesk-proftpd 141 | plesk bin ip_ban --enable-jails plesk-postfix 142 | plesk bin ip_ban --enable-jails plesk-dovecot 143 | plesk bin ip_ban --enable-jails plesk-roundcube 144 | plesk bin ip_ban --enable-jails plesk-apache-badbot 145 | plesk bin ip_ban --enable-jails plesk-panel 146 | plesk bin ip_ban --enable-jails plesk-wordpress 147 | plesk bin ip_ban --enable-jails plesk-apache 148 | plesk bin ip_ban --enable-jails plesk-horde 149 | echo 150 | fi 151 | 152 | # Turn on http2 153 | # https://docs.plesk.com/en-US/onyx/administrator-guide/web-servers/apache-and-nginx-web-servers-linux/http2-support-in-plesk.76461/ 154 | 155 | if [ "$http2" = "yes" ]; then 156 | echo "Activating http2" 157 | /usr/sbin/plesk bin http2_pref --enable 158 | echo 159 | fi 160 | 161 | # Install Bundle Extensions 162 | # https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/extension-extensions.71031/ 163 | 164 | echo "Installing Requested Plesk Extensions" 165 | echo 166 | echo "Installing SEO Toolkit" 167 | plesk bin extension --install-url https://ext.plesk.com/packages/2ae9cd0b-bc5c-4464-a12d-bd882c651392-xovi/download 168 | echo 169 | echo "Installing BoldGrid" 170 | plesk bin extension --install-url https://ext.plesk.com/packages/e4736f87-ba7e-4601-a403-7c82682ef07d-boldgrid/download 171 | echo 172 | echo "Installing Backup to Cloud extensions" 173 | plesk bin extension --install-url https://ext.plesk.com/packages/9f3b75b3-d04d-44fe-a8fa-7e2b1635c2e1-dropbox-backup/download 174 | plesk bin extension --install-url https://ext.plesk.com/packages/52fd6315-22a4-48b8-959d-b2f1fd737d11-google-drive-backup/download 175 | plesk bin extension --install-url https://ext.plesk.com/packages/8762049b-870e-47cb-ba14-9f055b99b508-s3-backup/download 176 | plesk bin extension --install-url https://ext.plesk.com/packages/a8e5ad9c-a254-4bcf-8ae4-5440f13a88ad-one-drive-backup/download 177 | echo 178 | echo "Installing Speed Kit" 179 | plesk bin extension --install-url https://ext.plesk.com/packages/11e1bf5f-a0df-48c6-8761-e890ff4e906c-baqend/download 180 | echo 181 | echo "Installing ImunifyAV" 182 | plesk bin extension --install-url https://ext.plesk.com/packages/b71916cf-614e-4b11-9644-a5fe82060aaf-revisium-antivirus/download 183 | echo 184 | echo "Installing Google Pagespeed Insights" 185 | plesk bin extension --install-url https://ext.plesk.com/packages/3d2639e6-64a9-43fe-a990-c873b6b3ec66-pagespeed-insights/download 186 | echo 187 | echo "Installing Uptime Robot" 188 | plesk bin extension --install-url https://ext.plesk.com/packages/7d37cfde-f133-4085-91ea-d5399862321b-uptime-robot/download 189 | echo 190 | echo "Installing Sucuri Site Scanner" 191 | plesk bin extension --install-url https://ext.plesk.com/packages/2d5b423b-9104-40f2-9286-a75a6debd43f-sucuri-scanner/download 192 | echo 193 | echo "Installing Domain Connect" 194 | plesk bin extension --install-url https://ext.plesk.com/packages/3a36f828-e477-4600-be33-48c21e351c9a-domain-connect/download 195 | echo 196 | echo "Installing Welcome Guide" 197 | plesk bin extension --install-url https://ext.plesk.com/packages/39eb8f3d-0d9a-4605-a42a-c37ca5809415-welcome/download 198 | echo 199 | echo "Enabling Welcome Guide for the Plesk WordPress Edition" 200 | plesk ext welcome --select -preset wordpress 201 | echo 202 | 203 | 204 | 205 | # Prepair for Cloning 206 | # https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/cloning-server-cloning-settings.71035/ 207 | 208 | if [ "$clone" = "on" ]; then 209 | echo "Setting Plesk Cloning feature." 210 | plesk bin cloning --update -prepare-public-image true -reset-lincese true -skip-update true 211 | echo "Plesk initialization will be wiped on next boot. Ready for Cloning." 212 | else 213 | echo "Here is your login" 214 | plesk login 215 | fi 216 | 217 | echo 218 | echo "Your Plesk WordPress Edition is complete." 219 | echo "Thank you for using the WordPress Edition Cookbook" 220 | echo 221 | --------------------------------------------------------------------------------