LinHES Forums
http://forum.linhes.org/

avimanager
http://forum.linhes.org/viewtopic.php?f=11&t=14176
Page 1 of 1

Author:  dhjohnson [ Wed Feb 14, 2007 12:46 pm ]
Post subject:  avimanager

I'm trying to get avimanager working since it was left off of R5E50. I've installed all of the perl-related debian packages that it needs, but now when I try to run the install script, it tells me that it is unable to find Apache CGI. Any hints?

Author:  cecil [ Wed Feb 14, 2007 6:27 pm ]
Post subject: 

Wow, I didn't think anyone would miss avimanager... apt-cache search apache?

Author:  dhjohnson [ Wed Feb 14, 2007 9:50 pm ]
Post subject: 

cecil wrote:
Wow, I didn't think anyone would miss avimanager... apt-cache search apache?


Well, the wife and I use it to facilitate picking movies. I'm not sure which package in particular you were recommending that I install, but I don't think it's an issue of installing more packages. I think it's just a configuration issue.

Incidentally, for R5D1, I was able to just untar the newest version of aviManager over the included version, which made things pretty easy.

Author:  cecil [ Thu Feb 15, 2007 2:00 pm ]
Post subject: 

I tried to get avimanger working for E50, but I couldn't. I might have been able to with more time, but I wanted to release on Xmas. If you need CGI support for Apache, you may have to install a module.

Author:  dhjohnson [ Fri Feb 16, 2007 4:48 am ]
Post subject: 

cecil wrote:
I tried to get avimanger working for E50, but I couldn't. I might have been able to with more time, but I wanted to release on Xmas. If you need CGI support for Apache, you may have to install a module.


Okay. Well, if you get it working between now and the next release, that'd be great. In the mean time, I've put together a VM that can serve avimanager when I need it. I'm just stuck trying to figure out how to transfer the data from the last installation.

Author:  marc.aronson [ Sun Sep 02, 2007 10:01 pm ]
Post subject: 

I just upgraded to the R5F series and I'm having the same problem. Has anyone solved this? If not, I found a web page that suggested the followng:
Code:
apt-get install libapache2-mod-php4 php4-cli php4-common php4-cgi


This results in the following msg:
Code:
The following extra packages will be installed:
  libapache-mod-php4 php4-mysql
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php4-cgi php4-cli
The following packages will be upgraded:
  libapache-mod-php4 libapache2-mod-php4 php4-common php4-mysql
4 upgraded, 2 newly installed, 0 to remove and 32 not upgraded.


Does anyone know if upgrading those 4 packages will cause any problems?

Marc

Author:  cecil [ Sun Sep 02, 2007 10:08 pm ]
Post subject: 

It shouldn't.

Author:  marc.aronson [ Sun Sep 02, 2007 11:12 pm ]
Post subject: 

Ok, I installed those packages -- nothing broke but avimanager still isn't working. I also took the following steps:

1. Created file /etc/apache2/sites-available/aviman
Code:
<Directory /myth/avimanager/cgi-bin>
    Options         FollowSymLinks ExecCGI
    AllowOverride   All
 <IfModule mod_dir.c>
   DirectoryIndex aviman.pl
 </IfModule>
 AddHandler cgi-script .pl
</Directory>


2. Added a symlink to that file in sites-enabled

3. Created symlink /var/www/aviman pointing at /myth/avimanager/

When I browse to http://mythhd/cgi-bin/aviman/aviman.pl I get error 404 and /var/log/apache2/error.log has the following:
Code:
[Sun Sep 02 22:12:21 2007] [error] [client 192.168.0.4] script not found or unable to stat: /usr/lib/cgi-bin/aviman


Any suggestions?

Marc

Author:  marc.aronson [ Sun Sep 02, 2007 11:59 pm ]
Post subject: 

OK I made it a little further. I had to added the "ExecCGI" option to the 'myth directory. Now I am getting the following:
Code:
[Sun Sep 02 23:00:12 2007] [error] [client 192.168.0.4] Can't locate CGI/Session.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /sw/lib/perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5/5.8.6 /sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin) at /myth/avimanager/cgi-bin/aviman.pl line 27.


So the problem is that I don't appear to the the perl library that contains "Session.pm". Anyone know where I can find it?

Marc

Author:  marc.aronson [ Mon Sep 03, 2007 12:40 am ]
Post subject: 

OK, I did
Code:
apt-get install libwww-perl libcgi-session-perl libconfig-inifiles-perl libhtml-template-perl libstring-approx-perl


That got me all the libraries, but aviman.pl went into an infinite loop. It started very quiet and CPU bound, but after a while the disk started to go wild and the swap process (kswap?) was running non-stop. Looks like it went into a loop allocating memory :-(

marc

Author:  marc.aronson [ Mon Sep 03, 2007 8:28 pm ]
Post subject: 

OK -- I got avimanager to work on the R5F series. Here is what I did -- executed everything as root. There may be better ways, but this worked...

First, create the file /etc/apache2/sites-available with the following content:
Code:
Alias /aviman /var/www/aviman
<Directory /var/www/aviman/cgi-bin>
    Options         FollowSymLinks ExecCGI
    AllowOverride   All
 <IfModule mod_dir.c>
   DirectoryIndex aviman.pl
 </IfModule>
 AddHandler cgi-script .pl
</Directory>


Now execute the following:

Code:
apt-get install libapache2-mod-php4 php4-cli php4-common php4-cgi
apt-get install libwww-perl libcgi-session-perl libconfig-inifiles-perl libhtml-template-perl libstring-approx-perl
ln -s /myth/avimanager /var/www/aviman
chown www-data.www-data /var/www/aviman
ln -s /var/www/aviman/cgi-bin /usr/lib/cgi-bin/aviman
ln -s /etc/apache2/sites-available/aviman /etc/apache2/sites-enabled/aviman
/etc/init.d/apache2 restart


Finally, in your browser use the following URL when you want to access aviman: http://your-server-IP-address/aviman/cgi-bin/aviman.pl or http://machine-name/aviman/cgi-bin/aviman.pl

Marc

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/