PHPmotion upload时出现混乱源代码

条评论
如: . $result[‘channel_name’] . ‘’; $fields_all = $fields_all . $field; } //$fields_all = html_entity_decode($fields_all); //grab values from form if any ////////////////////////////// $form_submitted = $_POST[‘form_submitted’];//check if form has been submitted $title = $_POST[‘title’]; $description...

阅读全文

405 Error Method Not Allowed

条评论
安装PHPmotion时遇到问题: Method Not AllowedThe requested method POST is not allowed for the URL /videx/cgi-bin/uu_upload.pl. 经过搜索发现如下解决方法:在主服务器配置文件中,使用Options指令显式地允许特定目录中CGI的执行:<Directory /usr/local/apache/htdocs/somedir>Options +ExecCGI上述指令使Apache允许CGI文件的执行。另外,还必须告诉服务器哪些文件是CGI文件。下面的AddHandler指令告诉服务器所有带有cgi或pl后缀的文件是CGI程序:AddHandler cgi-script cgi pl 原文地址:http://bbs.chinaunix.net/viewthread.php?tid=960709

阅读全文

搭建PHPmotion环境 How to setup all the codecs and server software

条评论
http://phpmotion.com/forum/index.php?topic=5133.0 How Install FFMPEG,Mencoder,Flvtool – The easy way! A lot of people are getting hiring people to install FFMPEG as they think it’s a difficult task, but it’s much easier than you think if you follow these instructions. You should have root access & basic Linux knowledge to the server to follow these instructions. Login to your box SSH as root! Create a directory to do our work in mkdir ~/ffmpegcd ~/ffmpeg Get all the so...

阅读全文

Ubuntu 7.1 server从无到有搭建全能WEB生产环境

条评论
安装Ubuntu非常简单,不再多述。注意几点:1、安装之前先插上网线2、除了OpenSSH,不装其它任何的服务器软件,Apache/Mysql/PHP都不装,后面使用源码自己编译安装 Ubuntu安装后的配置:1、启用root用户sudo passwd root输入密码后:su即可用root用户完成后面的配置与维护。 2、配置网络如果在安装时没有配置好网络环境,可手工配置:vi /etc/network/interfaces根据环境正确配置即可。重启网络:/etc/init.d/networking restart 3、配置apt-get的更新位置如果想使用最新版本的各种包,此步必须。vi /etc/apt/sources.list编辑文件,主要是禁止从cdrom安装软件,而从网上下载最新的版本。 deb cdrom:[Ubuntu-Server 7.10 Gutsy Gibbon - Release i386 (20071016)]/ gutsy main re...

阅读全文

ubuntu 编译环境的搭建

条评论
一. 安裝基本的編譯環境和一些輔助工具,如文檔等。mNWLinux联盟sudo apt-get install manpages-devmNWLinux联盟安裝C/C++的Man手冊,這樣你就可以隨時的查看一些你不太瞭解的函式的原型,具体參數說明等;還可以查看一些include檔案的具体說明。mNWLinux联盟mNWLinux联盟sudo apt-get install build-essentialmNWLinux联盟安裝gcc,g++,make等mNWLinux联盟mNWLinux联盟sudo apt-get install libc6-dev libstdc++6-4.0-devmNWLinux联盟安裝include&libmNWLinux联盟mNWLinux联盟sudo apt-get install autoconf automake1.9mNWLinux联盟安裝autoconf automake1.9mNWLinux联盟mNWLinux联盟sudo apt-get install binutils-doc cpp-doc gcc-4.0-doc gcc-...

阅读全文

修改Ubuntu的时间

条评论
UTC是格林威治时间,CST是中国标准时间,很显然CST=UTC+8。基于此,如果你的CMOS是本地时间(也即CST时间),并且你想使用本地时间,那么你需要做如下修改:shell>sudo vim /etc/default/rcS           (找到关于utc的设置)#utc=yes                   #注释掉,并改为noutc=no                         #保存退出如果你本地时间还不准确的话,可以这样修改:shell>sudo date -s MM/DD/YYshell>sudo date -s hh:mmshell>sudo /etc/init.d/hwclock.sh restart             #将修改后的正确时间写入cmos修改过程中,可能出现执行命令时,提示距将来时间太早,不用太在意这种提示,重起后在修改。

阅读全文

编译Mysql时configure: error: No curses/termcap library found 的错误解决方法

条评论
在编译Mysql时./configure –prefix=DIR ,如果出现了以下错误:……checking for tgetent in -ltermcap… nochecking for termcap functions library… configure: error: No curses/termcap library found 说明 curses/termcap 库没有安装apt-cache search curses grep lib 安装 libncurses5-dev ,然后重新运行配置apt-get install libncurses5-dev

阅读全文

PHPmotion 环境搭建(FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog)

条评论
原文地址:http://linux.chinaunix.net/bbs/viewthread.php?tid=917564 [PHPMOTION_PHP5,Video Share Enterprise]在网上的一个视频分享整站程序,需要上边的环境才能正常运行.最近我正好做了这个环境.所以记录了一个文档,方便大家参考.安装简介:请先准备及安装下列需要1.) MySQL (version 4 or higher)2.) PHP (version 4.2.3 or higher)3.) FFmpeg (http://ffmpeg.mplayerhq.hu)4.) FFmpeg-PHP (http://ffmpeg-php.sourceforge.net)5.) Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html )6.) flv2tool (http://inlet-media.de/flvtool2)7.) LAME MP3 Encoder8.) Libogg + Libvorbis (http://www.xiph...

阅读全文

ioFTPD文档:各种配置文件详细说明(一)

条评论
ioFTPD文档:各种配置文件详细说明1. 目录结构——————————————————————————————————— ioFTPD主目录包括以下文件:Changelog, TODO, README.1ST 更新记录文件包含了ioFTPD的最新更新内容,可使您及时了解软件的bug修正及新增特征等。TODO文档列出了ioFTPD未来版本中要添加的内容。README.1ST文件为一些必要的法律公告。 ioFTPD下的目录包括: /cache 包括缓存文件,您不能改动此目录下的任何文件。/etc 目录内文件包括 UserIdTable -用户及其UID(用户ID)列表GroupIdTable - 组及其GID(组ID)列表default.vfs和admin.vfs - VFS示例文件ioftpd.env - 定义环境变量 /groups 组数据文件。文件名即为GID(组ID)/help 帮助文件。/lib TCL库/logs 服务器运行记录文件如Error.log及Sysop.log等./scripts ioFT...

阅读全文

ioFTPD文档:各种配置文件详细说明(二)

条评论
6.站点命令 —————————————————————————————-当你通过FTP方式连接后你可以使用站点命令,如下所示:site adduser 等当你通过TELNET连接后使用大多数站点命令不需要site前缀,但是需使用点命令符(.dot-command notation).adduser .增加用户<用户名><密码><认证@ip地址>注意所有与vfs(虚拟文件系统)相关的命令在telnet方式下是不支持的(例如chmod, chattr, chown等) 在FlashFXP下你可以在“Raw command line”(View..Raw Command Line)中输入命令,或使用raw commands(CTRL+R)的对话框。如果希望通过FlashFXP更简单的使用命令,你可以从ioFTPD论坛找到ioFTPD的命令集进行导入 如果你是在windows环境下使用ftp.exe连接FTP,你可以使用命令搇iteral?#25110;者搎uote?#26469;向FTP服务器传递命令。例如:quote site who Add&#x...

阅读全文