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 severals ways to mount samba share folders into OSMC. the first step is to turn on the SSH Services in your OSMC go to setting OSMC and choose services by default OSMC SSH will use osmc as its default user and osmc as its default password. second step is to share the folder(s) you want to share to osmc to do this just do a share configuration in windows, there are many links to provide this tutorial. third step is to mount the shares folder(s) to the OSMC. forth step is to make sure that the cifs-util module are loaded to the osmc fifth step is to mount them you can use the mount command or you can mapped the samba folders through fstab to do manual mount type in: mount -t cifs -o username=Administrator,password=Password // / /mnt/ or you can edit the /etc/fstab //source_ip/share_folder /target_directory cifs username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 That's it but when osmc rebooted, you might want to ...
Comments