NSLU2-Linux
view · edit · print · history

(redirected from Unslung.PhpGedView)

Phpgedview

Phpgedview is a package that runs under a Php enabled Httpd web server such as apache or php-thttpd. Converting Phpgedview to run on the NSLU-2 is relatively simple. I have it running by a manual installation method. An installable package would be preferable and would probably involve :-

  • Setting file and Directory permissions
  • Some config files may need amending
  • Some thought is needed regarding when upgrades are installed over the top of a previous installation.

I have assumed with these notes that the installation folder would be \opt\share\www\phpgedview\.

Note 1 - The following is a list of chmod commands to set file and folder permissions, seems to be important when running under php-thttpd.

 
chmod -R 0644 /opt/share/www/phpgedview/*
chmod 0777 /opt/share/www/phpgedview/config.php
chmod -R 0777 /opt/share/www/phpgedview/index/*
chmod 2777 /opt/share/www/phpgedview/index
chmod 2755 /opt/share/www/phpgedview
chmod 2755 /opt/share/www/phpgedview/blocks
chmod 2755 /opt/share/www/phpgedview/fonts
chmod 2755 /opt/share/www/phpgedview/images
chmod 2755 /opt/share/www/phpgedview/images/flags
chmod 2755 /opt/share/www/phpgedview/images/small
chmod 2755 /opt/share/www/phpgedview/includes
chmod 2755 /opt/share/www/phpgedview/includes/DB
chmod 2755 /opt/share/www/phpgedview/languages
chmod 2755 /opt/share/www/phpgedview/media
chmod 2755 /opt/share/www/phpgedview/media/thumbs
chmod 2755 /opt/share/www/phpgedview/pgvnuke
chmod 2755 /opt/share/www/phpgedview/places
chmod 2755 /opt/share/www/phpgedview/places/AUT
chmod 2755 /opt/share/www/phpgedview/places/CAN
chmod 2755 /opt/share/www/phpgedview/places/CHE
chmod 2755 /opt/share/www/phpgedview/places/DEU
chmod 2755 /opt/share/www/phpgedview/places/ESP
chmod 2755 /opt/share/www/phpgedview/places/FIN
chmod 2755 /opt/share/www/phpgedview/places/FRA
chmod 2755 /opt/share/www/phpgedview/places/ISR
chmod 2755 /opt/share/www/phpgedview/places/ITA
chmod 2755 /opt/share/www/phpgedview/places/TUR
chmod 2755 /opt/share/www/phpgedview/places/USA
chmod 2755 /opt/share/www/phpgedview/reports
chmod 2755 /opt/share/www/phpgedview/themes
chmod 2755 /opt/share/www/phpgedview/themes/cloudy
chmod 2755 /opt/share/www/phpgedview/themes/cloudy/images
chmod 2755 /opt/share/www/phpgedview/themes/cloudy/images/num
chmod 2755 /opt/share/www/phpgedview/themes/cloudy/images/small
chmod 2755 /opt/share/www/phpgedview/themes/minimal
chmod 2755 /opt/share/www/phpgedview/themes/minimal/images
chmod 2755 /opt/share/www/phpgedview/themes/minimal/images/small
chmod 2755 /opt/share/www/phpgedview/themes/ocean
chmod 2755 /opt/share/www/phpgedview/themes/ocean/images
chmod 2755 /opt/share/www/phpgedview/themes/simplygreen
chmod 2755 /opt/share/www/phpgedview/themes/simplygreen/images
chmod 2755 /opt/share/www/phpgedview/themes/simplygreen/images/small
chmod 2755 /opt/share/www/phpgedview/themes/standard
chmod 2755 /opt/share/www/phpgedview/themes/standard/images
chmod 2755 /opt/share/www/phpgedview/themes/wood
chmod 2755 /opt/share/www/phpgedview/themes/wood/images
chmod 2755 /opt/share/www/phpgedview/themes/wood/images/small
chmod 2755 /opt/share/www/phpgedview/themes/xenea
chmod 2755 /opt/share/www/phpgedview/themes/xenea/images
chmod 2755 /opt/share/www/phpgedview/themes/xenea/images/small
chmod 2755 /opt/share/www/phpgedview/ufpdf

Note 2 - Phpgeview seems to run just fine with apache but generates some errors when running under php-thttpd, reasons are currently unknown, errors such as http404. There may be some compatibility problems here.

Note 3 - The file config_gedcom.php has a time out setting that needs to be increased, due to the slow speed of the NSLU2 when compared to a faster processor. Increase TIME_LIMIT = "60" to TIME_LIMIT = "300".

RobHam July 2005


For my installation, the PhpGedView is working very well. I tried those servers - apache, php-thttpd and lighttpd. Apache was working well, serving all the pages OK, but was a bit slow for one concurent user (viewer) and almost unusable for more than one concurent user. php-thttpd was much faster, but occasionally, the pages were not displayed, the error 404 was the result. The best bet for me is the lighttpd server. It's faster than apache (way faster with 2 concurent users). But definitely don't expect the speed of a full grown server, yet it's perfectly usable.

Also lighttpd is not so picky about the permissions.

For setup steps I recommend the following steps:

  1. setup lighttpd and try serving static pages
  2. setup php, do install the php-fcgi package and run it as a service on a local port
  3. modify the lighttpd configuration files so as to load the fcgi module, and connect the php extension to the php service on local port. Then try a simple php page being served
  4. install and setup mysql
  5. I recommend installing phpMyAdmin, either the supplied package, or better from the sources available at www.phpmyadmin.net (it's a matter of simple configuration only). This is not required.
  6. then go to installing the PhpGedView. That should do it...
  7. not required, but I also recommend installing esmtp (or other sendmail-compatible smtp mail server), as PhpGedView tries to send email messages using sendmail command

(On my NLSU2?@266 I run mysql server, squid proxy, torrent download, lighttpd web server, PHP - so quite a lot of work for it to do)

view · edit · print · history · Last edited by Poutnik.
Originally by RobHam.
Page last modified on November 16, 2006, at 01:44 AM