2014年11月19日水曜日

Webサーバ構築

Apache+PHPをインストールする

#yum install httpd php

Webコンテンツを修正できるグループを作成してメンバを登録する

# groupadd www
# usermod -G www user
# chown -R root:www /var/www
# chmod -R g+w /var/www

公開鍵認証

http://www.websec-room.com/2014/01/18/1647
chmod 700 ~/.sshを忘れないこと!
/etc/ssh/sshd_confでPubkeyAuthentication yesのコメントを外すことを忘れないこと

WinSCPのためのPuTTY用の秘密鍵の作成

http://www.websec-room.com/2014/01/18/1647
WinSCPを使って、imagesフォルダとstyle.cssをアップロード

0 件のコメント:

コメントを投稿