- warning: copy() [function.copy]: open_basedir restriction in effect. File(/usr/local/red5/webapps/oflaDemo/streams/sunmingliang.flv) is not within the allowed path(s): (/home/wwwroot/yc_4000512126_com:/tmp) in /home/wwwroot/yc_4000512126_com/public_html/sites/all/modules/shipingzhongcustom/shipingzhongcustom.module on line 368.
- warning: copy(/usr/local/red5/webapps/oflaDemo/streams/sunmingliang.flv) [function.copy]: failed to open stream: Operation not permitted in /home/wwwroot/yc_4000512126_com/public_html/sites/all/modules/shipingzhongcustom/shipingzhongcustom.module on line 368.
linux 复制失败 根据意思 在 httpd.conf 文件中
发现下面
php_admin_value open_basedir /home/wwwroot/yc_4000512126_com:/tmp增加路径 /usr/local/red5/webapps/oflaDemo/streams 就可以了
还要重启下服务器
<VirtualHost *:80>
DocumentRoot /home/wwwroot/yc_4000512126_com/public_html
ServerName yc.4000512126.com
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /home/wwwroot/yc_4000512126_com:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /home/wwwroot/yc_4000512126_com>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>