TO make a database backup in postgreslq server you use pg_dump and psql commands.
First, locate the database:
# psql -l --username postgres --password
Then:
# pg_dump --username postgres name_db --file /dir/dir/backup.sql
To restore the database:
First create database with its respective name and roles:
# psql postgres
# postgres=# CREATE DATABASE name_db ENCODING 'UTF-8';
# postgres=# CREATE ROLE root LOGIN;
Restoring:
# psql name_db < /dir/dir/backup.sql
That’s all.
.htaccess
AuthUserFile /home/user/domain/secretfolder/.htpasswd
AuthType Basic
AuthName "Login Details"
Require valid-user
Encryption Tool
.htpasswd
abc:9476nIHW7Esgw
First Make sure you have AllowOverride All option enabled
on Red Hat’s based systems:
chkconfig --list app # shows runlevels for that app enabled/disabled
chkconfig --level 123456 app off # app will be disabled on 123456 runlevels
chkconfig --level 132456 app on # app will be enabled on 123456 runlevels
When you have a package in a .tar.gz format you have to extract it.
Then you type:
# tar zxfv file.tar.gz
If you just install Asterisk gui 2.o from:
svn checkout http://svn.digium.com/svn/asterisk-gui/branches/2.0
And got a 404 URL not found <asterisk server> typing http://ip_machine:8088/asterisk/static/config/index.html or http://ip_machine:8088/static/config/index.html (without prefix)
and already did the “make checkconfig” cmd getting an “everything seems good” output.
and already Checked in Asterisk CLI:
system*CLI> http show status
HTTP Server Status:
Prefix: /asterisk
Server Enabled and Bound to 0.0.0.0:8088
Enabled URI's:
/asterisk/httpstatus => Asterisk HTTP General Status
/asterisk/manager => HTML Manager Event Interface
/asterisk/rawman => Raw HTTP Manager Event Interface
/asterisk/static/... => Asterisk HTTP Static Delivery
/asterisk/mxml => XML Manager Event Interface
Everything still seems ok….
Then:
# cp -Rfv /var/lib/asterisk/* /usr/share/asterisk/
# mv /var/lib/asterisk /var/lib/asterisk_original
# ln -s /usr/share/asterisk /var/lib/asterisk
Let’s check it out now!
make sure you have installed:
gnome-vfs-obexftp-0.4-4mdv2009.0
libobexftp0-0.22-1mdv2009.0
libopenobex1-devel-1.3-7mdv2009.0
openobex-apps-1.3-7mdv2009.0
libopenobex1-1.3-7mdv2009.0
libobexftp-devel-0.22-1mdv2009.0
obex-data-server-0.3.2-1mdv2009.0
obexftp-0.22-1mdv2009.0
obexfs-0.11-1mdv2009.0
gnome-bluetooth