Showing posts with label Web Server. Show all posts
Showing posts with label Web Server. Show all posts

Friday, February 12, 2016

Redirect Dynamic IP ke Lokal Server

Bismillahirrohmanirrohim ......

Keberadaan hosting lokal dimaksudkan untuk memudahkan perawatan  dan  pengelolaan terhadap halaman informasi yang akan diakses untuk konsumsi perusahaan, instansi ataupun publik. Saat kita sedang menggunakan hosting local tersebut terkadang kita terkendala dengan IP Public dari provider kita yang selalu berubah, hal ini menjadi permasalahan tersendiri pada saat kita akan menjadikan server local sebagai hosting untuk keperluan, apalagi untuk pelayanan dan keperluan penggunaan yang lainnya. 

Wednesday, January 18, 2012

Catatan Install LPSE

Sekedar mencatat  dan share bagi agan dan sista yang kebetulan admin LPSE. atau sekedar untuk menambah wawasan. untuk installer pada debian Linux

login sebagai root

##konfigurasi network
vim /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 iniet dhcp / static
address 10.1.23.45 === 192.168.10.
netmask 255.255.240.0
gateway 10.1.31.1.

*)kasi pagar address netmask dan gateway jika set dhcp
simpan :wq atau :!q atau :x

###Konfigurasi DNS Resolvnya
vim /etc/resolv.conf
nameserver 8.8.8.8
domain pengadaannasional-bappenas.go.id
search pengadaannasional-bappenas.go.id
nameserver 116.66.200.20
nameserver 116.66.201.190
nameserver 202.46.64.34
simpan :wq

/etc/init.d/networking restart *)untuk merestart network

###Tambahkan resource repositoriesnya 
vim /etc/apt/resources.list

deb http://debian.csie.ntu.edu.tw/debian lenny main contrib non-free
deb http://etc.inittab.org/~agi/debian/libapache-mod-security2/old ./
:wq

apt-get update

###Install apache dan perlengkapannya
apt-get install apache2 apache2-thread-dev unzip postgresql build essential libapache2-mod-evasive libapache2-mod-security2
apt-get install ssh
 
jalankan ssh dg tujuan ip server 
file protocol = scp
masuk ke server /home
buat directory installer
masuk ke directory /home/installer

copy ke /home/installer
folder apahe-tomcat-latihan
folder debian base
folder jdk1.6.0
folder sql_master_230
zipfile epns-web-2.3.0r-23...
zipfile tomcat-connectors-1.2....
silahkan tutup ssh client

#
cd /home/installer/
mkdir -p /home/appserv/epns-lat-230r1/latihan
mkdir -p /home/file_latihan
cp -r apahe-tomcat-latihan/ jdk1.6.0 /usr/local/src/
cp -r debian\ base/apache2/ /etc/
tar -xzf tomcat-connectors-1.2.25-src.tar.gz
cd tomcat-connectors-1.2.25-src
cd netive/
./configure --with-apxs=/usr/bin/apxs2 && make && make install
cd /home/appserv/epns-lat-230r1/latihan
unzip /home/installer/epns-web-2.3.0r1-2.3.0r1-nasional.zip

#
vim /home/appserv/epns-let-230r1/latihan/WEB-INF/classes/aplication.properties

secman.jdbc.url=jdbc:postgresql://localhost/secman_220
secman.jdbc.url=jdbc:postgresql://localhost/secman_latihan
username=secman
pasw=secman
begitu juga dengan epnsnya

#
vim /etc/postgresql/8.3/main/postgresql.conf
#connection settings
listen_address = '*'
:wq

#
vim /etc/postgresql/8.3/main/pg_hba.conf
tambahkan
host all all 10.1.20.107/32 md5 *)alamat sever
:wq

/etc/inid.d/postgresql-8.3 restart

vim /etc/apache2/sites-avaible/default
lat-230 ganti menjadi lat-230r1 
:wq

/etc/init.d/apache2 restart


cd /home/installer/sql-Master_230/lat/
chmod -R 777 /home/installer/sql_Master_230/

su postgres
psql

*)posisi di postgres=#

CREATE USER  epns;
CREATE USER secman;
ALTER USER epns password 'epns';
ALTER USER secman password 'secman';
\q

createdb -U poetgres - T template0 -O epns epns_latihan
createdb -U poetgres - T template0 -O secman secman_latihan

psql
*)posisi di postgres=#

\c epns_latihan

#epns_latihan=#
\i /home/installer/sql_Master_230/lat/1_epns_master_latihan_220.sql

\i 2_sql_upgrade.......
\i 3_sql_upgrade.......
\i 4_sql_upgrade....... s/d 6_patch

#
\c secman_latihan
\i secman/1_ .. 2_ .sql
\q
exit

chmod -R 777 /usr/local/src/*
vim /usr/local/src/apache-tomcat-latihan/conf/server.xml

###replace



##jalankan catalina
/usr/local/src/apache-tomcat-latihan/bin/catalina.sh run

jalankan secara otomatis
/usr/local/src/apache-tomcat-latihan/bin/starup.sh

vim /etc/rc.local

sebelum exit 0
/usr/local/src/apache-tomcat-latihan/bin/starup.sh
:wq

silahkan di reboot

Thursday, January 5, 2012

Install Webmin

Install Webmin

The standard installation of Webmin fails in Ubuntu 10.10 and 11.4. You have to install manually as described here.
Log in to your Ubuntu machine. Open a browser to the following Webmin download page. If you select the link on this page, it will open in a new window.
http://www.webmin.com/download.html.
Down the bottom of the download page you will see the following line and link. Place the mouse over the link, right click, and select Copy Link Location.
Debian package suitable for Debian, Ubuntu or other derived Linux
http://www.webmin.com/download/deb/webmin-current.deb
Select Applications then Accessories then Terminal. Terminal is a 1950s DOS/Unix/Linux command line box. Terminal should open in your home directory. You should be able to get to the downloads directory by typing cd Downloads then pressing enter. Make sure you use the capital D because Linux and Unix think D is different to d when used in a name.
Type wget and make sure there is a space after the wget. Go to the Terminal menu and select Edit then Paste. Press enter. A program named wget will download webmin-current.deb to your downloads directory.
Windows users will be used to Ctrl-v to paste text. Terminal lets you use Ctrl-Shift-v to paste text.
The following command is the finished command. You can copy the command from this page and paste into Terminal.
wget http://www.webmin.com/download/deb/webmin-current.deb
Now type sudo dpkg -i webmin-current.deb and press enter. You can copy the command from this page and paste into Terminal.
Terminal may ask for your password. Type your password and press enter.

Error messages

You may get messages about missing prerequisite software. i no longer get the error with Webmin on Ubuntu 11.4. Here are steps to fix up what Webmin mixed up.
Go to Applications and start Ubuntu Software Centre. Ubuntu Software Centre will complain about an error and suggest a repair. Repair.
Type sudo dpkg -i webmin-current.deb and press enter. Parts of Webmin are installed out of sequence and will be there the second time you run the installation command.

Log in

The installation messages end with a message about logging in. Log in. I get the following message on my example computer.
You can now login to https://example:10000/ as root with your root password, or as any user who can use sudo to run commands as root.
Copy the URL, similar to https://example:10000/, into the address box in your Web browser and press enter. Webmin will appear in your Web browser.

Password problem

This error may occur when you first login to Webmin in Ubuntu 11.4. The Webmin user is set to root with a mystery password. Your user id is not set up for login. you have to type the following command into the ancient Terminal. Replace example-password with the password you use to authenticate when you perform system administration work, which will be your password from when you installed Ubuntu.
sudo /usr/share/webmin/changepass.pl /etc/webmin root example-password
After the login, go to Webmin, Webmin Users, then Create a new Webmin user. Use your user name. Set the password to Unix authentication. Go to Permissions for all modules, select all, then save the change. Log out. Log in as yourself.

sumber : http://petermoulding.com/webmin_installation_on_ubuntu_-_install_webmin_in_ubuntu_10.10

Instalasi XAMPP

PROSES INSTALASI

Download
Silahkan download DISINI
Masuk ke root administrator linux sudo su
extract ke hasil sedotan ke /opt
tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
Jalankan Xampp
/opt/lampp/lampp start
sekarang webserver dan mysql sudah run silahkan coba
http://localhost
Here a list of missing security in XAMPP:

  1. The MySQL administrator (root) has no password.
  2. The MySQL daemon is accessible via network.
  3. ProFTPD uses the password "lampp" for user "nobody".
  4. PhpMyAdmin is accessible via network.
  5. Examples are accessible via network.
  6. MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
/opt/lampp/lampp security
It starts a small security check and makes your XAMPP installation quite secure. For example this protects the XAMPP demo pages by a username ('lampp') and password combination.

START AND STOP PARAMETERS
Parameter     Description
start     Starts XAMPP.
stop     Stops XAMPP.
restart     Stops and starts XAMPP.
startapache     Starts only the Apache.
startssl     Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
startmysql     Starts only the MySQL database.
startftp     Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
stopapache     Stops the Apache.
stopssl     Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
stopmysql     Stops the MySQL database.
stopftp     Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
security     Starts a small security check programm.
For example: To start Apache with SSL support simply type in the following command (as root):

/opt/lampp/lampp startssl

You can also access your Apache server via SSL under https://localhost.
* What is where?
What is where? A big question of our existens, here are some answers! ;)
IMPORTANT FILES AND DIRECTORIES
File/Directory     Purpose
/opt/lampp/bin/     The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
/opt/lampp/htdocs/     The Apache DocumentRoot directory.
/opt/lampp/etc/httpd.conf     The Apache configuration file.
/opt/lampp/etc/my.cnf     The MySQL configuration file.
/opt/lampp/etc/php.ini     The PHP configuration file.
/opt/lampp/etc/proftpd.conf     The ProFTPD configuration file. (since 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php     The phpMyAdmin configuration file.
* Stopping XAMPP
To stop XAMPP simply call this command:

/opt/lampp/lampp stop

You should now see:

Stopping LAMPP 1.7.7...
LAMPP: Stopping Apache...
LAMPP: Stopping MySQL...
LAMPP stopped.

And XAMPP for Linux is stopped.
* Uninstall
To uninstall XAMPP just type in this command:

rm -rf /opt/lampp
Auto Run lampp di ubuntu
# ln -s /opt/lampp/lampp /etc/init.d/lampp


Sumber : http://www.apachefriends.org/en/xampp-linux.html

Thursday, December 29, 2011

Membuat Repo di Local Disk

Pengguna ubuntu yang menggunakan repository secara online, selain dari itu menggunakan repository offline melalui iso DVD atau repository local dalam hardisk seperti yang akan kita pelajari sekarang.
  • Persiapan file iso repository. – anda dapat mendownloadnya disini: 
http://kambing.ui.ac.id/iso/ubuntu-repository/10.10/
  • siapkan direktori untuk melakukan mounting setiap iso repository tersebut. sebaiknya buat direktori terpisah untuk setiap mounting dvd. 
misalnya:
/media/Data/Repository-Maverick-Meerkat/repo-dvd-1/ untuk mounting iso dvd 1,
/media/Data/Repository-Maverick-Meerkat/repo-dvd-2/ untuk mounting iso dvd 2 dan begitu selanjutnya. 

  • Setelah direktori mount disiapkan, sekarang saatnya melakukan mounting iso dvd. buka terminal dan jalankan perintah berikut: 
  1. sudo mount -t iso9660 -o loop /media/Data/Repository-Maverick-Meerkat/repo-dvd-iso/ubuntu-10.10-repository-i386-1_contrib.iso /media/Data/Repository-Maverick-Meerkat/repo-dvd-1/ 
  2. sudo mount -t iso9660 -o loop /media/Data/Repository-Maverick-Meerkat/repo-dvd-iso/ubuntu-10.10-repository-i386-2_contrib.iso /media/Data/Repository-Maverick-Meerkat/repo-dvd-2/ 
  3. sudo mount -t iso9660 -o loop /media/Data/Repository-Maverick-Meerkat/repo-dvd-iso/ubuntu-10.10-repository-i386-3_contrib.iso /media/Data/Repository-Maverick-Meerkat/repo-dvd-3/ 
  4. dan seterusnya ... 

  • buka terminal dan buat backup file /etc/apt/sources.list dengan cara mengcopynya. 
cp /etc/apt/sources.list /home/data/sources.list 
  • Bukalah file /etc/apt/sources.list menggunakan editor, misalnya : 
  • sudo gedit /etc/apt/sources.list kemudian hapus semua isi file sources.list yang telah terbuka tersebut dan tambahkan baris-baris dibawah: 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse restricted universe 
  • deb file::// maverick main multiverse universe 
  • deb file::// maverick main multiverse restricted misalnya: 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-8/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-7/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-6/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-5/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-4/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-3/ maverick main multiverse restricted universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-2/ maverick main multiverse universe 
  • deb file::///media/Data/Repository-Maverick-Meerkat/repo-dvd-1/ maverick main multiverse restricted universe

simpan file tersebut dan tutup editornya. 
  • buka terminal dan ketikkan sudo-apt get update jika tidak ada pesan error, maka repository local yang baru saja anda kerjakan sudah dapat di gunakan. anda dapat menginstal software yang dibutuhkan dengan perintah sudo apt-get install >namaSoftware<. untuk mengetahui jenis repositori apa yang terdapat dalam DVD Repo (main, multiverse, universe atau restricted) anda dapat membuka directory pool dalam DVD repo tersebut. Disana akan terdapat folder-folder yang namanya merupakan jenis repositori DVD tersebut. 

Sumber : http://pembelajarprogramming.wordpress.com/2011/04/07/membuat-repository-local-dari-file-iso/

Monday, October 10, 2011

Merubah Password pada Filezilla Server

Sempat kesulitan juga menggunakan filezilla server agar bisa di remote dari warnet, nah ternyata ada nemu embah yang serba ada yaitu mbah google, kalo mbah yang serba tahu itu mbah wikipedia, he he jadi ngelantur. Langsung aja dari Link Sumber, dijelaskan bahwa secara default kita bisa connect terlebih dahulu lewat localhost (127.0.0.1) dengan port 14147 tanpa username dan password.

Pertama silahkkan jalankan FileZilla Server Interface.exe yang ada di filezilla folder Server Address = 127.0.0.1 Port = 14147 Administration Password = (kosongkan untuk pertama kalinya).

Pada edit setting, di kiri pilih Admin Interface Settings. nah disitu kita bisa nambahkan atau mengedit user serta bisa mengatur otoritas dari tiap-tiap user.

Selamat mencoba