[[Top]]
* 参考 [#g88d02fd]
- [[Ubuntu 10.04 サーバの追加]]
- [[Ubuntu 8.10 サーバの追加]]
* アプリケーション [#tbaa65cd]
** NFS [#p35e8209]
$ sudo apt-get install nfs-kernel-server
NFS での export には firewall の設定が別途必要。
** Apache [#g288631c]
$ sudo apt-get install apache2
$ sudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysql php5-pgsql
userdirモジュールを有効にします。
$ sudo a2enmod userdir
#pre{{
diff --git a/apache2/mods-available/php5.conf b/apache2/mods-available/php5.conf
index 2e9772f..6eced76 100644
--- a/apache2/mods-available/php5.conf
+++ b/apache2/mods-available/php5.conf
@@ -20,8 +20,8 @@
# To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
-<IfModule mod_userdir.c>
- <Directory /home/*/public_html>
- php_admin_flag engine Off
- </Directory>
-</IfModule>
+#<IfModule mod_userdir.c>
+# <Directory /home/*/public_html>
+# php_admin_flag engine Off
+# </Directory>
+#</IfModule>
}}
$ sudo service apache2 restart
** PostgreSQL [#y5feb24d]
$ sudo apt-get install postgresql-9.3
$ sudo vi /etc/postgresql/9.3/main/pg_hba.conf
#pre{{
diff --git a/postgresql/9.3/main/pg_hba.conf b/postgresql/9.3/main/pg_hba.conf
index 743fa9c..1729be7 100644
--- a/postgresql/9.3/main/pg_hba.conf
+++ b/postgresql/9.3/main/pg_hba.conf
@@ -89,7 +89,7 @@ local all postgres
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
-host all all 127.0.0.1/32 md5
+host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
}}