Sunday, May 25, 2014

How to connect to database config.php

How is that we create a php file, to connect to the database
First we need to check, the application is installed or not xampp and service for apache and mysqlnya already way or not?
if it had stayed we make koneksi.php file / config.php



<?php
//host yang digunakan
//99,9% tidak perlu dirubah
$host = 'localhost'; 

//username untuk login ke host
//biasanya didapatkan pada email konfirmasi order hosting
$user = 'root'; 

//jika menggunakan PC sendiri sebagai host,
//secara default password dikosongkan
$pass = '';

//isikan nama database sesuai database
$dbname = 'dbname';

//mengubung ke host
$connect = mysql_connect($host, $user, $pass) or die(mysql_error());

//memilih database yang akan digunakan
$dbselect = mysql_select_db($dbname);

?>

Install wordpress di cpanel

pertama buka cpanel dengan mengetikan
http://namadomain.com/cpanel
login ke cpanel dengan password dan username yang diberikan dari hostingan anda.
setelah masuk cpanel
lihat di bagian paling bawah di menu
1
setelah itu pilih framework yang mau diinstal. nantinya akan diarahkan ke
2
pilih install pada bagian atas.
3
pilih domain yang mau di diinstall.
4

di kolom in directory dikosongkan.

5
setting username sama password.
terahkir klik install. dan tunggu prossesnya sampai dengan selesai.

The partition table when installing ubuntu server

install ubuntu server 10.04 dengan asumsi HD 250GB dan RAM 2 GB
Type Size Location FileSystem Mount
Primary 30 GB Beginning ext4 /
Primary 500 MB Beginning ext4 /boot
Primary 8192 MB Beginning swap swap
Logical 25 GB End btrfs /cache-1
Logical 25 GB End btrfs /cache-2
Logical 25 GB End btrfs /cache-3
Logical 25 GB End btrfs /cache-4
Logical 25 GB End btrfs /cache-5
Logical 46 GB End ext4 /home
Logical 5 GB End ext4 /opt
Logical 5 GB End ext4 /srv
Logical 5 GB End ext4 /tmp
Logical 5 GB End ext4 /usr
Logical 5 GB End ext4 /usr/local

janga lupa setellah diinstall lakukan update dan upgrade dengan perintah
sudo apt-get update -y && sudo apt-get upgrade -y
 

Introduction php programing

What is PHP ?
"php is a programing language "

every web programer must learn or know everything about php. because php leanguage is powerfull lenguage programing.
more info about php you can fing in here or in here

Step by Step install Virtual box di Windows 7

langkah awal sebelum install kita harus punya Softwarenya dulu,,,heheheh
bisa di download di sini ko,,,
setelah di download double klik aja file .exe nya.


1
next
2
next
3
install
5
finish
6
done.

Every programer have favorite text editor ?

Every programer have favorite text editor ?
There stout text editor to create the code, each of the text editor has its own advantages and disadvantages of its own, here are some frequently used text editor.
1. notepad
notepad
2. notepad++
notepad++
3. eclipse
eclipe
4. netbean
netbean
5. sublime
sublime

and still more corpulent.
"Thanks for watching"

check php version using test.php

check php version using test.php
okay,, we need to prepare is a text editor, here I use sumblime text editor,
create a new save file and save it in a folder into test.php htdoc
assumed you have installed xampp,
deaf this code in your text editor.
<? php
phpinfo ();
seetelah it by using the search enggine (chrome, firefox, etc).
localhost / test.php
and enter it will look like the following
php

Step by Step Install mikrotik di VirtualBox

Step by Step Install mikrotik di VirtualBox
1. Download OS mikrotiknya, karena kia akan meng install di VirtualBox maka download OS mikrotik dari sini
2. kalau yang belum punya VirtualBoxnya bisa didownload disini
3. selanjuatnya install VirtualBox nya. bagi yang belum pernah install VirtualBox bisa di lihat disini
4. jalankan VirtualBox nya.
6
klik new
1
isikan kolom dengan :
name : terserah anda.
type : other
versi : othet/unknow
2
lanjut/next
3
di tahap ini kita bisa mengatur memory yang akan digunakan untuk OS mikrotiknya. ingat pengisian in jangan melebihi memory PC/laptop kita.
4
buat hardisk visual.
5
pilih VDI (virtual disk image)
lanjut/next
4
5
7
selanjutnya tinggal klik tombol start  untuk menjalankan Vbox anda.
setelah jalan anda diminta untuk memasukan directori dimana OS mikrotik tersimpan.




INSTALL AND CONFIGURATION MIKROTIK, UBUNTU SERVER AND LOCAL COMPUTER SIMULATION BY USING VIRTUAL BOX


Hardware and software needed
        
harwarei . Here I use Netboke Hp Mini 110 with 2 GB ramii . Switch / hub

        
Softwarei . VitualBox latest versionii . Mikrotik OSiii . OS Ubuntu Server 10:04



    
topology
Note :For Gateway I can from my local network just think its way to gatew 192.168.0.50I love to Local network 192.168.13.0/24I love to ubuntu server ip 10.11.12.2/30



    
install
        
To install Mikrotik and Ubuntu Server , sya considered friends - friends already know
        
Now this is important , Virtual Lan Settings in Virtualbox so that the biased local network connect to the internet , and bias ubuntu connect to the internet , and also that due to the later we will make the DNS server in ubuntu then later to its local network DNS directed to Ubuntu Server .



    
Vbox display04 - vbox



    
Display Lan Mikrotik to lead to the gateway01 - lanfatherly in my notebook network card brodcome , as shown above , antinya ii aka proxy set in the Ethernet 1 that leads to the gateway .Why ga in settings to Bridge Adapter , this meant that we are biased static ip settings that we can from the wireless adapter .





    
Display Lan Server Mikrotik to lead to ubuntu02 - lan - ubuntuInternal Gatwway why in setting , this meant that each - sisteoperasi installed in Virtualbox bias communicate with each other .



    
Display Lan Mikrotik fatherly leads to local network03 - lan -local4 adapters for my set to Bridge adapters as well , why ?First , the local network will eventually fatherly I miss from my netbook Lancard ..Secondly , the advantages of using our bias settings Bridge adapter ip setting out in accordance with our wishes .Third , the problem is so , how there are 2 bridges in a virtual lan mikroti ? How the local network and ubuntu servers connected to the internet and bias between the local network and interact bias ubuntu server or connected to each other ?Heheheheh , , , , ,Kandani ko , , I'm so mumet fitting ngarape ko , ,But calm , there is still a way keluarya , ,Will be discussed in the setting Mikrotik .





    
setting Mikrotik
        
IP Address

        
Gateway



        
DNS
        
Firewall / NAT
        
bridge
DHCP