next up previous Link to 'computer' page
Next: openSuSE 11.3 Up: Application Software Previous: Skype


Murtagh's General Practice Series 4th edition, CD-ROM

This textbook CD-ROM for Windows can be used with WINE/Crossover. The Windows program sets up a web-server and PHP CGI server, and serves the web-pages on port 9000. On my Crossover office setup, the `root' of the served web-pages is ~/.cxoffice/Murtagh4th/drive_c/GPSeries4e/site/www/root

It is possible to set up a lighttpd web-server to serve the web-pages natively on openSuSE linux, without using Crossover/WINE. I installed lighttpd and php5 with the YaST software management tool. I mostly followed the instructions in this tutorial to setup lighttpd and PHP.

  1. Make sure the following line is present in /etc/php5/fastcgi/php.ini (just uncomment the line by removing the semi-colon `;' if the line is already there).
    cgi.fix_pathinfo=1
  2. Edit the file /etc/lighttpd/conf.d/fastcgi.conf
    Make sure the line `server.modules += ( ``mod_fastcgi'') is uncommented.
  3. Also uncomment the fast.cgi.server = ( ... ) section in /etc/lighttpd/conf.d/fastcgi.conf. I needed to change the definition of ``bin-path'' twice in this section to ``/usr/bin/php-cgi''. The original definition asks lighttpd to search for the php binary in the same directories as the served web-pages.
  4. Define the location of the served web-pages in /etc/lighttpd/lighttpd.conf. In my case I defined :
    var.server_root = ``/home/myusername/.cxoffice/Murtagh4th/drive_c/GPSeries4e/site/www''
    and much further down the file (line 112-116) server.document-root = server_root + ``/root''
As root, lighttpd service can be started a `/etc/rc.d/lighttpd start', and the status checked by `/etc/rc.d/lighttpd status' (it should be running) and the error log file in /var/log/lighttpd/error.log

Using a web-browser to point to `http://127.0.0.1' should now show the Murtagh General Practice Series textbook. The search function will only work if PHP is working. `403 - access error' will be shown if PHP is not working. By the way, even if PHP is not working, the search function will still complain if I enter an empty search string. Problems with PHP can also be seen in /var/log/lighttpd/access.log. I also found using a test PHP script `index.php' very useful to check whether PHP is working. This script is described in the tutorial link above ...

<?php

phpinfo();

?>

This index.php is placed in the same directory as the other served web-pages and accessed by ``http://127.0.0.1/index.php''.

In my case, I asked lighttpd to serve Murtagh GP-Series on a different port, just like the Windows version. In /etc/lighttpd/lighttpd.conf I changed the line `server.port = 80' to `server.port=8080'. After that change, the Murtagh book is available on `http://127.0.0.1:8080'.


next up previous Link to 'computer' page
Next: openSuSE 11.3 Up: Application Software Previous: Skype
David Fong 2011-01-25