I got it downloaded but the steps are confusing. Here they are. (I am using windows on WAMP server.)
Instructions wrote:
***************************
READ THE LICENSE.TXT FIRST
***************************
REQUIREMENTS
Apache
MySQL
PHP
memcached
JRE
php-gd
php-pecl-memcache
php-eaccelerator
STEPS
1. Install the latest stable versions of Apache, MySQL and PHP and Memcache
(XAMP or WAMP are good options for Windows that come with all of them).
Apache needs mod-rewrite enabled and PHP needs php5-mysql.
On Ubuntu, you can do this:
sudo tasksel install lamp-server
sudo apt-get install php5-mysql
To enable mod-rewrite:
sudo a2enmod rewrite
(Then you need to restart apache: /etc/init.d/apache2 restart)
2. Install an SVN client on your computer
(for Windows I recommend TortoiseSVN)
Ubuntu: apt-get install svn
3. Do an "svn checkout" of our code:
svn co http://svn.assembla.com/svn/scratchr
4. Create a MySQL database based on sql/db-structure.sql:
First create a database, then replace name_of_database with the name your database.
mysql -u root -p name_of_database < app/config/sql/db-structure.sql
Also import all the data and storedprocedures from sql/db-data.sql and sql/db-sp.sql
mysql -u root -p name_of_database < app/config/sql/db-data.sql
mysql -u root -p name_of_database < app/config/sql/db-sp.sql
Using commands like those used above, execute all SQL files you find under app/config/sql/updates one by one from oldest to newest. You can sort all the sql files by filename to maintain the right order.
5. Based on app/config/database.php.default create
configuration file called app/config/database.php with the
appropriate access info for your database.
6. Install memcached:
apt-get install memcached memcache(for Ubuntu)
Enable the memcached extension for PHP
sudo apt-get install php5-memcached php5-memcache
Start memcached daemon:
memcached -d
Set your memcache configuration in app/config/bootstrap.php:
define("MEMCACHE_SERVER", 'localhost'); //memcache server
define("MEMCACHE_PORT", 11211); //memcache port
7. Configure Apache to point to app/webroot
You can do this by editing:
/etc/apache2/sites-available/default
8. Make app/tmp/ directory writable
Ubuntu: sudo chmod -r 777 app/tmp
9. Make app/webroot/static directory writable
Ubuntu: sudo chmod -r 777 app/tmp
10. Set AllowOverride All in your apache vhost configuration. (/etc/apache2/sites-available/default)
If you are setting it up for your localhost, then it should look something like this:
<VirtualHost 127.0.0.1>
ServerName scratch.local
ServerAlias www.scratch.local
DocumentRoot [PATH TO SCRATCHR FILES]scratchr/app/webroot/
<Directory />
Options FollowSymLinks
AllowOverride All
RewriteEngine On
Options -Multiviews FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+)_(sm|med).png$ static/icons/project/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+).sb$ static/misc/default.sb [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/gallery/(.*)$ static/icons/gallery/default.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).jpg$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).png$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
RewriteRule .*\.svn/.* - [F]
</Directory>
</VirtualHost>
11. It is recommended that you increase your maximum memory limit for php to 32MB.
You can do it by changing the memory_limit parameter in your php.ini file. (As of Lucid, the default value is 128 MB, so you may not need to change it.)
12. You can configure email addresses and other constants from app/config/bootstrap.php
13. Send an email to andresmh@media.mit.edu letting us know that you have
succeded and how you're planning to use the site, we'll be very happy to hear from you.
Don't forget to read the LICENSE.TXT!!!
If you make any improvements to the source code let us know so we
can all benefit from your improvements.
Please help! The database thing is confusing.
Offline
PythonLibrary wrote:
I got it downloaded but the steps are confusing. Here they are. (I am using windows on WAMP server.)
Instructions wrote:
***************************
READ THE LICENSE.TXT FIRST
***************************
REQUIREMENTS
Apache
MySQL
PHP
memcached
JRE
php-gd
php-pecl-memcache
php-eaccelerator
STEPS
1. Install the latest stable versions of Apache, MySQL and PHP and Memcache
(XAMP or WAMP are good options for Windows that come with all of them).
Apache needs mod-rewrite enabled and PHP needs php5-mysql.
On Ubuntu, you can do this:
sudo tasksel install lamp-server
sudo apt-get install php5-mysql
To enable mod-rewrite:
sudo a2enmod rewrite
(Then you need to restart apache: /etc/init.d/apache2 restart)
2. Install an SVN client on your computer
(for Windows I recommend TortoiseSVN)
Ubuntu: apt-get install svn
3. Do an "svn checkout" of our code:
svn co http://svn.assembla.com/svn/scratchr
4. Create a MySQL database based on sql/db-structure.sql:
First create a database, then replace name_of_database with the name your database.
mysql -u root -p name_of_database < app/config/sql/db-structure.sql
Also import all the data and storedprocedures from sql/db-data.sql and sql/db-sp.sql
mysql -u root -p name_of_database < app/config/sql/db-data.sql
mysql -u root -p name_of_database < app/config/sql/db-sp.sql
Using commands like those used above, execute all SQL files you find under app/config/sql/updates one by one from oldest to newest. You can sort all the sql files by filename to maintain the right order.
5. Based on app/config/database.php.default create
configuration file called app/config/database.php with the
appropriate access info for your database.
6. Install memcached:
apt-get install memcached memcache(for Ubuntu)
Enable the memcached extension for PHP
sudo apt-get install php5-memcached php5-memcache
Start memcached daemon:
memcached -d
Set your memcache configuration in app/config/bootstrap.php:
define("MEMCACHE_SERVER", 'localhost'); //memcache server
define("MEMCACHE_PORT", 11211); //memcache port
7. Configure Apache to point to app/webroot
You can do this by editing:
/etc/apache2/sites-available/default
8. Make app/tmp/ directory writable
Ubuntu: sudo chmod -r 777 app/tmp
9. Make app/webroot/static directory writable
Ubuntu: sudo chmod -r 777 app/tmp
10. Set AllowOverride All in your apache vhost configuration. (/etc/apache2/sites-available/default)
If you are setting it up for your localhost, then it should look something like this:
<VirtualHost 127.0.0.1>
ServerName scratch.local
ServerAlias www.scratch.local
DocumentRoot [PATH TO SCRATCHR FILES]scratchr/app/webroot/
<Directory />
Options FollowSymLinks
AllowOverride All
RewriteEngine On
Options -Multiviews FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+)_(sm|med).png$ static/icons/project/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+).sb$ static/misc/default.sb [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/gallery/(.*)$ static/icons/gallery/default.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).jpg$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).png$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
RewriteRule .*\.svn/.* - [F]
</Directory>
</VirtualHost>
11. It is recommended that you increase your maximum memory limit for php to 32MB.
You can do it by changing the memory_limit parameter in your php.ini file. (As of Lucid, the default value is 128 MB, so you may not need to change it.)
12. You can configure email addresses and other constants from app/config/bootstrap.php
13. Send an email to andresmh@media.mit.edu letting us know that you have
succeded and how you're planning to use the site, we'll be very happy to hear from you.
Don't forget to read the LICENSE.TXT!!!
If you make any improvements to the source code let us know so we
can all benefit from your improvements.Please help! The database thing is confusing.
I don't know. My brother's planning to do something with this. I'll look in to it.
Offline
scratcher7_13 wrote:
PythonLibrary wrote:
I got it downloaded but the steps are confusing. Here they are. (I am using windows on WAMP server.)
Instructions wrote:
***************************
READ THE LICENSE.TXT FIRST
***************************
REQUIREMENTS
Apache
MySQL
PHP
memcached
JRE
php-gd
php-pecl-memcache
php-eaccelerator
STEPS
1. Install the latest stable versions of Apache, MySQL and PHP and Memcache
(XAMP or WAMP are good options for Windows that come with all of them).
Apache needs mod-rewrite enabled and PHP needs php5-mysql.
On Ubuntu, you can do this:
sudo tasksel install lamp-server
sudo apt-get install php5-mysql
To enable mod-rewrite:
sudo a2enmod rewrite
(Then you need to restart apache: /etc/init.d/apache2 restart)
2. Install an SVN client on your computer
(for Windows I recommend TortoiseSVN)
Ubuntu: apt-get install svn
3. Do an "svn checkout" of our code:
svn co http://svn.assembla.com/svn/scratchr
4. Create a MySQL database based on sql/db-structure.sql:
First create a database, then replace name_of_database with the name your database.
mysql -u root -p name_of_database < app/config/sql/db-structure.sql
Also import all the data and storedprocedures from sql/db-data.sql and sql/db-sp.sql
mysql -u root -p name_of_database < app/config/sql/db-data.sql
mysql -u root -p name_of_database < app/config/sql/db-sp.sql
Using commands like those used above, execute all SQL files you find under app/config/sql/updates one by one from oldest to newest. You can sort all the sql files by filename to maintain the right order.
5. Based on app/config/database.php.default create
configuration file called app/config/database.php with the
appropriate access info for your database.
6. Install memcached:
apt-get install memcached memcache(for Ubuntu)
Enable the memcached extension for PHP
sudo apt-get install php5-memcached php5-memcache
Start memcached daemon:
memcached -d
Set your memcache configuration in app/config/bootstrap.php:
define("MEMCACHE_SERVER", 'localhost'); //memcache server
define("MEMCACHE_PORT", 11211); //memcache port
7. Configure Apache to point to app/webroot
You can do this by editing:
/etc/apache2/sites-available/default
8. Make app/tmp/ directory writable
Ubuntu: sudo chmod -r 777 app/tmp
9. Make app/webroot/static directory writable
Ubuntu: sudo chmod -r 777 app/tmp
10. Set AllowOverride All in your apache vhost configuration. (/etc/apache2/sites-available/default)
If you are setting it up for your localhost, then it should look something like this:
<VirtualHost 127.0.0.1>
ServerName scratch.local
ServerAlias www.scratch.local
DocumentRoot [PATH TO SCRATCHR FILES]scratchr/app/webroot/
<Directory />
Options FollowSymLinks
AllowOverride All
RewriteEngine On
Options -Multiviews FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+)_(sm|med).png$ static/icons/project/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/projects/.+/([0-9]+).sb$ static/misc/default.sb [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/gallery/(.*)$ static/icons/gallery/default.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).jpg$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^static/icons/buddy/([0-9]*)_(sm|med).png$ static/icons/buddy/default_$2.jpg [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
RewriteRule .*\.svn/.* - [F]
</Directory>
</VirtualHost>
11. It is recommended that you increase your maximum memory limit for php to 32MB.
You can do it by changing the memory_limit parameter in your php.ini file. (As of Lucid, the default value is 128 MB, so you may not need to change it.)
12. You can configure email addresses and other constants from app/config/bootstrap.php
13. Send an email to andresmh@media.mit.edu letting us know that you have
succeded and how you're planning to use the site, we'll be very happy to hear from you.
Don't forget to read the LICENSE.TXT!!!
If you make any improvements to the source code let us know so we
can all benefit from your improvements.Please help! The database thing is confusing.
I don't know. My brother's planning to do something with this. I'll look in to it.
I REALLY need help. Someone from the Scratch team (ands (I don't know the name) you really need to help me!)
Offline
andresmh.
Offline
scratcher7_13 wrote:
andresmh.
Yeah. When is your brother planning to do this? If he gets it right, He might be able to help me!
Offline
As soon as his Scratch Mod is finished.
Offline
Actually, right now.
Offline
scratcher7_13 wrote:
Actually, right now.
Offline
PythonLibrary wrote:
scratcher7_13 wrote:
Actually, right now.
![]()
Apparently, you need a server to do it (which you have), but my dad is helping put together a share code for Scratch Mod websites.
Offline
You need to install all the things on the list, first of all.
Offline
scratcher7_13 wrote:
You need to install all the things on the list, first of all.
It said WAMP had all of that. Wait, do I need the cake thing?
Offline
scratcher7_13 wrote:
You need to install all the things on the list, first of all.
So, what is going on with your ScratchR?
Offline
PythonLibrary wrote:
scratcher7_13 wrote:
You need to install all the things on the list, first of all.
So, what is going on with your ScratchR?
My brother doesn't have a server for it.
Offline
Here is the webpage:
WAMP Server wrote:
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\basics.php on line 1101
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\inflector.php on line 67
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\configure.php on line 124
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\configure.php on line 214
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\configure.php on line 888
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\configure.php on line 928
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\file.php on line 90
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
2 2.4574 1631488 require( 'C:\wamp\www\scratchR\app\webroot\index.php' ) ..\index.php:63
3 2.5069 1644504 include( 'C:\wamp\www\scratchR\cake\bootstrap.php' ) ..\index.php:84
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\cache.php on line 68
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
2 2.4574 1631488 require( 'C:\wamp\www\scratchR\app\webroot\index.php' ) ..\index.php:63
3 2.5069 1644504 include( 'C:\wamp\www\scratchR\cake\bootstrap.php' ) ..\index.php:84
( ! ) Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\scratchR\cake\libs\cache.php on line 151
Call Stack
# Time Memory Function Location
1 0.2747 381280 {main}( ) ..\index.php:0
2 2.4574 1631488 require( 'C:\wamp\www\scratchR\app\webroot\index.php' ) ..\index.php:63
3 2.5069 1644504 include( 'C:\wamp\www\scratchR\cake\bootstrap.php' ) ..\index.php:84
Any help?
Offline
To get it working I had to inject flags into the files to make them not output Deprecated errors. Even then, because of the version difference between the server software ScratchR is designed to run on and the latest versions of php and apache a lot of elements have to be modified to get them working again, and the scratch program has to be modified to allow upload to the site. I was a total newbie in php, html, css, operating server software and squeak and I managed it, and am currently in the process of redesigning parts of scratchR for my website.
Here are a few useful google searches:
CakePHP Deprecated
Memcached PHP 5.3
While fixing broken features it is useful to know that <?php tags should be used over <? and <?= which is <?php echo .
Good Luck.
Offline
can I just say that on your website you COMPLETELY stole the blender (http://blender.org) logo and you didn't even do it well.
I would guess its copyrighted material, and whenever I see your site I won't think of you just of the fact that you nicked the blender logo.
Sorry for being so harsh, but I felt it was necessary.
Rum
Offline
RUMCHEERYPOOPOO wrote:
can I just say that on your website you COMPLETELY stole the blender (http://blender.org) logo and you didn't even do it well.
I would guess its copyrighted material, and whenever I see your site I won't think of you just of the fact that you nicked the blender logo.
Sorry for being so harsh, but I felt it was necessary.
Rum
Urm
What are you talking about? I didn't even share my website.
Offline
JimBobster wrote:
RUMCHEERYPOOPOO wrote:
can I just say that on your website you COMPLETELY stole the blender (http://blender.org) logo and you didn't even do it well.
I would guess its copyrighted material, and whenever I see your site I won't think of you just of the fact that you nicked the blender logo.
Sorry for being so harsh, but I felt it was necessary.
RumUrm
What are you talking about? I didn't even share my website.
You made another account?
Offline
scratcher7_13 wrote:
JimBobster wrote:
RUMCHEERYPOOPOO wrote:
can I just say that on your website you COMPLETELY stole the blender (http://blender.org) logo and you didn't even do it well.
I would guess its copyrighted material, and whenever I see your site I won't think of you just of the fact that you nicked the blender logo.
Sorry for being so harsh, but I felt it was necessary.
RumUrm
What are you talking about? I didn't even share my website.You made another account?
What?
Offline
lol what I mean the pythonlibrary website
Offline
RUMCHEERYPOOPOO wrote:
lol what I mean the pythonlibrary website
![]()
It was made in Python (Blender) and I used that for the logo.
Offline