[mythtv-users] mythburn/php permissions error - don't understand!
Neil Bird
neil at fnxweb.com
Mon Mar 27 07:20:11 UTC 2006
I had the mythburn scripts running mostly OK under 0.18.1, and I'm trying
to get the latest CVS version running nuder 0.19. I'm getting a permission
error, which as I don't really know php I'm at a loss to figure out.
Any thoughts?
Error at /var/www/html/mythweb/modules/mythburn/confirm.php, line 67:
opendir(/var/www/html/mythweb/modules/mythburn/mythburnscripts/music)
[function.opendir]: failed to open dir: Permission denied
Details:
datetime: 2006-03-24 17:21:34 (GMT)
errornum: 2
error type: Warning
error string:
opendir(/var/www/html/mythweb/modules/mythburn/mythburnscripts/music) [<a
href='function.opendir'>function.opendir</a>]: failed to open dir: Permission
denied
filename: /var/www/html/mythweb/modules/mythburn/confirm.php
error line: 67
Cannot open /var/www/html/mythweb/modules/mythburn/mythburnscripts/music.
As a normal user, I can do this OK:
$ ls -l /var/www/html/mythweb/modules/mythburn/mythburnscripts/music
total 1904
drwxr-xr-x 2 apache apache 4096 Mar 24 16:31 CVS/
-rw-r--r-- 1 apache apache 430081 Sep 25 2004 funky1.mp2
-rw-r--r-- 1 apache apache 430081 Sep 25 2004 funky2.mp2
-rw-r--r-- 1 apache apache 841344 Sep 25 2004 menumusic.mp2
-rw-r--r-- 1 apache apache 214309 Sep 25 2004 silence.mp2
Here's the snippet of failing code (line 67 at '->'):
// Same again for background music
unset($filenames);
$default_dir = $mythburndir."/music";
-> if (!($dp = opendir($default_dir))) die("Cannot open $default_dir.");
while($file = readdir($dp)) {
if($file != '.' && $file != '..' && (substr($file,-4)==='.mp2' ||
substr($file,-4)==='.ac3')) $filenames[] = $file;
}
closedir($dp);
$background_music=$filenames;
--
[neil at fnx ~]# rm -f .signature
[neil at fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil at fnx ~]# exit
More information about the mythtv-users
mailing list