{"id":9595,"date":"2020-10-29T06:20:17","date_gmt":"2020-10-29T06:20:17","guid":{"rendered":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=9595"},"modified":"2024-10-31T03:04:22","modified_gmt":"2024-10-31T03:04:22","slug":"20201029","status":"publish","type":"post","link":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=9595","title":{"rendered":"(20201029 \u4f5c\u696d\u30e1\u30e2) wordpress \u3092 ubuntu16 \u304b\u3089 ubuntu20\u3078\u79fb\u52d5"},"content":{"rendered":"<p>ubuntu16 \u306e\u30b5\u30dd\u30fc\u30c8\u306e\u7d42\u308f\u308a\u3092\u898b\u636e\u3048\u3066\u3001web \u30b5\u30fc\u30d0\u30fc(zairyo)\u3092 ubuntu20 \u306b\u66f4\u65b0\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002wordpress \u3092\u79fb\u52d5\u3055\u305b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\u9806\u306b\u3001\u4f5c\u696d\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n<p>apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">sudo apt install apache2<\/code><\/pre>\n<p>php\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">sudo apt install php<\/code><\/pre>\n<p>phpinfo\u30b3\u30de\u30f3\u30c9\u3092\u8a66\u3059\u3002libapache2-mod-php\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3088\u3046\u3060\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">&lt;?php\r\nphpinfo();\r\n?&gt;\r\n<\/code><\/pre>\n<p>if config \u306e\u4ee3\u308f\u308a<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">ip address show<\/code><\/pre>\n<p>upload \u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u5909\u66f4\u3002\/etc\/php\/7.4\/apache2\/php.ini \u306e\u7de8\u96c6\u3002apache \u306e\u518d\u8d77\u52d5\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">post_max_size = \u5927\u304d\u306a\u5024\r\nupload_max_filesize = \u5927\u304d\u306a\u5024<\/code><\/pre>\n<p>mysql \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-mysql-on-ubuntu-20-04-ja\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>\uff09\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">sudo apt install mysql-server<\/code><\/pre>\n<p>mysql_secure_installation \u306e\u5b9f\u884c\u3002\u3053\u306e\u8fba\u304c\u4ee5\u524d\u3068\u7570\u306a\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$ sudo mysql_secure_installation \r\n\r\nSecuring the MySQL server deployment.\r\n\r\nConnecting to MySQL using a blank password.\r\n\r\nVALIDATE PASSWORD COMPONENT can be used to test passwords\r\nand improve security. It checks the strength of password\r\nand allows the users to set only those passwords which are\r\nsecure enough. Would you like to setup VALIDATE PASSWORD component?\r\n\r\nPress y|Y for Yes, any other key for No: y\r\n\r\nThere are three levels of password validation policy:\r\n\r\nLOW    Length &gt;= 8\r\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters\r\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary                  file\r\n\r\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2\r\nPlease set the password for root here.\r\n\r\nNew password: \r\n\r\nRe-enter new password: \r\n\r\nEstimated strength of the password: 100 \r\nDo you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y\r\nBy default, a MySQL installation has an anonymous user,\r\nallowing anyone to log into MySQL without having to have\r\na user account created for them. This is intended only for\r\ntesting, and to make the installation go a bit smoother.\r\nYou should remove them before moving into a production\r\nenvironment.\r\n\r\nRemove anonymous users? (Press y|Y for Yes, any other key for No) : y\r\nSuccess.\r\n\r\n\r\nNormally, root should only be allowed to connect from\r\n'localhost'. This ensures that someone cannot guess at\r\nthe root password from the network.\r\n\r\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : no\r\n\r\n ... skipping.\r\nBy default, MySQL comes with a database named 'test' that\r\nanyone can access. This is also intended only for testing,\r\nand should be removed before moving into a production\r\nenvironment.\r\n\r\n\r\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : y\r\n - Dropping test database...\r\nSuccess.\r\n\r\n - Removing privileges on test database...\r\nSuccess.\r\n\r\nReloading the privilege tables will ensure that all changes\r\nmade so far will take effect immediately.\r\n\r\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : y\r\nSuccess.\r\n\r\nAll done!<\/code><\/pre>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u65b9\u3082\u5165\u308c\u305f\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">sudo apt install mysql-client<\/code><\/pre>\n<p>\u3053\u306e\u76f4\u5f8c\u306b mysql \u3092 root \u30e6\u30fc\u30b6\u30fc\u3067\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001sudo \u3067 \u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u306f root \u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u901a\u3089\u306a\u3044\u3002ubuntu \u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3068 mysql \u3078\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3092\u4e00\u81f4\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3089\u3057\u3044\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$ mysql -u root -p\r\nEnter password: \r\nERROR 1698 (28000): Access denied for user 'root'@'localhost'\r\n$ sudo mysql -u root -p\r\nEnter password: \r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 11\r\nServer version: 8.0.22-0ubuntu0.20.04.2 (Ubuntu)\r\n\r\nCopyright (c) 2000, 2020, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; <\/code><\/pre>\n<p>phpmyadmin \u3092 root \u3067\u5229\u7528\u3059\u308b\u306a\u3089\u3001\u8a8d\u8a3c\u3092 mysql_native_password \u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u305d\u3046\u3060\u3002phpmyadmin \u306f www-data \u3068\u3044\u3046\u540d\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067 phpmyadmin \u3092\u5229\u7528\u3059\u308b\u306a\u3089\uff0cmysql \u4e0a\u306b www-data \u3068\u3044\u3046\u540d\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u3046\u3002\u8a8d\u8a3c\u3092\u53e4\u3044\u30bf\u30a4\u30d7\u306b\u623b\u305b\u3070\uff0c\u3053\u306e\u4e0d\u4e00\u81f4\u306f\u8a31\u5bb9\u3055\u308c\u308b\u3002\u4ee5\u964d\u3001\u304b\u306a\u308a\u306e\u8a66\u884c\u932f\u8aa4\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">mysql&gt; use mysql\r\nNo connection. Trying to reconnect...\r\nConnection id:    12\r\nCurrent database: *** NONE ***\r\n\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\n\r\nDatabase changed\r\nmysql&gt; update user set plugin='mysql_native_password' where User='root';\r\nQuery OK, 1 row affected (0.05 sec)\r\nRows matched: 1  Changed: 1  Warnings: 0<\/code><\/pre>\n<p>\u3053\u306e\u72b6\u614b\u3067\u3001\u901a\u5e38\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u306f\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u3057\u304b\u3057\u30d1\u30b9\u30ef\u30fc\u30c9\u7121\u3057\u306e\u30ed\u30b0\u30a4\u30f3\u304c\u53ef\u80fd\u3067\u3042\u3063\u305f\u3002\u3053\u308c\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u3082\u306e\u306a\u306e\u304b\uff1f<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$ mysql -u root -p\r\nEnter password: \r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n$ sudo mysql -u root -p\r\n[sudo] friend \u306e\u30d1\u30b9\u30ef\u30fc\u30c9: \r\nEnter password: \r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n$ mysql -u root \r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 15\r\nServer version: 8.0.22-0ubuntu0.20.04.2 (Ubuntu)\r\n\r\nCopyright (c) 2000, 2020, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt;<\/code><\/pre>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u3002\u4ee5\u524d\u3068\u306f\u7570\u306a\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">mysql&gt; use mysql\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\n\r\nDatabase changed\r\nmysql&gt; ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxxxxx';\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; <\/code><\/pre>\n<p>\u3053\u306e\u5f8c\u306a\u3089\u3001\u53e4\u3044\u611f\u3058\u306e\u30ed\u30b0\u30a4\u30f3\u304c\u53ef\u80fd\u3060\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u306e\u30ed\u30b0\u30a4\u30f3\u306f\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$ mysql -u root \r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)\r\n$ mysql -u root -p\r\nEnter password: \r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 17\r\nServer version: 8.0.22-0ubuntu0.20.04.2 (Ubuntu)\r\n\r\nCopyright (c) 2000, 2020, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; <\/code><\/pre>\n<p>phpmyadmin \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$ sudo apt install phpmyadmin<\/code><\/pre>\n<p>\u7121\u4e8b\u30da\u30fc\u30b8\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u305f\u3002<\/p>\n<p><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-9628\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a-300x231.png\" alt=\"\" width=\"300\" height=\"231\" srcset=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a-300x231.png 300w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a-768x592.png 768w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a-1024x789.png 1024w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a-600x462.png 600w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102a.png 1329w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>phpmyadmin\u306e\u51e6\u7406\u6642\u9593\u3092\u5ef6\u3070\u3059\u3002\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u5b9f\u884c\u6642\u9593\u304c300\u79d2\u306b\u8a2d\u5b9a(\u5236\u9650)\u3055\u308c\u3066\u3044\u308b\u3002\u4ee5\u524d\u3068\u540c\u3058\u3088\u3046\u306b\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>\/usr\/share\/phpmyadmin\/libraries\/config.default.php \u306e 709 \u884c\u306b\u6b21\u306e\u8a2d\u5b9a\u9805\u76ee\u304c\u3042\u308b\u3002\u4efb\u610f\u306e\u6570\u5024\u306b\u5909\u66f4\u3059\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 300 \u3067\u3042\u308b\u304c\uff0c\u4eca\u56de\u306f 7200 \u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">$cfg[\u2018ExecTimeLimit\u2019] = 300; <\/code><\/pre>\n<p>phpmyadmin \u3067 wordpress \u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u306b\u3068\u307e\u3069\u308b\u3002\u7279\u6b8a\u6587\u5b57\u3092\u542b\u3081\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u3002\u3057\u304b\u3057\u4ed6\u306b phpmyadmin \u306b\u8d77\u56e0\u3059\u308b\u30c8\u30e9\u30d6\u30eb\u306f\u751f\u3058\u3066\u306f\u3044\u306a\u3044\u3088\u3046\u3060\u3002\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u3082\u30cd\u30a4\u30c6\u30a3\u30d6MySQL\u8a8d\u8a3c\u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n<p>wordpress \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\uff0c\/var\/www\/ \u5185\u3067\u89e3\u51cd\u3059\u308b\u3002<br \/>\n\u4e00\u65e6\u3001\/var\/www\/html\/wordpress \u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u5168\u6a29\u9650\u3092 www-data \u306b\u4e0e\u3048\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">sudo chown -R www-data .\/wordpress<\/code><\/pre>\n<p><a href=\"https:\/\/ja.wordpress.org\/support\/article\/how-to-install-wordpress\/\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\uff1f\u306b\u5f93\u3063\u3066\u3001\/wordpress\/wp-admin\/install.php \u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304f\u3002<\/p>\n<p><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-9639\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b-300x225.png 300w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b-768x576.png 768w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b-1024x768.png 1024w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b-600x450.png 600w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201102b.png 1400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u306a\u3093\u3068\u304b\uff0cwordpress \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u5206\u304b\u3063\u305f\u3002\u3044\u3064\u3082\u3060\u3068\u3042\u308c\u304c\u8db3\u308a\u306a\u3044\u3068\u304b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u9014\u4e2d\u3067\u8a00\u308f\u308c\u308b\u304c\uff0c\u4eca\u56de\u306f\u7279\u306b\u4f55\u3082\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>phpmyadmin \u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u4ed8\u3051\u308b\u3002\/etc\/phpmyadmin\/apache.conf \u306b\u3042\u308b \/usr\/share\/phpmyadmin\/ \u306b\u5bfe\u3059\u308b\u8a18\u8ff0\u306b\u4e0b\u8a18\u306e\u5185\u5bb9\u3092\u52a0\u3048\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">&lt;Directory\u3000\/usr\/share\/phpmyadmin&gt;\r\n\r\n\u7701\u7565\r\n\r\nOrder Deny,Allow\r\nDeny from All\r\nallow from \u79d8\u5bc6\u3067\u3059\r\n\r\n\u7701\u7565\r\n\r\n&lt;\/Directory&gt;<\/code><\/pre>\n<p>apache \u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u4ed8\u3051\u308b\u3002\/etc\/apache2\/sites-enabled\/000-default.conf \u3092\u4fee\u6b63\u3057\u307e\u3059\u3002\u4ee5\u524d\u306e\u3082\u306e\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u306a\u306e\u3067\u3059\u304c\uff0c phpmyadmin \u306e\u8a2d\u5b9a\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u3002wordpress \u306e\u30ed\u30b0\u30a4\u30f3\u8a31\u53ef\u306e\u8a18\u8ff0\u3082\u91cd\u8907\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u3057\u304b\u3057\u307e\u3042\uff0c\u30a2\u30af\u30bb\u30b9\u62d2\u5426\u306e\u30b5\u30a4\u30c8\u304c\u5897\u3048\u307e\u3057\u305f\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">\r\n\r\n\t&lt;Directory \/var\/www\/html\/&gt;\r\n\t\tOptions FollowSymLinks MultiViews\r\n\t\tAllowOverride All\r\n\t\tOrder allow,deny\r\n\t\tallow from all\r\n\t\tDeny from 99.192.223.130\r\n\u9014\u4e2d\u7701\u7565\u3000.........................\r\n\t\tDeny from 213.217.0.224\r\n\t&lt;\/Directory&gt;\r\n\r\n\r\n\t&lt;Directory \/var\/www\/html\/wordpress\/wp-admin\/&gt;\r\n\t\tOrder deny,allow\r\n\t\tdeny from all\r\n\t\tallow from \u79d8\u5bc6\u3067\u3059\r\n\t&lt;\/Directory&gt;\r\n\r\n\t&lt;Directory \/usr\/share\/phpmyadmin\/&gt;\r\n\t\tOrder deny,allow\r\n\t\tdeny from all\r\n\t\tallow from \u79d8\u5bc6\u3067\u3059\r\n\t&lt;\/Directory&gt;\r\n\r\n\u3000\u3000\u3000\u3000&lt;Files ~ \"wp-login.php*$\"&gt;\r\n\t\tOrder deny,allow\r\n\t\tdeny from all\r\n\t\tallow from xxx.xxx.xxx.xxx \uff08\u9069\u5f53\u306aIP\u3092\u6307\u5b9a\u3059\u308b\uff09\r\n\t&lt;\/Files&gt;<\/code><\/pre>\n<p>apache \u3067\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3092\u7981\u6b62\u3059\u308b\u3002\u3053\u308c\u306f\u5148\u307b\u3069\u306e apache \u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3067\u3059\u3067\u306b\u5b8c\u4e86\u3057\u3066\u3044\u305f\u3002<\/p>\n<p><b>wordpress \u3092\u79fb\u3059<\/b><\/p>\n<p>\u5352\u696d\u306a\u3069\u3067\u3044\u306a\u304f\u306a\u3063\u305f OB \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5206\u304b\u3089\u306a\u3044\u304c\uff0c\u3053\u308c\u3092 phpmyadmin \u3092\u4f7f\u3063\u3066\u76f4\u63a5\u66f8\u304d\u63db\u3048\u305f\u3002\u5909\u66f4\u306f MD5 \u306e\u30cf\u30c3\u30b7\u30e5\u3067\u826f\u304b\u3063\u305f\u3002<a href=\"https:\/\/ja.wordpress.org\/support\/article\/resetting-your-password\/\">\u3053\u306e\u30b5\u30a4\u30c8<\/a>\u306e\u8a18\u4e8b\u3092\u5f15\u7528\u3059\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30bd\u30eb\u30c8\u5316\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u3064\u307e\u308a\u4f8b\u3048\u3070 $P$BLDJMdyBwegaCLE0GeDiGtC\/mqXLzB0 \u306e\u3088\u3046\u306b\u898b\u3048\u308b\u5834\u5408\u3067\u3082\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092 MD5 \u30cf\u30c3\u30b7\u30e5\u306b\u7f6e\u304d\u63db\u3048\u3066 WordPress \u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u79fb\u3059\u524d\u306b\uff0c\u5143\u306e WEB \u30b5\u30fc\u30d0\u30fc\u3067\uff0cwordpress \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 5.3\u306b\u3042\u3052\u308b\u3002\u5148\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u305f\u5f8c\u306e\u79fb\u52d5\u306e\u65b9\u304c\u30b9\u30e0\u30fc\u30ba\u304b\u3068\u601d\u3046\u3002\u3053\u308c\u306b\u306f\uff0c\u307e\u305a wp-content \u30d5\u30a9\u30eb\u30c0\u30fc\u3068 wp-config.php \u4ee5\u5916\u306e\u30d5\u30a1\u30a4\u30eb\u3092 5.3 \u306e\u3082\u306e\u3068\u5165\u308c\u304b\u3048\uff0cwordpress \u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\uff0c\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u3092\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u4fc3\u3055\u308c\u81ea\u52d5\u7684\u306b 5.3 \u306b\u9069\u5fdc\u3057\u305f\u5185\u5bb9\u306b\u306a\u308b\u3002\u3053\u308c\u3092 phpmyadmin \u304b\u3089\u66f8\u304d\u51fa\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u5143\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\/var\/www\/html \u306e\u4e2d\u8eab\uff09\u306f tar \u3067\u56fa\u3081\u308b\u3002\u305d\u3046\u3059\u308c\u3070\u6240\u6709\u6a29\u7b49\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u7dad\u6301\u3067\u304d\u308b(<a href=\"http:\/\/sugargoodman.hatenablog.com\/entry\/2013\/03\/29\/225444\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>)\u3002\u5727\u7e2e\u3068\u89e3\u51cd\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4e0b\u8a18\u306b\u8a18\u9332\u3059\u308b\u3002\u89e3\u51cd\u306e\u307f\u304c sudo \u3067\u3042\u308b\u3002<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">tar zcvf wordpress.tar.gz .\/wordpress\/\r\nsudo tar zxvf wordpress.tar.gz<\/code><\/pre>\n<p>\u3053\u306e\u5f8c\uff0c\u30b3\u30f3\u30c6\u30f3\u30c4\u306e tar \u30d5\u30a1\u30a4\u30eb\u3092\uff0c\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u3067\u89e3\u51cd\u3057\uff0c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082 phpmyadmin \u3092\u4f7f\u3063\u3066\uff0c\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u5fa9\u5143\u3059\u308b\u3002\u305d\u3046\u3059\u308c\u3070\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u306b wordpress \u306e\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u306a\u304f\u3066\u3082\uff0c\u5143\u306e\u30d6\u30ed\u30b0\u304c\u518d\u73fe\u3055\u308c\u308b\u3002<\/p>\n<p>\u4f5c\u696d\u3057\u3066\u3044\u308b\u74b0\u5883\u3068\u5b9f\u969b\u306e\u74b0\u5883\u304c\u8272\u3005\u7570\u306a\u308b\u306e\u3067\uff0c\u8a2d\u7f6e\u3057\u305f\u969b\u306b apache \u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u306e\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u3002\u4f8b\u3048\u3070\u4f5c\u696d\u4e2d\u306f 192.168.100.xxx \u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u8a31\u53ef\u3059\u308b\u304c\uff0c\u8a2d\u7f6e\u3057\u305f\u5f8c\u306f\u5fc5\u8981\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u3053\u306e\u8fba\u3067\u4e00\u5fdc\u306e\u5b8c\u6210\u3002\u65b0\u3057\u3044\u30a8\u30c7\u30a3\u30bf\u30fc\u306b\u6163\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-9698\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a-300x228.png\" alt=\"\" width=\"300\" height=\"228\" srcset=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a-300x228.png 300w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a-1024x778.png 1024w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a-768x583.png 768w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a-600x456.png 600w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2020\/10\/20201106a.png 1498w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>(20241031)<\/strong><br \/>\napache \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002\/etc\/apache2\/conf-available\/security.conf \u306b\u304a\u3044\u3066<\/p>\n<pre><code style=\"color: midnightblue; font-size: 12px; white-space: pre-wrap;\">ServerTokens Prod\r\nServerSignature Off<\/code><\/pre>\n<p>\u4e0a\u8a18\u3078\u5909\u66f4\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu16 \u306e\u30b5\u30dd\u30fc\u30c8\u306e\u7d42\u308f\u308a\u3092\u898b\u636e\u3048\u3066\u3001web \u30b5\u30fc\u30d0\u30fc(zairyo) &#8230; <a class=\"more-link\" href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=9595\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9595","post","type-post","status-publish","format-standard","hentry","category-column"],"_links":{"self":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9595"}],"version-history":[{"count":99,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9595\/revisions"}],"predecessor-version":[{"id":13474,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/9595\/revisions\/13474"}],"wp:attachment":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9595"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}