﻿{"id":501,"date":"2022-10-06T18:27:20","date_gmt":"2022-10-06T09:27:20","guid":{"rendered":"https:\/\/www.actry-system.co.jp\/wordpress\/?p=501"},"modified":"2022-10-25T15:30:45","modified_gmt":"2022-10-25T06:30:45","slug":"%e6%98%a0%e5%83%8f%e9%85%8d%e4%bf%a1%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e6%a7%8b%e7%af%89%e3%80%80%e7%ac%ac4%e5%9b%9e%ef%bc%88avideo%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/www.actry-system.co.jp\/wordpress\/?p=501","title":{"rendered":"\u6620\u50cf\u914d\u4fe1\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3000\u7b2c4\u56de SETUP\uff08apache\/certbot\/MySQL\uff09"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5229\u7528\u74b0\u5883\u306e\u6e96\u5099\u3092\u3057\u307e\u3059\u3002<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u985e\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li><li>git\u74b0\u5883\u304b\u3089Avideo\u74b0\u5883\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/li><li>apache\u306e\u8a2d\u5b9a<\/li><li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a3c\u660e\u66f8\u53d6\u5f97<\/li><li>MySQL\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u691c\u8a3c\u306a\u306e\u3067\u3001root\u74b0\u5883\u306b\u3066\u4f5c\u6210\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306fUbuntu\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>apt update<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">AVideo\u3067\u5fc5\u8981\u3068\u3055\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u5f0f\u3068net-tools\u306f\u691c\u8a3c\u4fbf\u5229\u306a\u306e\u3067\u8ffd\u52a0\u3057\u3066\u3042\u308a\u307e\u3059\u3002<br>DNS\u7ba1\u7406\u3082\u4e00\u7dd2\u306b\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u884c\u3046\u5834\u5408\u306a\u3069\u306f bind \u306e\u4ed6 dig \u3082\u8ffd\u52a0\u3057\u3066\u3042\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>apt install apache2 libapache2-mod-php php-mysql php-curl php-gd php-intl php-xml \\<br>git libimage-exiftool-perl curl net-tools libimage-exiftool-perl libnginx-mod-rtmp nginx \\<br>mysql-server mysql-client ffmpeg php-mbstring<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Apache\u306emod_rewrite\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>a2enmod rewrite<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">youtube-dl\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>curl -L https:\/\/yt-dl.org\/downloads\/latest\/youtube-dl -o \/usr\/local\/bin\/youtube-dl<br>chmod a+rx \/usr\/local\/bin\/youtube-dl<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">AVideo\u3092git\u74b0\u5883\u3088\u308a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>cd \/var\/www\/html<br>git clone https:\/\/github.com\/WWBN\/AVideo.git avideo<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">AVideo-Encoder\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>cd \/var\/www\/html<br>git clone https:\/\/github.com\/WWBN\/AVideo-Encoder.git encoder<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>chown -R www-data:www-data avideo<br>chown -R www-data:www-data encoder<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> Apache HTTP Server \/ PHP\u306e\u8a2d\u5b9a<br>\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u7121\u52b9\u5316\u3057\u3066\u3001001-avideo.conf\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3057\u307e\u3059<br>apache\u7528conf\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u53d6\u5f97\u3057\u305f\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u306e\u4ed6\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u767a\u751f\u3059\u308b\u305f\u3081\u3001AllowOverride All\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>a2dissite 000-default<br>nano \/etc\/apache2\/sites-available\/001-avideo.conf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>&lt;VirtualHost *:80&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName <span style=\"color:red\"><strong>\u30c9\u30e1\u30a4\u30f3\u540dxxxx.xxxxx.xxxx<\/strong><\/span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot \/var\/www\/html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryIndex index.html index.php<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory &#8220;\/var\/www\/html\/avideo&#8221;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride <span style=\"color:red\"><strong>All<\/strong><\/span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Require all granted<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Directory&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory &#8220;\/var\/www\/html\/encoder&#8221;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride <span style=\"color:red\"><strong>All<\/strong><\/span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Require all granted<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Directory&gt;<br>&lt;\/VirtualHost&gt;<\/td><\/tr><\/tbody><\/table><figcaption>001-avideo.conf<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>a2ensite 001-avideo<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uff28\uff34\uff34\uff30\uff33\u3067\u306e\u63a5\u7d9a\u3092\u884c\u3046\u5834\u5408\u306f\u8a3c\u660e\u66f8\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u7121\u6599\u8a3c\u660e\u66f8\u306eCerbot\u3092apache\u3067\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>apt install certbot python3-certbot-apache<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u3092\u5fd8\u308c\u305a\u306b\u3002<br>\u7b2c3\u56de\u306e\u8aac\u660e\u306b\u3066\uff36\uff30\uff33\u4e0a\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u5185\u306e\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3067\u3082\u30dd\u30fc\u30c8\u306e\u901a\u904e\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u3001\u77db\u76fe\u3057\u306a\u3044\u69d8\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>ufw allow &#8216;Apache Full&#8217;<\/td><\/tr><\/tbody><\/table><figcaption>Apache\u306fhttp\u306e\u307f\uff08\u30dd\u30fc\u30c880\uff09\u3001Apache Full\u306fhttp\u3068https\uff08\u30dd\u30fc\u30c8443\uff09\u3001Apache Secure\u306fhttps\u306e\u307f\u3092\u8868\u3057\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">SSL\u8a3c\u660e\u66f8\u306e\u53d6\u5f97<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>certbot &#8211;apache<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td><em>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<\/em><br><em>Plugins selected: Authenticator apache, Installer apache<\/em><br><em>Enter email address (used for urgent renewal and security notices) (Enter &#8216;c&#8217; to<\/em><br><em>cancel): <\/em><span style=\"color:red\"><strong>xxxxx@xxxx.xxx.xxx<\/strong><\/span><br><em>&nbsp;&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>Please read the Terms of Service at<\/em><br><em>https:\/\/letsencrypt.org\/documents\/LE-SA-v1.3-September-21-2022.pdf. You must<\/em><br><em>agree in order to register with the ACME server at<\/em><br><em>https:\/\/acme-v02.api.letsencrypt.org\/directory<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>(A)gree\/(C)ancel: <\/em><span style=\"color:red\"><strong>a<\/strong><\/span><br><em>&nbsp;&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>Would you be willing to share your email address with the Electronic Frontier<\/em><br><em>Foundation, a founding partner of the Let&#8217;s Encrypt project and the non-profit<\/em><br><em>organization that develops Certbot? We&#8217;d like to send you email about our work<\/em><br><em>encrypting the web, EFF news, campaigns, and ways to support digital freedom.<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>(Y)es\/(N)o: <span style=\"color:red\"><strong>y<\/strong><\/span><\/em><br><br><em>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<\/em><br><em>Plugins selected: Authenticator apache, Installer apache<\/em><br><em>&nbsp;<\/em><br><em>Which names would you like to activate HTTPS for?<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>1: <\/em><span style=\"color:red\"><strong>xxxxx.xxxxxx.xxxxxx<\/strong><\/span><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>Select the appropriate numbers separated by commas and\/or spaces, or leave input<\/em><br>blank to select all options shown (Enter &#8216;c&#8217; to cancel):<span style=\"color:red\"><strong>1<\/strong><\/span><br><em>&nbsp;<\/em><br><em>Obtaining a new certificate<\/em><br><em>Performing the following challenges:<\/em><br><em>http-01 challenge for <\/em><strong><span style=\"color:red\"><strong>xxxxx.xxxxxx.xxxxxx<\/strong><\/span><\/strong><br><em>Waiting for verification&#8230;<\/em><br><em>Cleaning up challenges<\/em><br><em>Created an SSL vhost at \/etc\/apache2\/sites-available\/001-avideo-le-ssl.conf<\/em><br><em>Enabled Apache socache_shmcb module<\/em><br><em>Enabled Apache ssl module<\/em><br><em>Deploying Certificate to VirtualHost \/etc\/apache2\/sites-available\/001-avideo-le-ssl.conf<\/em><br><em>Enabling available site: \/etc\/apache2\/sites-available\/001-avideo-le-ssl.conf<\/em><br><em>&nbsp;<\/em><br><em>Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>1: No redirect &#8211; Make no further changes to the webserver configuration.<\/em><br><em>2: Redirect &#8211; Make all requests redirect to secure HTTPS access. Choose this for<\/em><br><em>new sites, or if you&#8217;re confident your site works on HTTPS. You can undo this<\/em><br><em>change by editing your web server&#8217;s configuration.<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br>Select the appropriate number [1-2] then [enter] (press &#8216;c&#8217; to cancel): <span style=\"color:red\"><strong>2<\/strong><\/span><br><em>Redirecting vhost in \/etc\/apache2\/sites-enabled\/001-avideo.conf to ssl vhost in \/etc\/apache2\/sites-enabled\/001-avideo-le-ssl.conf<\/em><br><em>&nbsp;<\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>Congratulations! You have successfully enabled https:\/\/<span style=\"color:red\"><strong>xxxxx.xxxxxx.xxxxxx<\/strong><\/span><\/em><br><em>&nbsp;<\/em><br><em>You should test your configuration at:<\/em><br><em>https:\/\/www.ssllabs.com\/ssltest\/analyze.html?d=<span style=\"color:red\"><strong>xxxxx.xxxxxx.xxxxxx<\/strong><\/span><\/em><br><em>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<\/em><br><em>&nbsp;<\/em><br><em>IMPORTANT NOTES:<\/em><br><em>&nbsp;&#8211; Congratulations! Your certificate and chain have been saved at:<\/em><br><em>&nbsp;&nbsp; \/etc\/letsencrypt\/live\/jtsrv01.actry-system.net\/fullchain.pem<\/em><br><em>&nbsp;&nbsp; Your key file has been saved at:<\/em><br><em>&nbsp;&nbsp; \/etc\/letsencrypt\/live\/jtsrv01.actry-system.net\/privkey.pem<\/em><br><em>&nbsp;&nbsp; Your cert will expire on 2022-09-29. To obtain a new or tweaked<\/em><br><em>&nbsp;&nbsp; version of this certificate in the future, simply run certbot again<\/em><br><em>&nbsp;&nbsp; with the &#8220;certonly&#8221; option. To non-interactively renew *all* of<\/em><br><em>&nbsp;&nbsp; your certificates, run &#8220;certbot renew&#8221;<\/em><br><em>&nbsp;&#8211; If you like Certbot, please consider supporting our work by:<\/em><br><em>&nbsp;<\/em><br><em>&nbsp;&nbsp; Donating to ISRG \/ Let&#8217;s Encrypt:&nbsp;&nbsp; https:\/\/letsencrypt.org\/donate<\/em><br><em>&nbsp;&nbsp; Donating to EFF:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/em><a href=\"https:\/\/eff.org\/donate-le\"><em>https:\/\/eff.org\/donate-le<\/em><\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">apache\u3067\u306ePHP\u52d5\u4f5c\u8a2d\u5b9a<br>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u30d5\u30a9\u30eb\u30c0\u306e\u5834\u6240\u304c\u5909\u308f\u308a\u307e\u3059\u306e\u3067\u3001\u9069\u6642php.ini\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>cd \/etc\/php\/7.4\/apache2\/<br>sed -i -e &#8216;s\/max_execution_time = 30\/max_execution_time = 7200\/g&#8217; php.ini<br>sed -i -e &#8216;s\/memory_limit = 128M\/memory_limit = 512M\/g&#8217; php.ini<br>sed -i -e &#8216;s\/post_max_size = 8M\/post_max_size = 5000M\/g&#8217; php.ini<br>sed -i -e &#8216;s\/upload_max_filesize = 2M\/upload_max_filesize = 5000M\/g&#8217; php.ini<\/td><\/tr><\/tbody><\/table><figcaption>\/etc\/php\/7.4\/apache2\/php.ini<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30f3\u30b3\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3084\u30e1\u30e2\u30ea\u30fc\u306b\u3064\u3044\u3066\u306f\u904b\u7528\u3059\u308b\u30b5\u30a4\u30ba\u3092\u76ee\u5b89\u306b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<br>\u3053\u3053\u3067\u306f5GB\uff08HD\u8a18\u9332\u30672\u6642\u959330\u5206\uff09\u3092\u76ee\u5b89\u306b\u3057\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">apache\u306e\u518d\u8d77\u52d5<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>systemctl restart apache2<\/td><\/tr><\/tbody><\/table><figcaption>\/etc\/php\/7.4\/apache2\/php.ini<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306fMySQL\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>systemctl start mysql<br>mysql -u root -p<\/td><\/tr><\/tbody><\/table><figcaption>\/etc\/php\/7.4\/apache2\/php.ini<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">root\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304f\u4e8b\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<br>\u672c\u6765\u306f\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u8a2d\u5b9a\u3059\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u30a8\u30e9\u30fc\u306e\u7121\u9650\u30eb\u30fc\u30d7\u306b\u7a81\u5165\u3059\u308b\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u3042\u3063\u305f\u306e\u3067\u3001\u4e8b\u524d\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u65b9\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>ALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password by &#8216;<span style=\"color:red\"><strong>xxxxxxxxx<\/strong><\/span>&#8216;;<br>flush privileges;<br>exit<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">MySQL\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td>mysql_secure_installation<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table class=\"has-white-color has-black-background-color has-text-color has-background\"><tbody><tr><td><em>Securing the MySQL server deployment.<\/em><br><em>&nbsp;<\/em><br><em>Enter password for user root:<\/em><br><em>&nbsp;<\/em><br><em>VALIDATE PASSWORD COMPONENT can be used to test passwords<\/em><br><em>and improve security. It checks the strength of password<\/em><br><em>and allows the users to set only those passwords which are<\/em><br><em>secure enough. Would you like to setup VALIDATE PASSWORD component?<\/em><br><em>&nbsp;<\/em><br><em>Press y|Y for Yes, any other key for No: <span style=\"color:red\"><strong>y<\/strong><\/span><\/em><br><em>&nbsp;<\/em><br><em>There are three levels of password validation policy:<\/em><br><em>&nbsp;<\/em><br><em>LOW&nbsp;&nbsp;&nbsp; Length &gt;= 8<\/em><br><em>MEDIUM Length &gt;= 8, numeric, mixed case, and special characters<\/em><br><em>STRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary&nbsp;file<\/em><br><em>&nbsp;<\/em><br><em>Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: <span style=\"color:red\"><strong>0<\/strong><\/span><\/em><br><em>Using existing password for root.<\/em><br><em>&nbsp;<\/em><br><em>Estimated strength of the password: 100<\/em><br><strong>Change the password for root ? ((Press y|Y for Yes, any other key for No) : <span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><br><em>New password:<\/em><br><em>Re-enter new password:<\/em><br><em>Estimated strength of the password: 100<\/em><br><strong>Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : <strong><span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><\/strong><br><em>By default, a MySQL installation has an anonymous user,<\/em><br><em>allowing anyone to log into MySQL without having to have<\/em><br><em>a user account created for them. This is intended only for<\/em><br><em>testing, and to make the installation go a bit smoother.<\/em><br><em>You should remove them before moving into a production<\/em><br><em>environment.<\/em><br><strong>Remove anonymous users? (Press y|Y for Yes, any other key for No) : <strong><span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><\/strong><br><em>Success.<\/em><br><em>Normally, root should only be allowed to connect from<\/em><br><em>&#8216;localhost&#8217;. This ensures that someone cannot guess at<\/em><br><em>the root password from the network.<\/em><br><strong>Disallow root login remotely? (Press y|Y for Yes, any other key for No) : <strong><span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><\/strong><br><em>Success.<\/em><br><em>By default, MySQL comes with a database named &#8216;test&#8217; that<\/em><br><em>anyone can access. This is also intended only for testing,<\/em><br><em>and should be removed before moving into a production<\/em><br><em>environment.<\/em><br><strong>Remove test database and access to it? (Press y|Y for Yes, any other key for No) : <strong><span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><\/strong><br><em>&nbsp;&#8211; Dropping test database&#8230;<\/em><br><em>Success.<\/em><br><em>&nbsp;&#8211; Removing privileges on test database&#8230;<\/em><br><em>Success.<\/em><br><em>Reloading the privilege tables will ensure that all changes<\/em><br><em>made so far will take effect immediately.<\/em><br><strong>Reload privilege tables now? (Press y|Y for Yes, any other key for No) : <strong><span style=\"color:red\"><strong>y<\/strong><\/span><\/strong><\/strong><br><em>Success.<\/em><br><em>All done!<\/em><\/td><\/tr><\/tbody><\/table><figcaption>DB\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30b9\u30ef\u30fc\u30c9\u7b49\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb\u306b\u3064\u3044\u3066\u306f\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u3067\u30a4\u30f3\u30d5\u30e9\u7684\u306a\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u5b8c\u4e86\u3067\u3059\u3001\u3053\u306e\u3042\u3068\u306fAVideo\uff08\u30a2\u30d7\u30ea\u5074\uff09\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5229\u7528\u74b0\u5883\u306e\u6e96\u5099\u3092\u3057\u307e\u3059\u3002 \u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u985e\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb git\u74b0\u5883\u304b\u3089Avideo\u74b0\u5883\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002 apache\u306e\u8a2d\u5b9a \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a3c\u660e\u66f8\u53d6\u5f97 MySQL\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 \u4eca\u56de\u306f\u691c\u8a3c\u306a\u306e\u3067\u3001root\u74b0\u5883\u306b\u3066\u4f5c\u6210\u3057\u3066\u3057\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-501","post","type-post","status-publish","format-standard","hentry","category-14"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=501"}],"version-history":[{"count":11,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/501\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.actry-system.co.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}