[Xerte-dev] Re: Coding problem with LItESPEED Server

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Feb 11 09:50:39 GMT 2014


I would love to see the session_id problem fixed. It happens pretty much every single time I log in, and it’s frustrating.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of thomas.rochford at jiscadvance.ac.uk
Sent: 10 February 2014 23:05
To: xerte at pgogywebstuff.com; xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: Coding problem with LItESPEED Server

Thank you all very much for this advice. I’ll get back on the case tomorrow. Could that also account for another problem with the session_id not set message?

Kindest Regards,
Thomas
==========================================================
Thomas Rochford  |  e-Learning Advisor  |  Jisc RSC Eastern
Tel: 01223 564749 |  Mobile: 07500 669002  |  Skype: cambridge.serendipity
Email: thomas.rochford at jiscadvance.ac.uk<mailto:thomas.rochford at jiscadvance.ac.uk>  |  Web: http://www.jiscrsc.ac.uk/eastern
Cambridge Serendipity, 35 Gough Way, Cambridge, CB3 9LN
For the full range of RSC UK events, resources and blog, visit http://www.jiscrsc.ac.uk

From: Pat L (pgogy)<mailto:xerte at pgogywebstuff.com>
Sent: ‎Monday‎, ‎10‎ ‎February‎ ‎2014 ‎22‎:‎18
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>

it isn't apache it's htaccess - just set apache to be false on the management side

On Mon, Feb 10, 2014 at 9:51 PM, Thomas Rochford (Jiscadvance) <thomas.rochford at jiscadvance.ac.uk<mailto:thomas.rochford at jiscadvance.ac.uk>> wrote:

Good Evening,



I felt I ought to alert you to a coding problem/bug which makes toolkits inoperable when using the LITESPEED Server. This claims to be a faster version of Apache and is in  use on a number of hosting sites, in the current case, EZPZ which is a very low cost moodle hosting service. I don’t know enough about this to understand the problem fully, but the following are the symptoms,



When selecting a tab from the top of the folder management page, e.g. selecting ‘Workspace’ and then ‘properties’ the Litespeed server throws a wobbly (i.e. a 404 message)  because it can’t find “/toolkits/workspaceproperties”. Looking at the code below, this would seem to be because XOT seems to think it’s dealing with an apache server. I have commented out the offending sections and it now correctly displays the Workspace Properties window.


        case "workspaceproperties": if(site_apache=="true"){
/*            return url;
        }else{ */
              return url + ".php"

        }



Obviously this is only a one-off fix, but I guess the test for ‘site_apache’ needs to be rewritten so that I doesn’t include LITESPEED. Phpinfo gives



‘_SERVER["SERVER_SOFTWARE"]              LiteSpeed’



For the Litespeed Server and



‘_SERVER["SERVER_SOFTWARE"]              Apache’



For  the Apache one, so perhaps that could be tested. Alternatively the headers return by the Litespeed server also make it plain as shown below



HTTP/1.1 200 OK

Date: Mon, 10 Feb 2014 21:44:13 GMT

Server: LiteSpeed

Connection: close

X-Powered-By: PHP/5.3.26

Set-Cookie: PHPSESSID=1535f76d11842885a64c9705a6d42565; path=/

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Content-Type: text/html

Content-Length: 2719



Kindest regards, Thomas







This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20140211/ca6c8135/attachment-0001.html>


More information about the Xerte-dev mailing list