Instalasi
# apt-get
install apache2 mysql-server php5 ffmpeg flvtool2 mencoder libogg0 php5-ffmpeg php5-curl curl
libapache2-mod-php5 php5-mysql lynx-cur libapache2-mod-speedycgi
Download file phpmotion
Download file phpmotion
#
unzip phpmotion.zip /var/www
#
chmod 777 /var/www/phpmotion/ -R
# cd
/etc/apache2/sites-available/
# cp
default streaming #tergantung DNSnya
#
pico streaming
ServerAdmin webmaster@localhost
ServerName streaming.mayhandry.com
DocumentRoot /var/www/phpmotion
Directory /var/www/phpmotion/
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/phpmotion/
Options Indexes FollowSymLinks
MultiViews
AllowOverride All
Order allow,deny
allow from all
/Directory
ScriptAlias /cgi-bin/ /var/www/phpmotion/cgi-bin/
Directory "/var/www/phpmotion/cgi-bin"
#
a2ensite streaming
Edit "/var/www/phpmotion/.htaccess" tambahkan text
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
diatas text RewriteEngine On
Setting konfigurasi php, edit file "/etc/php5/apache2/php.ini"
edit menjadi seperti berikut:
open_basedir = (no value)
upload_max_filesize = 100M # (bisa di ubah)
post_max_size = 100M # (bisa di ubah)
max_execution_time = 1500
session.gc_maxlifetime = 14000
safe_mode = off
enable_dl = On
tambahkan:
extension=/var/www/phpmotion/phpshield/Linux_x86-32/ixed.5.3.lin
Aktifkan modul rewrite
# a2enmod rewrite
Edit "/var/www/phpmotion/.htaccess" tambahkan text
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
diatas text RewriteEngine On
Setting konfigurasi php, edit file "/etc/php5/apache2/php.ini"
edit menjadi seperti berikut:
open_basedir = (no value)
upload_max_filesize = 100M # (bisa di ubah)
post_max_size = 100M # (bisa di ubah)
max_execution_time = 1500
session.gc_maxlifetime = 14000
safe_mode = off
enable_dl = On
tambahkan:
extension=/var/www/phpmotion/phpshield/Linux_x86-32/ixed.5.3.lin
Aktifkan modul rewrite
# a2enmod rewrite
#
/etc/init.d/apache2 restart
jika instalasi php shield gagal, jangan panik..., jangan teriakk,... jangan banyak tingkahh,.. :D ... duduk yang tenang dan lihat dengan teliti :
#cd /home/user/#wget http://www.phpshield.com/loaders/phpshield.loaders.linux.zip
unzip file yang telah kita download tadi setelah itu cari letak folder extension php pada server kita, untuk singkatnya
anda dapat gunakan perintah ini untuk mencari lokasi folder : #php –i |grep extension_dir contoh /usr/lib/php5/20060613+lzz
Untuk php versi 5.2.x copy file phpshield.5.2.lin pada folder extension server kita /usr/lib/php5/20060613+lzz
# cp phpshield.5.2.lin /usr/lib/php5/20060613+lzz
setelah itu restart apache server
# /etc/init.d/apache2 restart
Atau jika masih error gunakan ini:
Download phpshield from hereAfter download unzip and copy the file phpshield.5.2.lin in to /usr/lib/php5/20060613+lfs folder
Now you need to edit the php.ini file using the following command
pico / etc/php5/apache2/php.ini
add the following line at the end of the file
extension=phpshield.5.2.lin
Save and exit the file
Now you need to restart apache server using the following command
sudo /etc/init.d/apache2 restart
That’s it now check your phpmotion
selesai

0 komentar:
Posting Komentar