概要
ブログサーバをいくつか変更したので備忘録として書いておく。
zsh
シェルをWSL2で使っているのと同じzsh + oh-my-zshに変更
sudo yum install zsh
chsh -s $(which zsh)
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
vi .zshrc
ZSH_THEME="agnoster"
screen
今更ながら作業中にセッション切れても良いようにscreenを導入
sudo yum install screen
curl -L -o ~/.screenrc https://gist.githubusercontent.com/hrkt/defa67eef890a5469db3297d510e7a8d/raw
WordPress周り
WordPressのダッシュボードででimagickやzipがないって怒られてたから整備
PHPのライブラリはpeclで入れることができるが、下記の記事で行ったPHP7対応の方法ではyumで管理することができる。
WordPressサーバをPHP7にバージョンアップ
remi-php74リポジトリを有効にしている状態で必要なライブラリをインストール
sudo yum install --enablerepo=remi-php74 php-pear php-pecl-zip php-pecl-imagick
sudo systemctl restart httpd
コメント