Showing posts with label Mongoose. Show all posts
Showing posts with label Mongoose. Show all posts

Monday, 9 November 2015

Dev Things I Did Today, Mon 2015-11-10

Between midnight and 6am.

Bought domain names.
loveswordplay.com / ,co.uk
clubknight.co.uk / .uk
scorekeep.co.uk/ .uk
grantlove.co.uk

Set them up at 1&1 to point to the FreeDNS DNS servers
ns1.afraid.org
ns2.
ns3.
ns4.

Set FreeDNS up to point to my server at 80.192.200.150/
Port forwarding is to Stack for 80 and 443

Tests:
Chrome. DevTools mode, no caching

80.192.200.150/
clubknight.uk / .co.uk
loveswordplay.com / .co.uk

all return the Clubknight index page

grantlove.co.uk returns the 'teal' Love Swordplay index page

scorekeep.uk / .co.uk returned 404

Created a folder for scorekeep
M:\webroot\scorekeep
D:\Mongoose\webroot\scorekeep

Created index file for Scorekeep on M, and copied it to D:

Next test:

www.scorekeep.uk returns a Clubknight index page, not the scorekeep index page

www.clubknight.uk/trial does not work
clubknight.uk.to/trial does not work

Okay - redirected clubknight.co.uk and .uk.to to
./
This means they pick up the index file correctly.  But they do not pick up the /trial subdirectory properly

Tried removing all clubknight entries, so all three use the root.

All of them should point to exactly the same server, so there should be no need to rewrite those three names, all of them should behave the same way

The mongoose.conf file has been wiped.  By using the Advanced Settings facility

http://192.168.0.113/__mg_mc refers to the Mongoose Configuration file

K, working.
the php file was wrong, as was the access log

And root was at D:\Mongoose instead of D:\Mongoose\web_root

It all works now :-)  Tuesday 5:41am

Set up a PharoCloud account





Saturday, 24 October 2015

Things I did today, Sat 24/10/15

Warframe

Bringing gawainDev, gawain and trial into synch

Getting BitBucket versions of gawainDev and gawain into synch

All brought into synch with Referee 4.0.5/CK 3.9.3 from gawainDev

Getting rid of the now-irrelevant clubknight-trial directory

Moving trial to D:\

Setting up separate D: Mongoose (port 80) and M: Mongoose (port 8080)

Setting up port forward for port 8080

Performance comparison tests on the D: + SSD and M: + NAS Clubknights

Load LightTPD

Begin configuration of LightTPD on Windows.

ClubKnight Dev->Production, Mk1

There are three configurations for ClubKnight

1) Development

2) Test

3) Production

Production holds the production code in

/web_root/trial/
          /templates/  holds the .phtml files
          orgs.php
          /<orgs>/<competitions>
       



Clubknight Perforrmance on Mongoose

Clubknight is sometimes slow to response

Currently, the response comes in from the 'net,
Mongoose serves up the .php page for the pool
it requests the ancillary files from the server disk

so... net to pc, mongoose uses PHP to assemble the page, which then calls the ancillaries - .css, .js - from the NAS drives

Sometimes this can take up to 6-7 seconds total.

Firefox breaks the timings down to:
650ms to 6secs to assemble the PHP page
~300ms start to end for all the ancillaries, which all happen in parallel

Moving the files to the local SSD was meant to speed things up enormously, by doing away with the disk spin-up period in the assembly of the initial PHP web page

But....  it didn't

It is very slightly *slower* to pull from the local SSD than from the NAS drive across the intranet

So....  time to find a faster server than Mongoose?

Perhaps that will help with the PHP log append issue.

If the server becomes more responsive, then that should make any intrusion from a waiting graphic less intrusive.

A trial of LightTPD served a static file in 22ms



Clubknight server configuration, Mk2

The server is now:

M:\<etc>\gawainDev   - Dev

M:\<etc>\gawain    - Test

M: Mongoose is now on port 8080

The clubknight splash page sends the user to the D: Mongoose,
so you have to manually add the :8080 into the url again


D:\<etc>\trial  is on port 80   - Production


Monday, 12 October 2015

PHP bug, PHP upgrade, PHP configuration

The tests are showing that the writes are happening out of order, or not happening at all.

But none of them are happening partially.

Reading up on the PHP site, PHP is indeed designed so that they should either happen in full, or not happen at all.

So it's a PHP bug.

I have upgraded from PHP 5.5.10, supplied with Mongoose, to PHP 5.5.30, the latest in the 5.5 series.

I have upgraded to non-thread safe, x86

There are reports that PHP is not threadsafe whichever of the two binaries you choose.

To alter the version used, simply place the unzipped PHP folder in the Mongoose directory, and amend the mongoose config .txt file in the Mongoose directory to refer to the new PHP directory.

Tuesday, 6 October 2015

RPi - toto

Set up for VNC access

Set up for ssh access

Set up Mongoose on toto
OR
set up Apache on toto

What is the IP address?

What is the VNC port?