LinHES Forums http://forum.linhes.org/ |
|
avimanager -- permission denied http://forum.linhes.org/viewtopic.php?f=6&t=4961 |
Page 1 of 1 |
Author: | marc.aronson [ Sat Jun 18, 2005 11:21 am ] |
Post subject: | avimanager -- permission denied |
Somehow avimanager didn't install properly when I installed knoppmyth R5A16 so I did the following: 1. Untar'ed the tar file to /myth/avimanager 2. Edited the configuration file, per directions. When I try to run avimanager, I get the following error message: Quote: Forbidden
You don't have permission to access /cgi-bin/aviman/aviman.pl on this server. -------------------------------------------------------------------------------- Apache/1.3.33 Server at mythtv Port 80 I've tried some of the obvious changes like adding "a+rw" to the various files, but no success. Any suggestions? marc |
Author: | tjc [ Sat Jun 18, 2005 11:57 am ] |
Post subject: | |
Maybe you needed a+rx on that file instead? As with any access permission problem, first you need to understand it then you can fix it. Apache runs as "www-data" so that is the user that needs access and should own the files under /myth/avimanager. There is also a symlink which needs to point to the right directory: Code: mythtv@black2:~$ ls -al /usr/lib/cgi-bin/aviman
lrwxrwxrwx 1 www-data www-data 24 Jun 4 18:16 /usr/lib/cgi-bin/aviman -> /myth/avimanager/cgi-bin Frankly it sounds like your install is roached in some important way, probably because of a bad CD. I'd suggest downloading it again, checking the md5sum of the ISO image, burning a new CD at the slowest speed, making a backup, and doing an auto upgrade. |
Author: | marc.aronson [ Sun Jun 19, 2005 9:32 am ] |
Post subject: | |
tjc: "a+x" was already on the files and the sym link was already there, but you hit the nail on the head with the ownership issue. I installed them as root, so a simple Code: chown -R www-data.www-data /myth/avimanager
solved the problem -- thank you! In terms of a bad install -- I now understand why it looks like "avimanager" and "nuv2disc" were not properly installed. Sometime back I made the decision to use a different disk layout for my /myth partition than the install images assume. (At that time I made this decision I didn't understand the complexity it would add to my upgrades.) As a consequence, when I did my upgrade I experienced the following: 1. I ran "auto upgrade" from the CD. 2. The system rebooted, as expected, and the configuration utility stated up. I exited the config utility. 3. When I looked at /myth & /myth/tv it did not contain any of my R4V9 content. It looked like a fresh install. I assume this is because the upgrade scripts didn't know about my non-standard layout, so it could not automatically mount my R4V9 content at /myth. 4. I then edited "fstab", mounted my old content and manually ran a restore. Things worked well, but in doing this, any changes made to "/myth" by the upgrade scripts prior to this were "burried" under the new mount. This included the creation of the directories "/myth/avimanager" and "/myth/nuv2disc". To confirm that this is what happened, I just unmounted /myth, and sure enough, I uncovered the copy of /myth with the "avimanager" and "nuv2disc" subdirectories created during the upgrade process. Everything else on my install seems to work well, so my guess is that I am OK, but given this experience, at some point I need to migrate my layout to the standard layout used for an LVM configuration. Marc |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |