implementasi nginx, php dan mysql pada vps centos x86_64

nginx. dibaca Engine – X merupakan High Performance HTTP Server dan Reverse Proxy serta IMAP/POP3 Proxy Server yang bersifat opensource dan gratis. Dikembangkan oleh Igor Sysoe pada tahun 2005 Nginx dengan cepat menjadi populer karena kestabilan, kekayaan fitur dan konsumsi resources yang sangat rendah meskipun masih dalam status beta, diambil dari wiki Nginx.

Bericut langkah-langkah nya :

nano /etc/yum.repos.d/Centos-Base.repo
list repo punya biznet
Setelah itu

yum update -y
yum groupinstall 'Development Tools' -y
yum install -y mysql-server mysql-devel
service mysqld start
mysql_secure_installation

isi pil pil the blank blank

yum install -y wget patch gcc libtool libmcrypt-devel libxml2-devel flex bison make pcre-devel zlib-devel openssl-devel gd-devel

Continue reading

convert htaccess phpmotion pada nginx

lagi iseng-iseng nyobain nginx + phpshield buat youtube-youtuban ala indonesia pake phpmotion, eh ada satu hal yang mengganjal yaitu htaccess pada nginx yang tidak sama jika pada apache. berikut tampilan htaccess dari phpmotion nya.

order allow,deny
allow from all
Options +FollowSymlinks
RewriteEngine On

RewriteBase /
RewriteRule \.(css|jpe?g|gif|png|flv|swf)$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^videos/load/([^/]*)$ seemore.php?load=$1 [L]
RewriteRule ^videos/load/([^/]*)/([^/]*)$ seemore.php?load=$1&page=$2 [L]
RewriteRule ^audios/load/([^/]*)$ audio.php?load=$1 [L]
RewriteRule ^audios/load/([^/]*)/([^/]*)$ audio.php?load=$1&page=$2 [L]
RewriteRule ^audio/album/([^/]*)/([^/]*)$ audio.php?album=$1 [L]
RewriteRule ^audio/album/([^/]*)/([^/]*)/([^/]*)$ audio.php?album=$1&page=$3 [L]
RewriteRule ^blogs/load/([^/]*)$ blogs.php?load=$1 [L]
RewriteRule ^blogs/load/([^/]*)/([^/]*)$ blogs.php?load=$1&page=$2 [L]
RewriteRule ^albums/load/([^/]*)$ albums.php?load=$1 [L]
RewriteRule ^albums/([^/]*)/([^/]*)$ albums.php?load=$1&page=$2 [L]
RewriteRule ^people_ajax people_ajax.php [L]
RewriteRule ^people/([^/]*)/([^/]*)$ people.php?load=$1&page=$2 [L]
RewriteRule ^people people.php [L]
RewriteRule ^upload-media upload.php [L]
RewriteRule ^groups$ groups.php [L]
RewriteRule ^search search.php [L]
RewriteRule ^videos/([^/]*)/([^/]*)$ play.php?vid=$1 [L]
RewriteRule ^audio/([^/]*)/([^/]*)$ play_audio.php?audio=$1
RewriteRule ^category/([^/]*)$ category_home.php?cid=$1 [L]
RewriteRule ^category/([^/]*)/([^/]*)$ category_home.php?cid=$1&page=$2 [L]
RewriteRule ^subcategory/([^/]*)/([^/]*)$ category_home.php?sub=$1 [L]
RewriteRule ^subcategory/([^/]*)/([^/]*)/([^/]*)$ category_home.php?sub=$1&page=$3 [L]
RewriteRule ^genre/([^/]*)$ genre_home.php?cid=$1 [L]
RewriteRule ^genre/([^/]*)/([^/]*)$ genre_home.php?cid=$1&page=$2 [L]
RewriteRule ^view-album/([^/]*)/([^/]*)$ album_view.php?album=$1
RewriteRule ^view-image/([^/]*)/([^/]*)$ album_view.php?image=$1
RewriteRule ^read_blog/([^/]*)/([^/]*)$ read_blog.php?id=$1 [L]
RewriteRule ^blogs/category/([^/]*)/([^/]*)$ blogs.php?cat_id=$1 [L]
RewriteRule ^blogs/category/([^/]*)/([^/]*)/([^/]*)$ blogs.php?cat_id=$1&page=$3 [L]
RewriteRule ^members/([^/]*)$ memberprofile.php?user=$1 [L]
RewriteRule ^videos(.?)$ seemore.php [L]
RewriteRule ^audios(.?)$ audio.php [L]
RewriteRule ^blogs(.?)$ blogs.php [L]
RewriteRule ^members(.?)$ people [R=301]
RewriteRule ^albums(.?)$ albums.php [L]
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteCond %{QUERY_STRING} SELECT(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} UNION(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteRule ^(.*)$ index.php [F,L]

Options -Indexes
SecFilterEngine Off
SecFilterScanPOST Off

ErrorDocument 403 /403.php
ErrorDocument 404 /404.php

Continue reading

instalasi litespeed pada centos

Pernah pengen nyoba pakai web server yang cepat dan dapat di handalkan selain apache? Cobalah web server litespeed yang ringan, cepat, handal dan 100% kompatibel dengan konfigurasi apache dan server cpanel seperti yang saya lakukan setelah mencoba menggunakan web server ringan lainnya, lighttpd, yang memang juga dapat diandalkan namun lighttpd tidak dimaksudkan untuk menggantikan apache sehingga ada beberapa masalah dalam hal kompatibilitas dengan apache.

1. Fitur Litespeed Web Server

Kaya akan fitur:

  • CGI, FastCGI, LSAPI, PHP, Servlet/JSP, Proxy
  • Mendukung SSL, IPv4, IPv6
  • Dukungan terbaik pada Ruby on Rail
  • Kompatibel dengan Apache .htaccess
  • Dukungan kompatibilitas dengan mod_security request filtering
  • Kompatibel dengan Apache URL rewrite engine
  • MS FrontPage Server Extension

Continue reading

konfigurasi dns pada kloxo

iseng-iseng lagi nyobain kloxo, gratisan gitu :ngakaks saoale pake cpanel bayar :hammer:
nih langkah langkah nya boleh nyomot dari mas mustapha from djogjakarta

1. install kloxo di VPS1 and VPS2
2. VPS 1 buat domain
3. VPS2 buat subdomain

4. Domain mydomain.com dan subdomain adalah subdom.mydomain.com
5. IP for VPS1 is 123 111 111 111 123 222 222 222 and for VPS2 is
6. IP for dns registrar is 123 333 333 333

set “Sebuah catatan” (childnameserver) dan “Record NS” (nameserver) pada Panitera (di mana kita membeli domain) panel:

ns1 A - 123.111.111.111
ns2 A - 123.333.333.333
- NS - ns1.mydomain.com
- NS - ns2.mydomain.com

membuat dns-template pada VPS1 dengan ‘default’ nama domain:

__base__ A – 123.111.111.111
cp A – 123.111.111.111
mail A – 123.111.111.111
ns A – 123.111.111.111
ns1 A – 123.111.111.111
ns2 A – 123.333.333.333
ftp CN – __base__
lists CN – mail
webmail CN – mail
www CN – __base__
default.dnst MX 10 mail.default.dnst
- NS – ns1.default.dnst
- NS – ns2.default.dnst

Continue reading

install Windows Server di xen domU melalui hypervm

pada tutz sebelum nya yaitu installasi hypervm di centos sekarang ane lagi coba-coba untuk install windows server di hypervm. langkah-langkah nya adalah sbb :

Langkah awal nya adalah membuat file iso yang akan di simpan di server. tutorial nya ada di sini

[root@localhost ~]$  ln -s /iso/win2k3r2-cd1.iso /home/wincd.img

lalu ubah file permission nya ke 755

[root@localhost ~]$ chmod 775 /iso/win2k3r2-cd1.iso

Now login to HyperVM by entering the IP address of the computer you installed it to in a web browser and connect to port 8887 or 8888. For example:

The interface will return you to the Virtual Machines listing. Click on vm name to go to it’s control panel. From there you can open the vm’s output display by selecting VNC Client under the Console category. Alternatively you can connect using a third party VNC client to the host machine’s IP address at the port specified in the VNC Client page. Once you’ve connected, you can install Windows as you normally would on a regular computer.

In Windows Server 2003 R2, the main installation will use only the first disc. After the OS is set up during the first logon the installer will ask for a second disc. You can skip this but should you want to continue with the second disc, this is what you have to do in the terminal console of the host machine:

Continue reading