Install apache dan support untuk PHP dan CGI :
sudo apt-get install apache2 apache2-common apache2-mpm-prefork apache2-utils ssl-cert
sudo apt-get install libapache2-mod-mod-php4 php4-cli php4-common php4-cgi
Secara default semua file konfigurasi ada di /etc/apache2
Default document root ada di /var/www. Jika mau ubah default document root yang perlu di edit adalah file /etc/apache2/sites-available/default.
File konfigurasi utama terdapat di /etc/apache2/apache2.conf
Secara default apache2 menggunakan port 80, kalo mo ubah port edit file /etc/apache2/ports.conf. setelah mengedit file ini apache2 service harus di restart.
Untuk cek apakah php sudah di support cek aja file /etc/apache2/apache2.conf dan liat Directory Index harusnya terlihat seperti ini:
=============
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
=============
kalau mau mengaktifkan apache modul (SSL, rewrite, suexec dan include)
$sudo a2enmod ssl
$sudo a2enmod rewrite
$sudo a2enmod suexec
$sudo a2enmod include
Restart apache2
Test apache server nya dgn link http://IP-server/apache2-default/
test apache server dengan PHP :
buat satu file /var/www/test.php yang berisi :
save file nya
sekarang test page nya dengan link http://IP-server/test.php
Selesai
Semoga bermanfaat
There are 2 ways to mount iso file in hp-ux 1) using LVM method (to copy ISO into a logical volume) is the same as for older HP-UX releases: 1. Find out the size of the ISO image: # du -k /data/myImage.iso NOTE: The size will be in Kb. 2. Create a logical volume for the ISO image: # lvcreate -L -n iso /dev/vg00 NOTE: The name of the logical volume will be /dev/vg00/iso 3. Copy the ISO file to the raw logical volume: # dd if=/data/myImage.iso of=/dev/vg00/riso bs=64k 4. Create a temporary directory and mount the /dev/vg00/iso volume # mkdir /iso_image # mount /dev/vg00/iso /iso_image NOTE: For HP-UX 11.11 you must install the latest CDFS patches: PHCO_25841 Add Rock Ridge extension to mount_cdfs(1M) PHKL_26269 Rock Ridge extension for ISO-9660 PHKL_34153 CDFS cumulative patch 2) Available in HP-UX 11.31 0909: ISOIMAGE-ENH. Provides a new DLKM module fspd. Required to mount, read and umount the ISO image file. The comm...
Comments