カテゴリー: WordPress

WordPressでテーマのインストールするときFTPの情報を聞いてくる場合があるので解決策

WordPressでテーマのインストールするときFTPの情報を聞いてくる場合がある。

パーミッションの設定状況によるのだが、オーナーとグループをやりくるしていると解決できないようである。

解決策の一つとして・・・

WordPressのディレクトリ以下のオーナーをWebサーバを起動しているユーザに設定する。

  • apacheの場合はapache
  • nginxの場合はnginx

(グループだけをapacheとかnginxにしてパーミッションを与えても効果なし)

WordPressインストール時のMysqlの操作

# mysql -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.5.27 MySQL Community Server (GPL) by Remi

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wp_user@localhost IDENTIFIED BY '**********';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET UTF8;
Query OK, 1 row affected (0.00 sec)

mysql> SHOW DATABASES;

 +--------------------+
 | Database           |
 +--------------------+
 | information_schema |
 | mysql              |
 | postfix            |
 | test               |
 | wordpress          |
 +--------------------+
 5 rows in set (0.00 sec)

 

© 2023 Opendream

Theme by Anders Noren上へ ↑