phpPgAdmin インストール
- MacBook% ssh -i .ssh/ssh.key elmarverde@サーバ
- elmarverde% cd /var/www/html/
- elmarverde% sudo wget http://jaist.dl.sourceforge.net/project/phppgadmin/phpPgAdmin%20%5Bstable%5D/phpPgAdmin-4.2.3/phpPgAdmin-4.2.3.tar.gz
- elmarverde% sudo tar xzf phpPgAdmin-4.2.3.tar.gz
- elmarverde% sudo mv phpPgAdmin-4.2.3 phppgadmin/
- elmarverde% cd /var/www/html/phppgadmin/conf/
- elmarverde% sudo cp config.inc.php-dist config.inc.php
- elmarverde% sudo vi config.inc.php
$conf['servers'][0]['host'] = 'localhost';
$conf['extra_login_security'] = false;
$conf['owned_only'] = true;
- elmarverde% cd /etc/httpd/conf.d/
- elmarverde% sudo vi pgadmin.conf
Alias /phpPgAdmin /var/www/html/pgadmin
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
# Allow from .example.com
- elmarverde% sudo /etc/rc.d/init.d/httpd restart
- elmarverde% http://サーバ/phppgadmin/