安装完PHPmotion之后 上传视频没有反应
官方论坛里描述的是:Videos or Thumbs not showing
根据提供的解决方法,我自己的php路径为/home/www/php/bin/php
改了config.ini.php中的php路径之后 问题解决
最初还以为是没有CLI支持,原来PHP路径没指对@.@
由于上国际网不方便,这里把官方解决方法贴过来
If you can upload videos and they are not showing then there could be a variety of reasons as to why this is the case. The list below is not a complete exhaustive one but will help debug the most common problems.
======================================================================================================
1) Missing Requirements
If you run the tester.php script and get "fail" on the first 3 items on the list then video will not convert. You should check that you have these requirements installed. If you have a dedicated server or a VPS you can check yourself by logging in as root and running
which ffmpeg
which mencoder
which flvtool2
If you get a path showing then you have the modules installed, if not then you need to set these up. Click here for help with this.
Ensure that the file paths that you get are the same ones as specified in your admin area.
======================================================================================================
2) NO CLI support
CLI (command line interface) is the means by which the videos are converted in the background so that users don’t have to wait while they are converted. When a video finishes uploading, CLI is used to run convertor.php in the background which goes to work converting the video.
You need to check that you have CLI support. to do this follow the steps below
a) Open convertor.php and edit the two sections below to include your own email address and remove the // (commenting)
//mail("you@yourdomain.com", "PHPmotion – Check Point 1", "Loaded OK", "From: Server <name@email.com>");
and also
//mail("you@yourdomain.com", "PHPmotion – Check Point 6", "SCRIPT LOADED TO THE END", "From: Server <name@email.com>");
b) upload a video and when uploading is completed you should get 2 emails from your server, if you get both emails it means that you have CLI support and the convertor.php was loaded correctly and as such this is not your current problem. If you dont get the emails then you don’t have CLI for PHP and you should:
1) try and change the path to php in the file /classes/config.inc.php to /usr/local/bin/php
2) if step (1) does not resolve the problem try this alternative solution. http://phpmotion.com/forum/index.php?topic=954.0
=====================================================================================================
3) Check your logs
You can also check your log file which is created in the folder /logs. To enable logging do the following
a) Edit the file classes/config.inc.php and change logging to yes as shown below
b) upload a video and then download the log file. If you are getting errors and you decide to post a question in the forum, remember to include your log file.
=====================================================================================================
Need more help? click here
抱歉,暂停评论。