ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comอื่นๆCafeวิธีลง PhpMotion
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: วิธีลง PhpMotion  (อ่าน 4375 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
treehost
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 99
ออฟไลน์ ออฟไลน์

กระทู้: 2,027



ดูรายละเอียด เว็บไซต์
« เมื่อ: 14 มีนาคม 2011, 01:51:09 »


เห็นถามกันมาเยอะ เลยไปหาคู่มือมาครับ

พอดีผมก็ใช้อยู่เหมือนกัน ลงตามนี้แหละ  wanwan020


Phpmotion is an audio/video website software or template. It is based on apache, php, mysql, perl and some audio and video players and converters.

System Requirements :
apache web server with mod_rewrite, mod_perl.
php 4 or 5
ffmpeg-php
php-devel
php-mysql
ffmpeg
ffmpeg-devel
ffmpeg-php
flvtool2
mencoder
mplayer
fvec
phpshield loader for php
mysql-server
mysql-devel.

PHP Settings:
- open_basedir = (no value)
- upload_max_filesize = 100M
- post_max_size = 100M
- max_execution_time = 1500
- session.gc_maxlifetime = 14000
- safe_mode = off
- Thread saftery = disabled
- enable_dl = On

Installation and configuration (CentOS 5):

Step 1: Install apache , mysql and php
#yum install httpd httpd-devel mod_perl php php-devel php-mysql mysql mysql-server mysql-devel

Step 2: Install rpmforge repo for CentOS
#rpm -ivh http://packages.sw.be/rpmforge...elease-0.5.1-1.el5.rf.i386.rpm
#rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
#yum install mplayer ffmpeg flvtool2 mencoder

Step 3: Install fvec
#mkdir fvec
#cd fcec
#wget http://www.sothinkmedia.com/download/fvec.tar.gz
#tar xvfz fvec.tar.gz
#tar xvfz fvec.tar.gz
#cd ..
#mv fvec /usr/bin/

Step 4: Install phpshield loaders
#mkdir phpshield
#wget http://phpshield.com/loaders/phpshield.loaders.linux.zip
#unzip phpshield.loaders.linux.zip
#cp phpshield.5.1.lin /usr/lib/php/modules/
(Replace phpshield.5.1.lin with your version of php).
#cd ..
#rm -rf phpshield
Add following line in /etc/php.ini
extension=phpshield.5.1.lin

Step 5: Install ffmpeg-php
#cd /usr/src
#wget http://garr.dl.sourceforge.net...mpeg-php/ffmpeg-php-0.6.0.tbz2
#tar -xjf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0
#phpize
#./configure && make && make install

Step 6: Download and configure phpmotion
#cd /usr/src
#wget http://downloads.phpmotion.com/V3.5/php5/phpmotion.zip
#unzip phpmotion.zip -d /var/www/html/
#chown -R apache:apache /var/www/html/phpmotion
#chmod -R 755 /var/www/html/phpmotion
#cp -ai /var/www/html/phpmotion/cgi-bin/* /var/www/cgi-bin
Edit the file /var/www/cgi-bin/uu_default_config.pm and make following changes in respected lines.

temp_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/phpmotion/temp/’,
upload_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/phpmotion/uploads/avi/’,
redirect_url => ‘/phpmotion/uploader_finished.php’,
path_to_upload => ‘/phpmotion/uploads/avi/’,
Edit the file /var/www/cgi-bin/audio/uu_default_config.pm and make following change in respected lines.
temp_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/phpmotion/temp/’,
upload_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/phpmotion/uploads/audio/’,
redirect_url => ‘/phpmotion/audio_uploader_finished.php’,
path_to_upload => ‘/phpmotion/uploads/audio/’,
Edit the file /var/www/html/phpmotion/.htaccess and change “RewriteBase /” to
“RewriteBase /phpmotion”

Step 7: Configure mod_perl in apache
Edit the file /etc/httpd/conf.d/perl.conf
change Following
Alias /phpmotion /var/www/html/phpmotion
Leave everything else as it is.
change AllowOverride to all for directory “/var/www/html” in “/etc/httpd/conf/httpd.conf” file (This is insecure and dangerous for public servers).
Now start the apache server as
#/etc/init.d/httpd start

Step 8: Create mysql database and user.
Start the mysql server
#/etc/init.d/mysqld start
login to mysql
#mysql
You will see mysql command line as under
mysql>
Run the following query on the mysql command line.
mysql>create database ‘dbname’ ;
mysql>grant all on dbname.* to ‘dbuser’@'localhost’ identified by ‘dbpassword’ ;
mysql>flush privileges;
(change dbname,dbuser and dbpassword accoring to your choice).

Step 9:Install the phpmotion
Now open the browser and enter the url of your server in the address bar as under:
http://ipaddressofyourserver/phpmotion/setup
Follow the instructions. And delete of rename the /var/www/html/phpmotion/setup folder after installation.
Hopefully you should now get phpmotion running on your server.
If you get any error at any moment in the process please revert back in the same post.

Anoop



http://www.linuxhelpzone.com/i...motion-on-centos-5-server.html
« แก้ไขครั้งสุดท้าย: 14 มีนาคม 2011, 01:53:52 โดย treehost » บันทึกการเข้า

|(。◕‿‿◕。)| VPS SSD Raid-5 จัดโปรใจปล้ำ!.. ลด 20% แถมแรม 4GB ฟรี เริ่มต้นเพียง 700บาท
|(。◕‿‿◕。)| Line: @airwave |  ihotVPS
YourBest
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 86
ออฟไลน์ ออฟไลน์

กระทู้: 1,044



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 03 มีนาคม 2013, 17:54:29 »

เริ่มต้นยังไงงับ  wanwan022
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์