This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#201 2012-08-23 17:09:37

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

jvvg wrote:

ProgrammingFreak wrote:

Okay I fired xampp_stop.exe and it said 'Can't find Apache process #1500.'

Hmm. Try running task manager as an administrator and killing the process.

I think I got it working again. I used the 3.0 beta of the Control Panel and stopped it.

Offline

 

#202 2012-08-23 17:12:10

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

ProgrammingFreak wrote:

jvvg wrote:

ProgrammingFreak wrote:

Okay I fired xampp_stop.exe and it said 'Can't find Apache process #1500.'

Hmm. Try running task manager as an administrator and killing the process.

I think I got it working again. I used the 3.0 beta of the Control Panel and stopped it.

Ok, that's good.

[offtopic]
If you get it working, the admin panel is tons of fun.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#203 2012-08-23 17:16:39

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

Alright, I'm on step 6. I hope this goes smoothly.  big_smile
Awesome. :33

Offline

 

#204 2012-08-23 17:19:37

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

ProgrammingFreak wrote:

Alright, I'm on step 6. I hope this goes smoothly.  big_smile
Awesome. :33

I finished that guide months ago, and then discovered that the database password was wrong.  tongue


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#205 2012-08-23 17:26:52

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

I still get these errors:

Code:

Strict Standards: Redefining already defined constructor for class Object in C:\xampp\htdocs\Scratchr\cake\libs\object.php on line 65

Strict Standards: Non-static method Configure::getInstance() should not be called statically in C:\xampp\htdocs\Scratchr\cake\bootstrap.php on line 46
OMG. Scratch could not connect to memcached. Please try again later.

I used the htaccess code in the guide:

Code:

            <IfModule mod_rewrite.c>
                RewriteEngine on
                RewriteRule    ^$ app/webroot/    [L]
                RewriteRule    (.*) app/webroot/$1 [L]
            </IfModule>
            php_value error_reporting 6143

Offline

 

#206 2012-08-23 19:00:31

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

You need to go to the file where the errors are mentioned and replace all &= with = signs.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#207 2012-08-23 20:49:25

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

jvvg wrote:

You need to go to the file where the errors are mentioned and replace all &= with = signs.

Actually, those are the two that you don't do that with and you just hide with error hiding.


Posts: 20000 - Show all posts

Offline

 

#208 2012-08-23 21:03:13

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

veggieman001 wrote:

jvvg wrote:

You need to go to the file where the errors are mentioned and replace all &= with = signs.

Actually, those are the two that you don't do that with and you just hide with error hiding.

Oh, can you add something to your guide?
You should add something along the lines of:
"To make your user account an admin, go into phpMyAdmin, find the users table, look for the entry for your user, edit it, and set the role to admin".


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#209 2012-08-23 23:05:54

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

veggieman001 wrote:

jvvg wrote:

You need to go to the file where the errors are mentioned and replace all &= with = signs.

Actually, those are the two that you don't do that with and you just hide with error hiding.

Could you help, because it isn't working.  hmm

Offline

 

#210 2012-08-23 23:09:55

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

jvvg wrote:

veggieman001 wrote:

jvvg wrote:

You need to go to the file where the errors are mentioned and replace all &= with = signs.

Actually, those are the two that you don't do that with and you just hide with error hiding.

Oh, can you add something to your guide?
You should add something along the lines of:
"To make your user account an admin, go into phpMyAdmin, find the users table, look for the entry for your user, edit it, and set the role to admin".

Will add something about that soon.

ProgrammingFreak wrote:

veggieman001 wrote:

jvvg wrote:

You need to go to the file where the errors are mentioned and replace all &= with = signs.

Actually, those are the two that you don't do that with and you just hide with error hiding.

Could you help, because it isn't working.  hmm

What's not working?


Posts: 20000 - Show all posts

Offline

 

#211 2012-08-23 23:13:26

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

The htaccess code to hide the two errors. The errors still show.  hmm
And thank you for removing the LOL gif. >.<

(what group are you on in pal)

Offline

 

#212 2012-08-23 23:27:59

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

Are you sure you have the .htaccess file in the right place?
You're welcome  smile
(I'm not really "in" a group, although you could find me in veggieland)


Posts: 20000 - Show all posts

Offline

 

#213 2012-08-24 05:06:39

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

Ok, I am gonna attempt on windows again. Hopefully all goes well.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#214 2012-08-24 06:44:40

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Installing ScratchR locally

veggieman001 wrote:

Are you sure you have the .htaccess file in the right place?
You're welcome  smile
(I'm not really "in" a group, although you could find me in veggieland)

Well, I made a Scratchr file instead of deleting everything in htdocs and putting it there. But I set the DocumentRoot to C:\xampp\htdocs\scratchr\app\webroot\, so I thought that would be fine. The htaccess file is in scratchr file. So I thought it would be fine.

Htaccess files always have to be in the root directory, correct? Well, I didn't move it at all, except for putting everything in an extra file scratchr.  hmm
Should I put it in webroot? I didn't think so....

Offline

 

#215 2012-08-24 09:30:46

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

I followed veggie`s awesome guide, but I am still getting a blank page.
What version of php does ScratchR need?

Last edited by Zeusking19 (2012-08-24 09:31:06)


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#216 2012-08-24 09:41:18

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

Zeusking19 wrote:

I followed veggie`s awesome guide, but I am still getting a blank page.
What version of php does ScratchR need?

XAMPP comes with the version necessary.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#217 2012-08-24 09:44:17

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

Strange. Everything is setup correctly but it wont work


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#218 2012-08-24 09:53:01

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Installing ScratchR locally

Zeusking19 wrote:

Strange. Everything is setup correctly but it wont work

Weird. It worked for me.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#219 2012-08-24 10:04:17

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

Fixed an issue with memcached builds. No php errors now, but still a blank page.
Edit: It is definitely communicating with memcached. So it is linked. If it helps I am on a Win7 Home Premium box with XAMPP

Last edited by Zeusking19 (2012-08-24 10:07:19)


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#220 2012-08-24 10:12:06

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

I saw you need to put something in httpd.conf. I put extension=php_memcache.dll in php.ini. What goes in httpd.conf?


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#221 2012-08-24 10:57:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

Zeusking19 wrote:

I saw you need to put something in httpd.conf. I put extension=php_memcache.dll in php.ini. What goes in httpd.conf?

If I'm not mistaken, try putting this at the end of apache/conf/extra/httpd-vhosts.conf and restarting the server.

Code:

   <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>

Posts: 20000 - Show all posts

Offline

 

#222 2012-08-24 11:03:07

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

the DocumentRoot part of that code throws apache into hot water.

>>> DocumentRoot takes one argument, Root directory of the document tree.
>>> AH00526: Syntax error on line 516 of C:/xampp/apache/conf/httpd.conf:

lol. Wrong file try again

In the right file it says >>> Either all Options must start with + or -, or no Option may.     .
Error is in the        Options -Multiviews  FollowSymLinks line

Last edited by Zeusking19 (2012-08-24 11:09:55)


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#223 2012-08-24 11:07:52

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

Hmm, I'm not sure.


Posts: 20000 - Show all posts

Offline

 

#224 2012-08-24 11:13:21

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Installing ScratchR locally

Removing the line starts the service, but the page is still blank.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#225 2012-08-24 11:20:39

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Installing ScratchR locally

Are you sure you've got the memcached server's details entered in bootstrap.php?


Posts: 20000 - Show all posts

Offline

 

Board footer