WordPressのインストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
&color(red){''書きかけ''};
WordPressを冗談半分で入れてみたいので作業中のメモ~
Dibianはまだ4系だが、Dibian流のインストールに挑戦。
参考:[[WordPress - Debian Wiki:https://wiki.debian.org/W...
** LAMPのインストール [#h4983de3]
※まっさらな環境なら
$ sudo apt install tasksel
$ sudo tasksel
** WordPress のインストール [#bc4c22f6]
$ sudo apt-get install wordpress wordpress-l10n
** WordPress の設定 [#dcbb6af8]
/usr/share/doc/wordpress/README.Debian.gz を参考に設定す...
$ zcat /usr/share/doc/wordpress/README.Debian.gz
*** #### Quick setup [#fd5f0520]
Setup apache to point to /usr/share/wordpress. See the e...
/usr/share/wordpressを指すようにApacheをセットアップしま...
Database and filesystem setup can be done with the help ...
examples/setup-mysql.
examples/setup-mysqlのスクリプトを使用して、データベース...
*** #### WordPress configuration file [#m005302f]
The Debian package installs a wp-config.php script that ...
try to load the real configuration from /etc/wordpress/c...
or /etc/wordpress/config-$DOMAIN.php (if the URL is "htt...
$HOST will be "blog.example.com" and $DOMAIN will be "ex...
Debianパッケージは、/etc/wordpress/config-$HOST.phpまたは...
These files have the database password in them so some c...
taken with the permissions. The file only needs to be re...
www-data to work.
これらのファイルにはデータベースパスワードが含まれている...
ファイルが機能するためには、www-dataが読み取り可能なファ...
If none of those files exist, it will try /etc/wordpress...
Failing that, it will return an error 404.
これらのファイルが存在しない場合、/etc/wordpress/config-d...
それに失敗すると、エラー404が返されます。
This was initially developed to host multiple blogs on t...
but since then, WordPress has grown a "multisite" featur...
これは、最初は同じサーバーで複数のブログをホストするため...
If you want to learn more about those configuration file...
check /usr/share/wordpress/wp-config-sample.php and
http://codex.wordpress.org/Editing_wp-config.php
これらの構成ファイルについて詳しく知りたい場合は、/usr/sh...
*** #### Default themes and external servers [#r5888a8e]
The themes shipped with Debian packages called wordpress...
require to be able to download font and style sheets fro...
Content Delivery Networks (CDNs) such as googleapis. Thi...
not be a problem but it may leak information about peopl...
your website.
wordpress-theme-twenty *と呼ばれるDebianパッケージに同梱...
これは問題の場合もそうでない場合もありますが、あなたのウ...
For most people, this is fine. However if it is a proble...
choose a theme that doesn't use external resources or tr...
plugin such as disable-google-fonts.
ほとんどの人にとって、これは問題ありません。ただし、問題...
*** #### Managing plugins, themes and uploaded files [#a1...
To respect the FHS and to let you add supplementary plug...
the default configuration sets WP_CONTENT_DIR to
/var/lib/wordpress/wp-content. This implies that your Ap...
should override the default wp-content directory (within...
with this directory. You can do this with an alias direc...
Alias /wp-content /var/lib/wordpress/wp-content
The subdirectories "uploads" and "blogs.dir" should be o...
by default. This ensures that you can upload media files...
WordPress.
The subdirectories "themes" and "plugins" are where you ...
non-packaged themes and plugins.
Note that if you want WordPress to be able to edit theme...
plugins, you have to ensure that all the themes and plug...
by the webserver user (www-data). This is easy to do for...
and plugins that you have installed in /var/lib/wordpres...
$ sudo chown -R www-data /var/lib/wordpress/wp-content
But the default themes and plugins (installed in
/usr/share/wordpress/wp-content/) are owned by the root ...
those to be editable, you should remove the correspondin...
/var/lib/wordpress/wp-content/ and put there a full copy...
themes and plugins. Then you should re-run the previous ...
If despite all this, you can't get the plugin upgrade fe...
can try to add the following parameter to your configura...
define( 'FS_METHOD', 'direct' );
*** #### Hosting multiple blogs [#l7360600]
*** ## With WordPress multisite [#q7ceb9f0]
With WordPress multisite, you have a single instance of ...
(one database, one configuration file) that is able to m...
blogs.
It is thus recommended to put your WordPress configurati...
/etc/wordpress/config-default.php. Then you should enabl...
"Multisite" feature in the web interface directly through
Administration > Tools > Network Setup.
More information:
http://codex.wordpress.org/Create_A_Network
Note that the default configuration of the Debian packag...
WP_ALLOW_MULTISITE set to true.
*** ## With separate configurations [#w50e769c]
If you don't want to use the multisite feature, you can ...
multiple configuration files corresponding to your vario...
Each configuration file can point to a dedicated MySQL d...
they can share the same database but then they must use ...
$table_prefix to ensure that they use different tables w...
the same database).
*** #### Upgrading to a new Wordpress version [#hc3ff836]
The package upgrade doesn't automatically update the Wor...
you have to login to the administration page of your Wor...
to complete this part of the upgrade.
パッケージのアップグレードでは、Wordpressデータベースは自...
Until you do this, your website might be broken and inac...
only required when you switched to a new major release (...
not when you installed a new minor version (like 3.5.1 →...
これを行うまで、あなたのウェブサイトは壊れていてアクセス...
これは、新しいマイナーバージョン(3.5.1→3.5.2など)をイン...
** setup-mysql の実行 [#q344d577]
$ cd /usr/share/doc/wordpress/examples
$ sudo gunzip setup-mysql.gz
$ sudo chmod a+x setup-mysql
$ sudo ./setup-mysql -n wordpress www.example.com
** 日本語化 [#cff8163e]
/etc/wordpress/config-default.php を修正する
define('WPLANG', 'ja');
define('FS_METHOD', 'direct');
** 結局... [#wc1f37a4]
テーマにLightningを導入したが、推奨プラグインが4系ではサ...
~
#htmlinsert(amazon_menu2.html);
終了行:
&color(red){''書きかけ''};
WordPressを冗談半分で入れてみたいので作業中のメモ~
Dibianはまだ4系だが、Dibian流のインストールに挑戦。
参考:[[WordPress - Debian Wiki:https://wiki.debian.org/W...
** LAMPのインストール [#h4983de3]
※まっさらな環境なら
$ sudo apt install tasksel
$ sudo tasksel
** WordPress のインストール [#bc4c22f6]
$ sudo apt-get install wordpress wordpress-l10n
** WordPress の設定 [#dcbb6af8]
/usr/share/doc/wordpress/README.Debian.gz を参考に設定す...
$ zcat /usr/share/doc/wordpress/README.Debian.gz
*** #### Quick setup [#fd5f0520]
Setup apache to point to /usr/share/wordpress. See the e...
/usr/share/wordpressを指すようにApacheをセットアップしま...
Database and filesystem setup can be done with the help ...
examples/setup-mysql.
examples/setup-mysqlのスクリプトを使用して、データベース...
*** #### WordPress configuration file [#m005302f]
The Debian package installs a wp-config.php script that ...
try to load the real configuration from /etc/wordpress/c...
or /etc/wordpress/config-$DOMAIN.php (if the URL is "htt...
$HOST will be "blog.example.com" and $DOMAIN will be "ex...
Debianパッケージは、/etc/wordpress/config-$HOST.phpまたは...
These files have the database password in them so some c...
taken with the permissions. The file only needs to be re...
www-data to work.
これらのファイルにはデータベースパスワードが含まれている...
ファイルが機能するためには、www-dataが読み取り可能なファ...
If none of those files exist, it will try /etc/wordpress...
Failing that, it will return an error 404.
これらのファイルが存在しない場合、/etc/wordpress/config-d...
それに失敗すると、エラー404が返されます。
This was initially developed to host multiple blogs on t...
but since then, WordPress has grown a "multisite" featur...
これは、最初は同じサーバーで複数のブログをホストするため...
If you want to learn more about those configuration file...
check /usr/share/wordpress/wp-config-sample.php and
http://codex.wordpress.org/Editing_wp-config.php
これらの構成ファイルについて詳しく知りたい場合は、/usr/sh...
*** #### Default themes and external servers [#r5888a8e]
The themes shipped with Debian packages called wordpress...
require to be able to download font and style sheets fro...
Content Delivery Networks (CDNs) such as googleapis. Thi...
not be a problem but it may leak information about peopl...
your website.
wordpress-theme-twenty *と呼ばれるDebianパッケージに同梱...
これは問題の場合もそうでない場合もありますが、あなたのウ...
For most people, this is fine. However if it is a proble...
choose a theme that doesn't use external resources or tr...
plugin such as disable-google-fonts.
ほとんどの人にとって、これは問題ありません。ただし、問題...
*** #### Managing plugins, themes and uploaded files [#a1...
To respect the FHS and to let you add supplementary plug...
the default configuration sets WP_CONTENT_DIR to
/var/lib/wordpress/wp-content. This implies that your Ap...
should override the default wp-content directory (within...
with this directory. You can do this with an alias direc...
Alias /wp-content /var/lib/wordpress/wp-content
The subdirectories "uploads" and "blogs.dir" should be o...
by default. This ensures that you can upload media files...
WordPress.
The subdirectories "themes" and "plugins" are where you ...
non-packaged themes and plugins.
Note that if you want WordPress to be able to edit theme...
plugins, you have to ensure that all the themes and plug...
by the webserver user (www-data). This is easy to do for...
and plugins that you have installed in /var/lib/wordpres...
$ sudo chown -R www-data /var/lib/wordpress/wp-content
But the default themes and plugins (installed in
/usr/share/wordpress/wp-content/) are owned by the root ...
those to be editable, you should remove the correspondin...
/var/lib/wordpress/wp-content/ and put there a full copy...
themes and plugins. Then you should re-run the previous ...
If despite all this, you can't get the plugin upgrade fe...
can try to add the following parameter to your configura...
define( 'FS_METHOD', 'direct' );
*** #### Hosting multiple blogs [#l7360600]
*** ## With WordPress multisite [#q7ceb9f0]
With WordPress multisite, you have a single instance of ...
(one database, one configuration file) that is able to m...
blogs.
It is thus recommended to put your WordPress configurati...
/etc/wordpress/config-default.php. Then you should enabl...
"Multisite" feature in the web interface directly through
Administration > Tools > Network Setup.
More information:
http://codex.wordpress.org/Create_A_Network
Note that the default configuration of the Debian packag...
WP_ALLOW_MULTISITE set to true.
*** ## With separate configurations [#w50e769c]
If you don't want to use the multisite feature, you can ...
multiple configuration files corresponding to your vario...
Each configuration file can point to a dedicated MySQL d...
they can share the same database but then they must use ...
$table_prefix to ensure that they use different tables w...
the same database).
*** #### Upgrading to a new Wordpress version [#hc3ff836]
The package upgrade doesn't automatically update the Wor...
you have to login to the administration page of your Wor...
to complete this part of the upgrade.
パッケージのアップグレードでは、Wordpressデータベースは自...
Until you do this, your website might be broken and inac...
only required when you switched to a new major release (...
not when you installed a new minor version (like 3.5.1 →...
これを行うまで、あなたのウェブサイトは壊れていてアクセス...
これは、新しいマイナーバージョン(3.5.1→3.5.2など)をイン...
** setup-mysql の実行 [#q344d577]
$ cd /usr/share/doc/wordpress/examples
$ sudo gunzip setup-mysql.gz
$ sudo chmod a+x setup-mysql
$ sudo ./setup-mysql -n wordpress www.example.com
** 日本語化 [#cff8163e]
/etc/wordpress/config-default.php を修正する
define('WPLANG', 'ja');
define('FS_METHOD', 'direct');
** 結局... [#wc1f37a4]
テーマにLightningを導入したが、推奨プラグインが4系ではサ...
~
#htmlinsert(amazon_menu2.html);
ページ名: