レンタルサーバー、サーバー構築の情報サイト|08-08.SSHサーバー構築(OpenSSH)

サーバーを運用する際に自前にした場合、業者委託、レンタルした場合の必要な知識、実務に関しての情報を掲載しております
トップに戻ります

00-本サイトについて
 00-01.サイト運用者

 00-02.当サイトの運用環境



●08-08.SSHサーバー構築(OpenSSH)
SSHサーバーはリモートでログインするためのサーバーです。

レンタルサーバーでSSHを許可している場合は既に設定済みです。
この機能を提供していない場合もありますので確認が必要です。

・設定

[root@fedora ~]# vi /etc/ssh/sshd_config
SSHサーバー設定ファイル編集

#Protocol 2,1

Protocol 2 SSH2のみで接続を許可

#PermitRootLogin yes

PermitRootLogin no rootでのログインを禁止

#PasswordAuthentication yes

PasswordAuthentication no パスワードでのログインを禁止(鍵方式によるログインのみ許可)

#PermitEmptyPasswords no

PermitEmptyPasswords no パスワードなしでのログインを禁止

・再起動

[root@fedora ~]# /etc/rc.d/init.d/sshd restart
SSHサーバー再起動

sshdを停止中: [ OK ]
sshdを起動中:


●08-09.Webサーバー構築(Apache)

レンタルサーバーではインストールする必要はほとんどないでしょう。
サーバー周りの機能は確認が必要です。

・インストール

[root@fedora ~]# yum -y install httpd Apacheインストール

[root@fedora ~]# yum -y install php php-mbstring php、php-mbstringインストール

・設定

[root@fedora ~]# vi /etc/httpd/conf/httpd.conf Apache設定ファイル編集

ServerAdmin root@localhost

ServerAdmin webmaster@fedorasrv.com エラーページ等に表示される管理者メールアドレスを指定

#ServerName www.example.com:80

ServerName fedorasrv.com:80 サーバー名を指定

<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
  ↓
Options Includes ExecCGI FollowSymLinks CGI,SSI許可、ファイル一覧表示禁止

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
  ↓
AllowOverride All htaccessの許可

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%!414r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 ← 長すぎるURI(414エラー)はログに記録しない

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#

AddDefaultCharset UTF-8

#AddDefaultCharset UTF-8 コメントアウト

#AddHandler cgi-script .cgi

AddHandler cgi-script .cgi .pl CGIスクリプトに.plを追加

・起動

[root@fedora ~]# /etc/rc.d/init.d/httpd start Apache起動
httpd を起動中: [ OK ]

[root@fedora ~]# chkconfig httpd on Apache自動起動設定

戻る

−− 弊社メインサイト −−
ホームページ製作、システム開発はMSweb - 大阪
ホームページ製作・作成、システム開発、サーバー構築・保守にはMSwebをご利用下さい

携帯サイト


−− 弊社姉妹サイト −−
ホームページ製作 発注企業に理解して欲しい内容
ホームページ発注企業、製作会社向けの内容です。

−− 弊社姉妹サイト −−
WEBシステム開発|PHPとPostgreSQLの開発例
入門者用のPHPとPostgreSQLを使ったWEBシステムの開発演習です。

−− 弊社姉妹サイト −−
ホームページ製作 大阪 | 製作手順の紹介−MSweb
ホームページ製作の手順をご紹介しています、デザイン、HTML、スタイルシートなどについて記載しています。

オープンソース・サンプル
MSweb OpenPNE 大阪
オープンソースのSNSです。ご興味があり使用されたい方は、 ID「msweb@msweb.biz」、パスワード「gua8hkj3」で管理ページにログインできます。
管理ページ

オープンソース・サンプル
MSweb ブログ
オープンソースのブログです。ご興味があり使用されたい方は、 ID「admin」、パスワード「bd0e86」で管理ページにログインできます。
管理ページ

オープンソース・サンプル
XOOPS
代表的なCMSのXOOPSです。ご興味があり使用されたい方は、 ユーザ名「msweb」、パスワード「as4g3mz」で管理者でログインできます。

オープンソース・サンプル
EC|CUBE(メイン・ページ)
EC|CUBE(管理ページ)
オープンソースの通販システムです。ご興味があり使用されたい方は、 ID「msweb」、パスワード「fd4upd2」で管理ページにログインできます。

オープンソース・サンプル
Joomla(メイン・ページ)
Joomla(管理ページ)
オープンソースのCMSです。ご興味があり使用されたい方は、 ID「admin」、パスワード「A2gT6B7F」で管理ページにログインできます。

オープンソース・サンプル
SquirrelMail
オープンソースのWEBメールのシステムです、OP25Bの影響を受けません。

オープンソース・サンプル
Mailman
Mailman(管理ページ)
オープンソースの電子メールでの討論やメルマガの配送リストを管理するためのシステムです。 サンプルのため投稿はできません。

Copyright (c) 2007 MSweb All Rights Reserved 腕時計 販売サイト my-watch.biz