<HTML dir=ltr><HEAD><TITLE>RE: [Xerte] Toolkit template management errors</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18294" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText13727 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>The XAMPP install is PC only really, if it doesn't say that I should put it in.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>The root of the installer needs to writable in case you use a htacess or the database.php. The installer lists the security settings you need to install, and those that should remain post installation.</FONT></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Fred Riley<BR><B>Sent:</B> Thu 15/10/2009 16:13<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Toolkit template management errors<BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>As a follow-up on the message below posted a couple of days ago about<BR>Toolkits+XAMPP on Windoze, I've just now downloaded the package to a<BR>Macbook running OS/X with XAMPP for Mac, and after one permissions tweak<BR>it worked fine. You have to set the installation directory to be<BR>writeable by the web server, which would be insecure online but won't<BR>matter on a localhost installation. Without this tweak I got permissions<BR>errors on setup.<BR><BR>Lines 109-116 in setup/xampp.php write to, and rename, the files<BR>database.php, index.php, and demo.txt. This isn't an issue on Windoze as<BR>users are usually logged in with admin rights (which is why it's so<BR>damned insecure, but that's another rant, another day).<BR><BR>However, on trying to open management.php as below the 'slash' errors<BR>recurred, with the same warning as below, so plainly the path<BR>"C:\xampp\htdocs\xertetoolkits\" is hardwired into the mySQL database,<BR>and a quick check in phpMyAdmin showed that this is held in the fields<BR>sitedetails.import_path and sitedetails.root_file_path. If it's felt<BR>that it's worth catering for Mac localhost installations it might be<BR>worth tweaking this. I didn't really want to tweak this to Mac paths as<BR>I was only doing a test.<BR><BR>That's all. Boring, or what? ;)<BR><BR>Cheers<BR><BR>Fred<BR><BR>Fred Riley<BR>Learning Technologist<BR>School of Nursing, Midwifery and Physiotherapy, University of Nottingham<BR>Vcard: <A href="http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf">http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf</A> <BR><BR>> -----Original Message-----<BR>> From: xerte-bounces@lists.nottingham.ac.uk<BR>> [<A href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>] On Behalf Of Fred Riley<BR>> Sent: 13 October 2009 16:38<BR>> To: Xerte discussion list<BR>> Subject: [Xerte] Toolkit template management errors<BR>><BR>> I've got a .xtp file which Julian passed me, which I was<BR>> after opening in Toolkits. When I was passed the file I was<BR>> told that it could be installed in management.php. I've<BR>> installed Toolkits on my hard disk which had XAMPP on it, and<BR>> have shoved it in localhost/xertetoolkits. I then tried the<BR>> URL <A href="http://localhost/xertetoolkits/management.php">http://localhost/xertetoolkits/management.php</A> and got two<BR>> include errors, one of which is below:<BR>><BR>> Warning:<BR>> file_get_contents(C:\xampp\htdocs\xertetoolkits\website_code/l<BR>> ogin_top)<BR>> [function.file-get-contents]: failed to open stream: No such<BR>> file or directory in<BR>> C:\devt\xampp\htdocs\xertetoolkits\management.php on line<BR>> 42<BR>><BR>> The reason for this is obvious: there's a forward slash<BR>> before the include file name. Looking in management.php on<BR>> line 42 there are just the filenames login_top and<BR>> login_bottom mentioned, so the path info must be coming from<BR>> elsewhere - where? Or is it, as I suspect, that the<BR>> installation path is being stored somewhere without a<BR>> trailing slash, so Windoze is shoving a forward slash in to<BR>> complete it?<BR>><BR>> Is there any written documentation for Toolkits, in<BR>> particular on developing and editing templates? I can see the<BR>> online demo but no docs in either the installation or the<BR>> Xerte site, though maybe I've not looked for long enough.<BR>><BR>> Cheers<BR>><BR>> Fred<BR>><BR>> Fred Riley<BR>> Learning Technologist<BR>> School of Nursing, Midwifery and Physiotherapy, University of<BR>> Nottingham<BR>> Vcard: <A href="http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf">http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf</A><BR>> _______________________________________________<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> <A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR>><BR>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></FONT></P></DIV></BODY></HTML>