0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LAMP環境に入れたWordPressを全ディレクトリから探す

Last updated at Posted at 2022-09-25

はじめに

LAMP環境でwordpressを入れたものの、wordpressの場所がわからなくなった人に向けて書いています。

環境

OS::CentOS stream 8

全ディレクトリの検索

findコマンドを使います
今回はwordpressディレクトリがどこにあるか検討もつかないので
sudo find / -name wordpress
参考::find 全ディレクトリを検索対象する方法

結果

sudo find / -name wordpress
/var/lib/mysql/wordpress
/var/www/wordpress
/var/www/wordpress/wp-includes/js/tinymce/plugins/wordpress
/var/www/html/wp-includes/js/tinymce/plugins/wordpress
/var/www/html/wp-includes/js/tinymce/skins/wordpress

var/ディレクトリ以下にあることがわかったかがvarてなんだっけ?てなったので深堀り
/var/
動的なデータ(キャッシュやログなど)を扱う。メールやウェブサービスに必須
/var/www/
Apacheのデフォルトデータが管理されているディレクトリ
参考::Linuxの基本の基本。Linuxの基本的なディレクトリ構成

最後に

今回WordPressの場所を調べたいと思ったきっかけは、WordPressをカスタマイズしたいと思ったからです。バックアップ取らないと間違ってデータ消したとき大変です。次回はHTMLとかCSSの記事を書くかもです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?