Author Topic: How to set up MUTE web caches  (Read 9167 times)

0 Members and 1 Guest are viewing this topic.

Offline Markus

  • Administrator
  • Elite
  • *****
  • Posts: 5740
  • Karma: +25/-8
    • View Profile
    • http://www.planetpeer.de
How to set up MUTE web caches
« on: August 11, 2004, 07:44:12 PM »
Joop has written this How to and with his permission I post it here...8)

If you plan to set up your own cache please download the package prepared by Joop :D


This WebCache is based on GWebCache version 0.7.5.2b-web1 by Hauke Dämpfling


I have modified the original GWebCache and called it MWebCache.

The modifications are:

1. MWebCache always uses the remote address for updating.

2. It only accepts the following client names: "mute", "MUTE", "test" and TEST".
   All others will be blocked.


How-To set up this WebCache.

Requirements:
1. A webserver.
2. PHP installed or being able to run PHP.


==== >  But first of all this WARNING.  < ====

I STRONGLY SUGGEST you use a CNAME to your web server such as mcache.yourwebsite.org.
Even though the files exists on www.yourwebsite.org, if you ever want to take it down
again all you'll have to do is delete the CNAME.

For this you can use services provided by:
DynDNS:    http://www.dyndns.org/
N0-IP.com  http://www.no-ip.com/
and others.

P2P clients have long memories, it takes a long time (maybe forever, users do not
remove WebCache names from their .ini files) until the name of your cache has vanished.
Otherwise you will still be hit by Cache requests after you have stopped running the WebCache.

==============================================


Still interested and want to set up a WebCache?   Ok, let's carry on:


Files in the package.
gdata.txt              = the file in which the actual data is stored
gdata.txt.lock         = file that helps to ensure the data integrity
                         (lock status) of gdata.txt
gdata-eyesonly-log.txt = the log file
index.php              = the same file as mcache.php, just to close your
                         web directory if somebody forgets to add mcache.php
                         after the name of your cache.
Licence                = GNU GENERAL PUBLIC LICENSE
mcache.php             = the actual WebCache script
Readme                 = this file


You just need to upload the cache via FTP or any other way to your server
and check the URL of the Webcache to ensure it is working properly.

Make sure the files have the proper security settings.

My .php files have 644 (u=rw,go=r) read/write for owner and read for group and other.
My .txt files have 666 (ugo=rw)    read/write for everybody.

You can change this by using the CHMOD Command.


Lots of success and thanks in advance for setting up a WebCache for mute-net.


Cheers,
Markus