Depends: libc6 (>= 2.4), libpq5 (>= 8.4~), phpapi-20090626+lfs, php5-common (= 5.3.10-1ubuntu3.13)
Conffiles:
/etc/php5/conf.d/pgsql.ini 7e22591414efe6e8ee5f1ed280b6f673
/etc/php5/conf.d/pdo_pgsql.ini 5c01f54fca3c1bd069dcfc8182cee069
Description: PostgreSQL module for php5
This package provides a module for PostgreSQL database connections
directly from PHP scripts. It also includes the pdo_pgsql module for
use with the PHP Data Object extension.
.
PHP5 is a widely-used general-purpose scripting language that is
especially suited for Web development and can be embedded into HTML.
The goal of the language is to allow web developers to write
dynamically generated pages quickly.
Homepage: http://www.php.net/
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php5-pgsql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-pgsql is already the newest version.
php5-pgsql set to manually installed.
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@agung-Vostro-3350:/opt/lampp/etc# service posgresql restart
posgresql: unrecognized service
root@agung-Vostro-3350:/opt/lampp/etc# service postgresql restart
* Restarting PostgreSQL 9.1 database server
[ OK ]
root@agung-Vostro-3350:/opt/lampp/etc# lipapache2-mod-php
lipapache2-mod-php: command not found
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php php4-pgsql
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php php5-pgsql
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
autoconf automake autotools-dev libltdl-dev libtool m4 php5-dev shtool
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool-doc
automaken gfortran fortran95-compiler gcj
The following NEW packages will be installed:
autoconf automake autotools-dev libltdl-dev libtool m4 php-pear php5-dev
shtool
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,817 kB of archives.
After this operation, 11.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ precise/main m4 i386 1.4.16-2ubuntu1 [195 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
comerr-dev krb5-multidev libgcrypt11-dev libgnutls-dev libgnutls-openssl27
libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev libkadm5clnt-mit8
libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev libp11-kit-dev
librtmp-dev libtasn1-3-dev
Suggested packages:
krb5-doc libcurl3-dbg libgcrypt11-doc gnutls-doc gnutls-bin krb5-user
The following NEW packages will be installed:
comerr-dev krb5-multidev libcurl4-openssl-dev libgcrypt11-dev libgnutls-dev
libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev
libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev
libp11-kit-dev librtmp-dev libtasn1-3-dev
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,985 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgssrpc4 i386 1.10+dfsg~beta1-2ubuntu0.3 [57.7 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5clnt-mit8 i386 1.10+dfsg~beta1-2ubuntu0.3 [38.4
kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkdb5-6 i386 1.10+dfsg~beta1-2ubuntu0.3 [37.7 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5srv-mit8 i386 1.10+dfsg~beta1-2ubuntu0.3 [54.5
kB]
Get:5 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-openssl27 i386 2.12.14-5ubuntu3.8 [21.6 kB]
Get:6 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutlsxx27 i386 2.12.14-5ubuntu3.8 [23.4 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu/ precise/main comerr-dev i386 2.1-1.42-1ubuntu2 [42.4 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main krb5-multidev i386 1.10+dfsg~beta1-2ubuntu0.3 [125 kB]
Get:9 http://id.archive.ubuntu.com/ubuntu/ precise/main libidn11-dev i386 1.23-2 [635 kB]
Get:10 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-dev i386 1.10+dfsg~beta1-2ubuntu0.3 [11.0 kB]
Get:11 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libldap2-dev i386 2.4.28-1.1ubuntu4.4 [503 kB]
Get:12 http://id.archive.ubuntu.com/ubuntu/ precise/main libgpg-error-dev i386 1.10-2ubuntu1 [23.1 kB]
Get:13 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11-dev i386 1.5.0-3ubuntu0.2 [361 kB]
Get:14 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3-dev i386 2.10-1ubuntu1.1 [355 kB]
Get:15 http://id.archive.ubuntu.com/ubuntu/ precise/main libp11-kit-dev i386 0.12-2ubuntu1 [45.6 kB]
Get:16 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-dev i386 2.12.14-5ubuntu3.8 [530 kB]
Get:17 http://id.archive.ubuntu.com/ubuntu/ precise/main librtmp-dev i386 2.4~20110711.gitc28f1bab-1 [67.1 kB]
Get:18 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl4-openssl-dev i386 7.22.0-3ubuntu4.8 [1,054 kB]
Fetched 3,985 kB in 1min 1s (65.2 kB/s)
Selecting previously unselected package libgssrpc4.
(Reading database ... 675227 files and directories currently installed.)
Unpacking libgssrpc4 (from .../libgssrpc4_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5clnt-mit8.
Unpacking libkadm5clnt-mit8 (from .../libkadm5clnt-mit8_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkdb5-6.
Unpacking libkdb5-6 (from .../libkdb5-6_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5srv-mit8.
Unpacking libkadm5srv-mit8 (from .../libkadm5srv-mit8_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libgnutls-openssl27.
Unpacking libgnutls-openssl27 (from .../libgnutls-openssl27_2.12.14-5ubuntu3.8_i386.deb) ...
Selecting previously unselected package libgnutlsxx27.
Unpacking libgnutlsxx27 (from .../libgnutlsxx27_2.12.14-5ubuntu3.8_i386.deb) ...
Selecting previously unselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.42-1ubuntu2_i386.deb) ...
Selecting previously unselected package krb5-multidev.
Unpacking krb5-multidev (from .../krb5-multidev_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libidn11-dev.
Unpacking libidn11-dev (from .../libidn11-dev_1.23-2_i386.deb) ...
Selecting previously unselected package libkrb5-dev.
httpd.conf
my.cnf
php.ini~
webalizer.conf
httpd.conf.bak openldap php.ini-pre1.7.2 webalizer.conf.sample
lampp
openssl.cnf pool.conf
locales.conf original proftpd.conf
root@agung-Vostro-3350:/opt/lampp/etc# gedit php.ini
root@agung-Vostro-3350:/opt/lampp/etc# /opt/lampp/lampp restart
Stopping XAMPP for Linux 1.8.1...
XAMPP: Stopping Apache with SSL...
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
root@agung-Vostro-3350:/opt/lampp/etc# sudo postgres
sudo: postgres: command not found
root@agung-Vostro-3350:/opt/lampp/etc# service postgresql start
* Starting PostgreSQL 9.1 database server
[ OK ]
root@agung-Vostro-3350:/opt/lampp/etc# exit
agung@agung-Vostro-3350:~$ sudo su postgres
[sudo] password for agung:
Sorry, try again.
[sudo] password for agung:
Sorry, try again.
[sudo] password for agung:
postgres@agung-Vostro-3350:/home/agung$ createdb -U openerp moodle1
createdb: could not connect to database postgres: FATAL: Peer authentication failed for user "openerp"
postgres@agung-Vostro-3350:/home/agung$ createdb moodle -U postgres
postgres@agung-Vostro-3350:/home/agung$ exit
exit
agung@agung-Vostro-3350:~$ ssh @128.199.139.250
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
agung@agung-Vostro-3350:~$ ssh root@128.199.139.250
root@128.199.139.250's password:
Permission denied, please try again.
root@128.199.139.250's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Thu Jul 17 21:33:52 EDT 2014
System load: 0.0
Processes:
70
Usage of /: 4.3% of 29.40GB Users logged in: 1
Memory usage: 5%
IP address for eth0: 128.199.139.250
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
grub.d
passwd
vim
gshadow
perl
vtrgb
gshadowpm
w3m
gtk-3.0
polkit-1
wgetrc
hdparm.conf
popularity-contest.conf wireshark
host.conf
ppp
wpa_supplicant
hostname
profile
X11
hosts
profile.d
xdg
hosts.allow
protocols
xml
hosts.deny
python
zsh_command_not_found
ifplugd
python2.7
init
python3
root@belajar-erp:/etc# gedit resolv.conf
The program 'gedit' is currently not installed. You can install it by typing:
apt-get install gedit
root@belajar-erp:/etc# nano resolv.conf
root@belajar-erp:/etc# ls
acpi
init.d
python3.4
adduser.conf
initramfs-tools
rc0.d
alternatives
inputrc
rc1.d
apm
insserv
rc2.d
apparmor
insserv.conf
rc3.d
apparmor.d
insserv.conf.d
rc4.d
apport
iproute2
rc5.d
apt
iscsi
rc6.d
at.deny
issue
rc.digitalocean
at-spi2
issue.net
rc.local
bash.bashrc
kbd
rcS.d
bash_completion
kernel
resolvconf
bash_completion.d
kernel-img.conf
resolv.conf
bindresvport.blacklist landscape
rmt
blkid.conf
ldap
rpc
blkid.tab
ld.so.cache
rsyslog.conf
byobu
ld.so.conf
rsyslog.d
ca-certificates
ld.so.conf.d
sane.d
ca-certificates.conf legal
screenrc
calendar
libaudit.conf
securetty
chatscripts
libnl-3
security
colord.conf
locale.alias
selinux
console-setup
localtime
services
cron.d
logcheck
sgml
cron.daily
login.defs
shadow
cron.hourly
logrotate.conf
shadowcron.monthly
logrotate.d
shells
crontab
lsb-release
skel
cron.weekly
ltrace.conf
smi.conf
dbus-1
magic
ssh
debconf.conf
magic.mime
ssl
debian_version
mailcap
subgid
default
mailcap.order
subuid
deluser.conf
manpath.config
sudoers
depmod.d
mime.types
sudoers.d
dhcp
mke2fs.conf
sysctl.conf
digitalocean
modprobe.d
sysctl.d
dpkg
modules
systemd
drirc
mtab
terminfo
environment
nanorc
timezone
fonts
network
ucf.conf
fstab
networks
udev
fstab.d
newt
ufw
fuse.conf
nsswitch.conf
updatedb.conf
gai.conf
opt
update-manager
groff
os-release
update-motd.d
group
pam.conf
update-notifier
grouppam.d
upstart-xsessions
grub.d
passwd
vim
gshadow
perl
vtrgb
gshadowpm
w3m
gtk-3.0
polkit-1
wgetrc
hdparm.conf
popularity-contest.conf wireshark
host.conf
ppp
wpa_supplicant
hostname
profile
X11
hosts
profile.d
xdg
hosts.allow
protocols
xml
hosts.deny
python
zsh_command_not_found
ifplugd
python2.7
init
python3
root@belajar-erp:/etc# nano resolv.conf
root@belajar-erp:/etc# nano host.conf
root@belajar-erp:/etc# apt-get install bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bind9utils
Suggested packages:
bind9-doc
The following NEW packages will be installed:
bind9 bind9utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 432 kB of archives.
After this operation, 1,632 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.digitalocean.com/ubuntu/ trusty/main bind9utils amd64 1:9.9.5.dfsg-3 [145 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty/main bind9 amd64 1:9.9.5.dfsg-3 [287 kB]
Fetched 432 kB in 0s (757 kB/s)
Preconfiguring packages ...
Selecting previously unselected package bind9utils.
(Reading database ... 59014 files and directories currently installed.)
Preparing to unpack .../bind9utils_1%3a9.9.5.dfsg-3_amd64.deb ...
Unpacking bind9utils (1:9.9.5.dfsg-3) ...
Selecting previously unselected package bind9.
Preparing to unpack .../bind9_1%3a9.9.5.dfsg-3_amd64.deb ...
Unpacking bind9 (1:9.9.5.dfsg-3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up bind9utils (1:9.9.5.dfsg-3) ...
Setting up bind9 (1:9.9.5.dfsg-3) ...
Adding group `bind' (GID 114) ...
Done.
Adding system user `bind' (UID 106) ...
Adding new user `bind' (UID 106) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
* Starting domain name service... bind9
[ OK ]
[ OK ]
--- 128.199.139.250 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.068/0.081/0.101/0.014 ms
root@belajar-erp:/etc/bind# ping belajar-erp.com
PING belajar-erp.com (127.0.1.1) 56(84) bytes of data.
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=2 ttl=64 time=0.043 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=3 ttl=64 time=0.044 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=4 ttl=64 time=0.045 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=5 ttl=64 time=0.043 ms
^C
--- belajar-erp.com ping statistics --5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.029/0.040/0.045/0.010 ms
root@belajar-erp:/etc/bind# nano db.1
root@belajar-erp:/etc/bind# ls
bind.keys db.2
db.root
named.conf.local
db.0
db.255 named.conf
named.conf.options
db.1
db.empty named.conf.default-zones
rndc.key
db.127 db.local named.conf.default-zones.old zones.rfc1918
root@belajar-erp:/etc/bind# nano named.conf.default-zones
root@belajar-erp:/etc/bind#