Warning: Constant AUTOMATIC_UPDATER_DISABLED already defined in /volume1/web_packages/wordpress/syno-wp-config-custom.php on line 12 Call Stack: 0.0001 360960 1. {main}() /volume1/web_packages/wordpress/index.php:0 0.0002 361272 2. require('/volume1/web_packages/wordpress/wp-blog-header.php') /volume1/web_packages/wordpress/index.php:17 0.0002 361688 3. require_once('/volume1/web_packages/wordpress/wp-load.php') /volume1/web_packages/wordpress/wp-blog-header.php:13 0.0002 362480 4. require_once('/volume1/web_packages/wordpress/wp-config.php') /volume1/web_packages/wordpress/wp-load.php:50 0.0003 363184 5. require_once('/volume1/web_packages/wordpress/syno-wp-config-custom.php') /volume1/web_packages/wordpress/wp-config.php:90 2.7764 12832528 6. define($constant_name = 'AUTOMATIC_UPDATER_DISABLED', $value = TRUE) /volume1/web_packages/wordpress/syno-wp-config-custom.php:12 Cài đặt tự động SSL lên VPS – Aura.Phoenix – Tổng hợp thông tin
  • SSH into the server: SSH into the server running your HTTP website as a user with sudo privileges.
  • Enable EPEL repo
    yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

     

  • Install Certbot: Run this command on the command line on the machine to install Certbot.
    sudo yum install certbot python2-certbot-nginx
  • Choose how you’d like to run Certbot
    • Either get and install your certificates…Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step.
      sudo certbot --nginx
    • Or, just get a certificateIf you’re feeling more conservative and would like to make the changes to your Nginx configuration by hand, run this command.
      sudo certbot certonly --nginx

       

  • Set up automatic renewalWe recommend running the following line, which will add a cron job to the default crontab.
    echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null

     

  • Confirm that Certbot workedTo confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar. If you want to check that you have the top-of-the-line installation, you can head to https://www.ssllabs.com/ssltest/.

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *