美文网首页
Install wordPress blog manually

Install wordPress blog manually

作者: bfx1000 | 来源:发表于2019-05-31 10:05 被阅读0次

1.Use ssh-key instead of password

  • Add a new user on server. (e.g. bird)
adduser bird
passwd bird
usermod -aG wheel bird  #add user to sudo group
  • Generate ssh-key at local computer
ssh-keygen
  • Copy your local public key to server
ssh-copy-id $user@Your_server_ip -p[port]
  • Change authority of file or dirctory
chmod 600 /home/bird  # Some OS do not need this step ?
chmod 700 /home/bird/.ssh
chmod 600 /home/bird/.ssh/authorized_keys
  • At server terminal type:
vi /etc/ssh/sshd_config
  • So change sshd_config file as follow:
RSAAuthentication yes
PubkeyAuthentication yes
# set your ssh key position
AuthorizedKeysFile  /home/bird/.ssh/authorized_keys 
PasswordAuthentication no
ChallengeResponseAuthentication no
PermitRootLogin without-password
  • Then reload sshd
systemctl restart sshd
systemctl reload sshd
  • Now test your ssh key pair. It is success if login without password prompt.
ssh bird@123.123.123.123 -p [port]

If something wrong happened, use "ssh -v bird@your_server_ip" to debug.

2. Apache installation

3. Mysql installation

4. Php and phpmyadmin

相关文章

网友评论

      本文标题:Install wordPress blog manually

      本文链接:https://www.haomeiwen.com/subject/iuoitctx.html