Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » An easy way to set up ScratchR (1.4 website) locally
- jvvg
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
HAVE to have MySQL too or is that optional?I believe it will only work with MySQL (it runs on CakePHP which I believe takes care of the database abstraction), but the VM comes with it pre-installed. Wait, do I
- dhuls
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
The ban screen doesn't appear (you get a blank screen instead)
- ethernetexplorer
-
100+ posts
An easy way to set up ScratchR (1.4 website) locally
How do I change the port from 8888 to 80? I have created a VirtualBox appliance that runs ScratchR pre-configured. To install it, simply download and unzip the file, then go into VirtualBox and click “Import Appliance”, then find the file.
The following requirements need to be met:
- 1 GB RAM (at the bare minimum)
- 64-bit processor with hardware virtualization support
- A firewall that will allow VirtualBox through
If you meet all of the requirements, then you can install as detailed above. The admin username and password are included in the machine description. To access the website, simply go to http://localhost:8888/ in your web browser while the VM is running.
You can download the file here.
Some useful things from Jeffalo:- the username and password are on the vm description in virualbox
- you can ssh into your vm via:- use sudo mysql to acess mysql shell, you'll want to know the database is called “scratchr”ssh -p 2222 apacheadmin@localhost
- setting yourself as an admin isUPDATE users SET role = 'admin' WHERE username = 'jeffalo';
Also note that the forums have their own user system. To make yourself a forum admin, first visit the forums while logged into the main site to create your forum account, then run this query, which was provided by Alphysse:UPDATE punbb_users SET group_id = '1' WHERE username = '[your username]';
- DifferentDance8
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
Can you please host the file on mediafire? It's the only file-hosting website that fully works for me. Other than assets, which I don't think works for non-images now.
- jvvg
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
That should be in the VirtualBox port forwarding settings under “Networking” (for the specific machine). How do I change the port from 8888 to 80?
I'm not going to host a file that's over a gigabyte in multiple different places, sorry. Can you please host the file on mediafire? It's the only file-hosting website that fully works for me. Other than assets, which I don't think works for non-images now.
- OldGuy111
-
18 posts
An easy way to set up ScratchR (1.4 website) locally
Unnecessary necroposting.
Last edited by OldGuy111 (Nov. 14, 2022 14:47:30)
- imsorryscratch564
-
25 posts
An easy way to set up ScratchR (1.4 website) locally
how to make me admin on it?????
- Scratch137
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
(#47)The original post has information about that.
how to make me admin on it?????
- 50_scratch_tabs
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
For anyone who saw this post and wants to try to create their own, Assembla can be cloned without an account with username and password “nobody”
- 50_scratch_tabs
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
You should explain how to switch to the database for no-SQL users:
USE scratchr;
- jvvg
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
The entire app is built around a relational database, switching it to NoSQL would require a fundamental rewrite of a bunch of stuff, which isn't really the point of this. You should explain how to switch to the database for no-SQL users:USE scratchr;
- 50_scratch_tabs
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
(#51)I'm sorry, is NoSQL the name of a thing? I just meant clarifying it for people who aren't used to or don't know how to use SQL.
The entire app is built around a relational database, switching it to NoSQL would require a fundamental rewrite of a bunch of stuff, which isn't really the point of this.
I just meant clarify the command. You say “the database is called scratchr” but you don't explain how to get to the database before you update the users.
Also, whenever I log out, I lose forum admin. Any idea why?
Last edited by 50_scratch_tabs (Oct. 27, 2024 03:09:31)
- ajskateboarder
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
Usually when people say something like “NoSQL” they're talking about document-oriented databases like MongoDB(#51)I'm sorry, is NoSQL the name of a thing? I just meant clarifying it for people who aren't used to or don't know how to use SQL.
The entire app is built around a relational database, switching it to NoSQL would require a fundamental rewrite of a bunch of stuff, which isn't really the point of this.
- 50_scratch_tabs
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
(#53)Ok I just meant to clarify for people who aren't used to SQL.Usually when people say something like “NoSQL” they're talking about document-oriented databases like MongoDB(#51)I'm sorry, is NoSQL the name of a thing? I just meant clarifying it for people who aren't used to or don't know how to use SQL.
The entire app is built around a relational database, switching it to NoSQL would require a fundamental rewrite of a bunch of stuff, which isn't really the point of this.
- 8to16
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
was checking out the forums and found this:

i got here by Welcome to Jacob's copy of the Scratch website. I'm not sure how you got here…USING YOUR VM!

- 8to16
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
how do i change the keyboard layout? i'm using a british keyboard layout and the VM seems to be using an american layout.
Nvm figured it out, for anyone who wants to ask this question in the future, you can do it by typing
Nvm figured it out, for anyone who wants to ask this question in the future, you can do it by typing
sudo dpkg-reconfigure keyboard-configuration
Last edited by 8to16 (Oct. 27, 2024 17:36:47)
- 8to16
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
i accidentally banned myself from the server, and can't figure out how to unban. even messing with a banned users table in phpmyadmin (yes the VM has that) doesn't get me anywhere. how to fix? nvm there's something else you had to change.
Last edited by 8to16 (Oct. 27, 2024 18:22:46)
- 8to16
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
apparently can't share projects, going to the share page just gives a 404.


- jvvg
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
Ultimately I can't teach every aspect of a complex system in a forum topic. This requires some amount of technical knowledge to get up and running, including knowledge about how to use MySQL. I also haven't looked at the source code for ScratchR in years, so I have no idea why you lose forum admin.(#51)I'm sorry, is NoSQL the name of a thing? I just meant clarifying it for people who aren't used to or don't know how to use SQL.
The entire app is built around a relational database, switching it to NoSQL would require a fundamental rewrite of a bunch of stuff, which isn't really the point of this.
I just meant clarify the command. You say “the database is called scratchr” but you don't explain how to get to the database before you update the users.
Also, whenever I log out, I lose forum admin. Any idea why?
- 50_scratch_tabs
-
1000+ posts
An easy way to set up ScratchR (1.4 website) locally
(#59)Ok, thanks. I'll start looking into the source myself then, I guess.
Ultimately I can't teach every aspect of a complex system in a forum topic. This requires some amount of technical knowledge to get up and running, including knowledge about how to use MySQL. I also haven't looked at the source code for ScratchR in years, so I have no idea why you lose forum admin.
- Discussion Forums
- » Advanced Topics
-
» An easy way to set up ScratchR (1.4 website) locally