This article is based on the operating panel of Linux, and the running environment is CentOS.
Plesk panel installation
The installation is very simple. After the system is installed, run the following command:
Wget-O-http://autoinstall.plesk.com/one-click-installer | sh
Use the Plesk panel
They are all visual panels. Of course, basic operations are not cumbersome. Let's summarize some meaningful operations that I have encountered.
Plesk has both Nginx and Apache installed, and Nginx is used as the frontend. Therefore, some operations must be configured on Nginx.
Configure PHP execution HTML page
In Apache and Nginx settings under the website, find the processor, open the custom value (with a prompt example), enter the following code, and modify it based on different suffixes.
Php-script. html
Configure static page compression
Find other Apache commands in Apache and Nginx settings on the website, and enter the following code in other commands for HTTP and other commands for HTTPS. If SSL is enabled, enter it in HTTPS. If SSL is not enabled, set it in HTTP.
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-httpd-php application/x-javascript
Certificate encryption uses the latest encryption method
In Chrome, if the Green Key prompts "your connection with www.ezloo.com is encrypted using an outdated cipher suite .".
Find other nginx commands in Apache and Nginx settings on the website. Enter the following code.
Export "EECDH + elastic compute + ECDSA + elastic EECDH + aRSA + elastic EECDH + ECDSA + SHA384 EECDH + ECDSA + SHA256 EECDH + aRSA + SHA384 EECDH + aRSA + SHA256 region + aRSA + RC4 eecdh edh + aRSA RC4! ANULL! ENULL! LOW! 3DES! MD5! EXP! PSK! SRP! DSS! RC4 ";
Configure HTTP Strict Transmission Security (HSTS)
Find other nginx commands in Apache and Nginx settings on the website. Enter the following code.
Add_header Strict-Transport-Security "max-age = 63072000; includeSubdomains; preload ";
Manually update the Plesk component
In some cases, the domain name autoinstall.plesk.com automatically updated by Plesk may encounter a resolution failure, modify the/etc/hosts file, specify the IP address, and then run the following command.
/Usr/local/psa/admin/sbin/autoinstaller -- select-product-id plesk -- select-release-current -- upgrade-installed-components
View Awstats statistics after SSL
When the SSL certificate is not installed.
Plesk panel Security optimization
Install Firewall extension
If you use Alibaba Cloud, we recommend that you use Alibaba cloud security.
Use the Plesk installer page (https: // server IP: 8447/select_components.html) for installation. After installation, you can view the firewall in the tools and security options.
Enable and configure inbound and outbound settings. Note: Be careful when setting it. Do not shut yourself out.
Modify the default passive port of Proftpd
Modify the/etc/proftpd. conf file and add or modify the following line. For example, set ports 10000 to 10050 as passive ports.
PassivePorts 10000 10050
Linux operations
Plesk has configured most of the environments, but some settings still need to be manually modified.
Install the Perl module
The environment for installing the HTML: Template module is CentOS.
Yum-y install perl-CPAN
Perl-MCPAN-e shell
Install HTML: Template
Install other modules such as ImageMagick
Yum install ImageMagick-perl
Yum-y install openssl perl-Net-SSLeay perl-IO-Tty perl-Crypt-SSLeay
Install the compiling environment
Yum-y install gcc
Yum-y install gcc-c ++
Yum install make
Modify Linux time zone
The running environment is CentOS.
Cp-f/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Plesk introduction
Plesk control panel is a professional host management software developed by Parallels Corporation (formerly SWsoft). Its rich tool suite can help users quickly migrate data, which is not only easy to operate, in addition, the downtime can be minimized. Plesk's professional design and comprehensive management capabilities provide host professionals with the most comprehensive and powerful features, making it a perfect solution for custom systems and self-help management.