Author |
Message |
dhjohnson
|
Posted: Wed Feb 14, 2007 12:46 pm |
|
Joined: Fri Jun 09, 2006 8:08 pm
Posts: 23
|
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?
|
|
Top |
|
|
cecil
|
Posted: Wed Feb 14, 2007 6:27 pm |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
Wow, I didn't think anyone would miss avimanager... apt-cache search apache?
|
|
Top |
|
|
dhjohnson
|
Posted: Wed Feb 14, 2007 9:50 pm |
|
Joined: Fri Jun 09, 2006 8:08 pm
Posts: 23
|
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.
|
|
Top |
|
|
cecil
|
Posted: Thu Feb 15, 2007 2:00 pm |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
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.
|
|
Top |
|
|
dhjohnson
|
Posted: Fri Feb 16, 2007 4:48 am |
|
Joined: Fri Jun 09, 2006 8:08 pm
Posts: 23
|
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.
|
|
Top |
|
|
marc.aronson
|
Posted: Sun Sep 02, 2007 10:01 pm |
|
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location:
California
|
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
|
|
Top |
|
|
cecil
|
Posted: Sun Sep 02, 2007 10:08 pm |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
|
Top |
|
|
marc.aronson
|
Posted: Sun Sep 02, 2007 11:12 pm |
|
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location:
California
|
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
Last edited by marc.aronson on Mon Sep 03, 2007 12:00 am, edited 1 time in total.
|
|
Top |
|
|
marc.aronson
|
Posted: Sun Sep 02, 2007 11:59 pm |
|
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location:
California
|
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
|
|
Top |
|
|
marc.aronson
|
Posted: Mon Sep 03, 2007 12:40 am |
|
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location:
California
|
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
|
|
Top |
|
|
marc.aronson
|
Posted: Mon Sep 03, 2007 8:28 pm |
|
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location:
California
|
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
|
|
Top |
|
|