[mythtv-users] MythWeb PHP error permission denied... what's wrong?

Garett Harnish garett at chaos.za.org
Tue Sep 30 16:15:56 EDT 2003


Chris Germano wrote:

> I decided to create a new apache server since my standard one keeps 
> crashing with the new mythweb, which made it impossible to even get 
> to. So far so good, I downloaded 1.3.8, installed it, downloaded php, 
> installed it. Downloaded the latest mythweb copied it over, and 
> followed the instructions for setting chgrp and chmod. Then I started 
> the server and I'm getting this when on the Recorded Programs page for 
> the images:
>
> Warning at 
> /usr/local/share/apache/htdocs/pvr/includes/mythbackend.php, line 198:
> copy(image_cache/1005_20030929220000_20030929230000.nuv.png): failed 
> to open stream: Permission denied
>
> now I do have the settings set right, so what's up? Is my php 
> installation all messed up lol
>
> drwxrwxr-x    3 root     apache       4096 Sep 29 21:04 image_cache/
> drwxr-xr-x    4 root     root         4096 Sep 29 21:04 images/
> drwxr-xr-x    3 root     root         4096 Sep 29 21:04 includes/
> -rw-r--r--    1 root     root          157 Jul 24 18:29 index.html
> -rw-r--r--    1 root     root         2784 Jul 24 18:29 legend.php
> -rw-r--r--    1 root     root         2698 Jul 24 18:29 movies.php
> -rw-r--r--    1 root     root         7139 Aug  6 21:35 mythmusic.php
> drwxrwxr-x    3 root     apache       4096 Sep 29 21:04 php_sessions/


I haven't used the product yet, but I'll fire off at least one 
suggestion.   IIRC, some distribution's has wacky security, ie even if a 
users is part of the group, the kernel will not allow you to write into 
a directory owned by root.   Just in case, try

chown apache.apache -R /usr/local/share/apache/htdocs/pvr

and see if it makes a difference.   Also ensure that all configuration 
is complete.  IE if it asks for a root location, ensure it is set to 
/usr/local/share/apache/htdocs/pvr/ so it knows image_cache is in 
/usr/local/share/apache/htdocs/pvr/ and not 
/usr/local/share/apache/htdocs/pvr/includes/. 

Just a few suggestions.

--
Garett



More information about the mythtv-users mailing list