Task force TalkChess access

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27788
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Task force TalkChess access

Post by hgm »

In order to solve the access problem, I want to do some experiments on a clone of the forum. This has become possible, now that we obtained ftp access to the talkchess.com server a few days ago. This is a call for members who think they can contribute expertise that would be helpful, to assemble a 'task force' for solving this problem.

My idea for approaching this problem consists of the following steps:
1) borrow or rent a server machine or VPS running some Linux version.
2) install the MySQL database software on this system.
3) Install the latest phpBB on this system.
4) Load a backup of the TalkChess forum at talkchess.com into this phpBB on the other server.

The first goal is to establish if we can achieve such a migration without loss of data or other problems. If we succeed, we can use that clone of the forum to experiment on, for the purpose of making it more secure against hacker attacks. In the mean time, the forum here can keep running as always.

All ideas on this are welcome.
User avatar
AdminX
Posts: 6339
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: Task force TalkChess access

Post by AdminX »

Or just Create a VM and place it in the DMZ of your network, since it is for testing only.
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Frank Quisinsky
Posts: 6808
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Task force TalkChess access

Post by Frank Quisinsky »

I have a problem with the name "Task force".
"Group of sleeping pills" I like more.
Damir
Posts: 2801
Joined: Mon Feb 11, 2008 3:53 pm
Location: Denmark
Full name: Damir Desevac

Re: Task force TalkChess access

Post by Damir »

I think '' Counter Strike'' is better... :lol: :lol:
amanjpro
Posts: 883
Joined: Sat Mar 13, 2021 1:47 am
Full name: Amanj Sherwany

Re: Task force TalkChess access

Post by amanjpro »

hgm wrote: Mon Sep 06, 2021 3:46 pm In order to solve the access problem, I want to do some experiments on a clone of the forum. This has become possible, now that we obtained ftp access to the talkchess.com server a few days ago. This is a call for members who think they can contribute expertise that would be helpful, to assemble a 'task force' for solving this problem.

My idea for approaching this problem consists of the following steps:
1) borrow or rent a server machine or VPS running some Linux version.
2) install the MySQL database software on this system.
3) Install the latest phpBB on this system.
4) Load a backup of the TalkChess forum at talkchess.com into this phpBB on the other server.

The first goal is to establish if we can achieve such a migration without loss of data or other problems. If we succeed, we can use that clone of the forum to experiment on, for the purpose of making it more secure against hacker attacks. In the mean time, the forum here can keep running as always.

All ideas on this are welcome.
How big is the database? Also how do we check if there is no dataloss, what is the criteria?
User avatar
hgm
Posts: 27788
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Task force TalkChess access

Post by hgm »

The (gzipped) database was 203MB.

I have now rented a VPS, and installed Ubunto 20.04 plus the Light TPD HTTP server on it. The website still only consists of the standard welcome page, and can be accessed at http://212.114.109.12 . It is accessible through ssh and ftp. I have already installed MySQL, but have not configured it in any way yet.

Assistance from someone with MySQL experience would be appreciated. I will continue with this tomorrow.
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Task force TalkChess access

Post by Rebel »

amanjpro wrote: Mon Sep 06, 2021 9:53 pm
hgm wrote: Mon Sep 06, 2021 3:46 pm In order to solve the access problem, I want to do some experiments on a clone of the forum. This has become possible, now that we obtained ftp access to the talkchess.com server a few days ago. This is a call for members who think they can contribute expertise that would be helpful, to assemble a 'task force' for solving this problem.

My idea for approaching this problem consists of the following steps:
1) borrow or rent a server machine or VPS running some Linux version.
2) install the MySQL database software on this system.
3) Install the latest phpBB on this system.
4) Load a backup of the TalkChess forum at talkchess.com into this phpBB on the other server.

The first goal is to establish if we can achieve such a migration without loss of data or other problems. If we succeed, we can use that clone of the forum to experiment on, for the purpose of making it more secure against hacker attacks. In the mean time, the forum here can keep running as always.

All ideas on this are welcome.
How big is the database? Also how do we check if there is no dataloss, what is the criteria?
Unzipped about 1.4Gb
90% of coding is debugging, the other 10% is writing bugs.
smatovic
Posts: 2639
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Task force TalkChess access

Post by smatovic »

hgm wrote: Mon Sep 06, 2021 11:15 pm The (gzipped) database was 203MB.

I have now rented a VPS, and installed Ubunto 20.04 plus the Light TPD HTTP server on it. The website still only consists of the standard welcome page, and can be accessed at http://212.114.109.12 . It is accessible through ssh and ftp. I have already installed MySQL, but have not configured it in any way yet.

Assistance from someone with MySQL experience would be appreciated. I will continue with this tomorrow.
I have some experience as webprogrammer and sysadmin but my skillset is pretty much outdated and I am not into the current best practices...with phpBB you want to run a LAMP system, Linux+Apache+MySQL+PHP, the install is pretty easy on Ubuntu with apt-get, there are howtos out there in web, then you use the mysql command-line-tool to import/export SQL dumps, and some webinterface like phpmyadmin to manage the DB, something like this...

1. Create a subdomain like test1.mydomain.com and point to your host's IP
2. install Apache+mod-php+MySQL
3. setup a virtual host (a site) in Apache for the domain which directs to a directory
4. create database (with the password from the phpBB config) and import SQL dump
5. copy the current phpBB files to the directory
6. update phpBB config file with new domain

that should be already the basics for the migration of the current phpBB TC.

If you want to use a newer than current phpBB the question is open if the DB design changed, so a simple SQL import won't work, and you have to setup the current version and then maybe update, or to use/write DB import scripts by your own.

With phpmyadmin you can create and config databases for MySQL, you can also import and export dumps, but these are limited in execution time and also in size (php config), so you might have to stick to the mysql command line tool. phpmyadmin should be a password protected area (via .htacess for example) on your host.

--
Srdja
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Task force TalkChess access

Post by Rebel »

Srdja, do you understand PHP?

This is an example I found in the viewforum.php

Code: Select all

// Permissions check
if (!$auth->acl_gets('f_list', 'f_list_topics', 'f_read', $forum_id) || ($forum_data['forum_type'] == FORUM_LINK && $forum_data['forum_link'] && !$auth->acl_get('f_read', $forum_id)))
{
	if ($user->data['user_id'] != ANONYMOUS)
	{
		send_status_line(403, 'Forbidden');
		trigger_error('SORRY_AUTH_READ');
	}

	login_box('', $user->lang['LOGIN_VIEWFORUM']);
}
Note the notorious 403 - Forbidden

This type of code is also found in other crucial php files.
90% of coding is debugging, the other 10% is writing bugs.
PK
Posts: 893
Joined: Mon Jan 15, 2007 11:23 am
Location: Warsza

Re: Task force TalkChess access

Post by PK »

Rebel wrote: Tue Sep 07, 2021 11:16 am This is an example I found in the viewforum.php
I didn't read PHP for ages, but this snippet does not contain information how $user and all its fields are filled. The inner if clause depends on these variables. Also, it seems that code is blocking access for users who are *not* ANONYMOUS, whatever it means and wherever it is set.

In the outer if clause $auth->acl is probably access control list and this is where I'd start looking for the reason of blockage.

Reading this webpage may be of help: https://community-auth.com/ (not sure if this exact auth is used, probably not)
Last edited by PK on Tue Sep 07, 2021 11:51 am, edited 1 time in total.