Ha véletlenül felmásoltad a .svn foldereket is webszerverre:

.svn folderek törlése PHP-val:  Removing .svn Directories With PHP

A chmod változtatás így működik:     if( !chmod( $svn, 0777 ) ){…..}

<?php
    header( 'Content-type: text/plain' ); // plain text for easy display
    
    // preconditon: $dir ends with a forward slash (/) and is a valid directory
    // postcondition: $dir and all it's sub-directories are recursively
    // searched through for .svn directories. If a .svn directory is found,
    // it is deleted to remove any security holes. 
    function removeSVN( $dir ) {
        echo "Searching: $dirnt";
        
        $flag = false; // haven't found .svn directory
        $svn = $dir . '.svn';
        
        if( is_dir( $svn ) ) {
            if( !chmod( $svn, 0777 ) )
                echo "File permissions could not be changed (this may or may not be a problem--check the statement below).nt"; // if the permissions were already 777, this is not a problem
            
            delTree( $svn ); // remove the .svn directory with a helper function
            
            if( is_dir( $svn ) ) // deleting failed
                echo "Failed to delete $svn due to file permissions.";
            else
                echo "Successfully deleted $svn from the file system.";
            
            $flag = true; // found directory
        }
        
        if( !$flag ) // no .svn directory
            echo 'No .svn directory found.';
        echo "nn";
        
        $handle = opendir( $dir );
        while( false !== ( $file = readdir( $handle ) ) ) {
            if( $file == '.' || $file == '..' ) // don't get lost by recursively going through the current or top directory
                continue;
            
            if( is_dir( $dir . $file ) )
                removeSVN( $dir . $file . '/' ); // apply the SVN removal for sub directories
        }
    }
    
    // precondition: $dir is a valid directory
    // postcondition: $dir and all it's contents are removed
    // simple function found at http://www.php.net/manual/en/function.rmdir.php#93836
    function delTree( $dir ) {
        $files = glob( $dir . '*', GLOB_MARK ); // find all files in the directory
        
        foreach( $files as $file ) {
            if( substr( $file, -1 ) == '/' )
                delTree( $file ); // recursively apply this to sub directories
            else
                unlink( $file );
        }
        
        if ( is_dir( $dir ) )
            rmdir( $dir ); // remove the directory itself (rmdir only removes a directory once it is empty)
    }
    
    // remove all .svn directories in the 
    // current directory and sub directories 
    // (recursively applied)
    removeSVN( './' );
?>

Ruby on Rails install, again

D:serverrubybin>gem install rails -include-dependencies
Fetching: multi_json-1.0.3.gem (100%)
Fetching: activesupport-3.1.1.gem (100%)
Fetching: builder-3.0.0.gem (100%)
Fetching: i18n-0.6.0.gem (100%)
Fetching: activemodel-3.1.1.gem (100%)
Fetching: rack-1.3.4.gem (100%)
Fetching: rack-cache-1.1.gem (100%)
Fetching: rack-test-0.6.1.gem (100%)
Fetching: rack-mount-0.8.3.gem (100%)
Fetching: hike-1.2.1.gem (100%)
Fetching: tilt-1.3.3.gem (100%)
Fetching: sprockets-2.0.2.gem (100%)
Fetching: erubis-2.7.0.gem (100%)
Fetching: actionpack-3.1.1.gem (100%)
Fetching: arel-2.2.1.gem (100%)
Fetching: tzinfo-0.3.30.gem (100%)
Fetching: activerecord-3.1.1.gem (100%)
Fetching: activeresource-3.1.1.gem (100%)
Fetching: mime-types-1.16.gem (100%)
Fetching: polyglot-0.3.2.gem (100%)
Fetching: treetop-1.4.10.gem (100%)
Fetching: mail-2.3.0.gem (100%)
Fetching: actionmailer-3.1.1.gem (100%)
Fetching: thor-0.14.6.gem (100%)
Fetching: rack-ssl-1.3.2.gem (100%)
Fetching: json-1.6.1.gem (100%)
ERROR:  Error installing rails:
The ‘json’ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from ‘http://rubyinstaller.org/downloads’ and follow the instructions
at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit’
ERROR:  Could not find a valid gem ‘ûinclude-dependencies’ (>= 0) in any reposit
ory
ERROR:  Possible alternatives: fixture_dependencies, class_dependencies, cells-d
ependencies, dependencies, testdependencies

D:serverrubybin>cd..

D:serverruby>cd devkit

D:serverrubydevkit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.2 at D:/server/ruby

Initialization complete! Please review and modify the auto-generated
‘config.yml’ file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

D:serverrubydevkit>ruby dk.rb install
[INFO] Updating convenience notice gem override for ‘D:/server/ruby’
[INFO] Installing ‘D:/server/ruby/lib/ruby/site_ruby/devkit.rb’

D:serverrubydevkit>gem install rdiscount -platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions.  This could take a while…
Successfully installed rdiscount-1.6.8
ERROR:  Could not find a valid gem ‘ûplatform=ruby’ (>= 0) in any repository
ERROR:  Possible alternatives: mplayer-ruby, platform, Platform, platform1, rpla
tform
1 gem installed
Installing ri documentation for rdiscount-1.6.8…
Installing RDoc documentation for rdiscount-1.6.8…

D:serverrubydevkit>gem install rails -include-dependencies
Temporarily enhancing PATH to include DevKit…
Building native extensions.  This could take a while…
Fetching: rdoc-3.10.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data –install
= 1.9.1 : gem install rdoc-data; rdoc-data –install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.1.1.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.1.1.gem (100%)
Successfully installed json-1.6.1
Successfully installed rdoc-3.10
Successfully installed railties-3.1.1
Successfully installed bundler-1.0.21
Successfully installed rails-3.1.1
ERROR:  Could not find a valid gem ‘ûinclude-dependencies’ (>= 0) in any reposit
ory
ERROR:  Possible alternatives: fixture_dependencies, class_dependencies, cells-d
ependencies, dependencies, testdependencies
5 gems installed
Installing ri documentation for json-1.6.1…
Installing ri documentation for rdoc-3.10…
Installing ri documentation for railties-3.1.1…
Installing ri documentation for bundler-1.0.21…
Installing ri documentation for rails-3.1.1…
Installing RDoc documentation for json-1.6.1…
Installing RDoc documentation for rdoc-3.10…
Installing RDoc documentation for railties-3.1.1…
Installing RDoc documentation for bundler-1.0.21…
Installing RDoc documentation for rails-3.1.1…

Starting the Built-In Web Server

D:serverwebprojektrubyshello>bundle install
Using rake (0.9.2)
Using multi_json (1.0.3)
Using activesupport (3.1.1)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.1)
Using erubis (2.7.0)
Using rack (1.3.4)
Using rack-cache (1.1)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.2)
Using actionpack (3.1.1)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.1)
Using arel (2.2.1)
Using tzinfo (0.3.30)
Using activerecord (3.1.1)
Using activeresource (3.1.1)
Using ansi (1.3.0)
Using bundler (1.0.21)
Using coffee-script-source (1.1.2)
Using execjs (1.2.9)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.1)
Using rdoc (3.10)
Using thor (0.14.6)
Using railties (3.1.1)
Using coffee-rails (3.1.1)
Using jquery-rails (1.0.16)
Using rails (3.1.1)
Using sass (3.1.10)
Using sass-rails (3.1.4)
Using sqlite3 (1.3.4)
Using turn (0.8.3)
Using uglifier (1.0.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.

D:serverwebprojektrubyshello>rails server
D:/server/xampp/ruby/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/backpo
rts/uri/common_192.rb:53: warning: already initialized constant WFKV_
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-10-15 21:34:32] INFO  WEBrick 1.3.1
[2011-10-15 21:34:32] INFO  ruby 1.9.2 (2011-07-09) [i386-mingw32]
[2011-10-15 21:34:32] INFO  WEBrick::HTTPServer#start: pid=5816 port=3000

Started GET “/assets/rails.png” for 127.0.0.1 at 2011-10-15 21:35:52 +0200
Served asset /rails.png – 200 OK (62ms)

Installing SQLite

D:>cd D:serverxampprubyRuby192bin

D:serverxampprubyRuby192bin>sqlite3 –version
3.6.23.1

D:serverxampprubyRuby192bin>gem install sqlite3-ruby
Fetching: sqlite3-ruby-1.3.3.gem (100%)

#######################################################

Hello! The sqlite3-ruby gem has changed it’s name to just sqlite3.  Rather than
installing `sqlite3-ruby`, you should install `sqlite3`.  Please update your
dependencies accordingly.

Thanks from the Ruby sqlite3 team!

<3 <3 <3 <3

#######################################################

Successfully installed sqlite3-ruby-1.3.3
1 gem installed
Installing ri documentation for sqlite3-ruby-1.3.3…
Installing RDoc documentation for sqlite3-ruby-1.3.3…

D:serverxampprubyRuby192bin>

Ruby on Rails

Installation story on Windows.
C:Documents and Settingsuser>D:

D:>cd D:serverxampprubyRuby192

D:serverxampprubyRuby192>gem install rails –include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use –ignore-dependencies to install only the gems you list
ERROR:  Error installing rails:
The ‘json’ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from ‘http://rubyinstaller.org/downloads’ and follow the instructions
at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit’

D:serverxampprubyRuby192>cd..

D:serverxamppruby>cd devkit

D:serverxampprubydevkit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.2 at D:/server/xampp/ruby/Ruby192

Initialization complete! Please review and modify the auto-generated
‘config.yml’ file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

D:serverxampprubydevkit>ruby dk.rb install
Invalid configuration or no Rubies listed. Please fix ‘config.yml’
and rerun ‘ruby dk.rb install’

D:serverxampprubydevkit>ruby dk.rb install
[INFO] Updating convenience notice gem override for ‘D:/server/xampp/ruby/Ruby19
2’
[INFO] Installing ‘D:/server/xampp/ruby/Ruby192/lib/ruby/site_ruby/devkit.rb’

D:serverxampprubydevkit>rails new D:/server/webprojekt/rubys
‘rails’ is not recognized as an internal or external command,
operable program or batch file.

D:serverxampprubydevkit>ruby dk.rb install
[INFO] Skipping existing gem override for ‘D:/server/xampp/ruby/Ruby192’
[WARN] Skipping existing DevKit helper library for ‘D:/server/xampp/ruby/Ruby192

D:serverxampprubydevkit>gem install rdiscount –platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions.  This could take a while…
Successfully installed rdiscount-1.6.8
1 gem installed
Installing ri documentation for rdiscount-1.6.8…
Installing RDoc documentation for rdiscount-1.6.8…

D:serverxampprubydevkit>rails new D:/server/webprojekt/rubys
‘rails’ is not recognized as an internal or external command,
operable program or batch file.

D:serverxampprubydevkit>cd..

D:serverxamppruby>dir
Volume in drive D has no label.
Volume Serial Number is 7E63-E032

Directory of D:serverxamppruby

10/14/2011  10:02 PM    <DIR>          .
10/14/2011  10:02 PM    <DIR>          ..
10/14/2011  10:03 PM    <DIR>          devkit
10/14/2011  03:37 PM    <DIR>          Ruby192
0 File(s)              0 bytes
4 Dir(s)  195,800,772,608 bytes free

D:serverxamppruby>cd Ruby192

D:serverxampprubyRuby192>cd bin

D:serverxampprubyRuby192bin>rails new D:/server/webprojekt/rubys
‘rails’ is not recognized as an internal or external command,
operable program or batch file.

D:serverxampprubyRuby192bin>rails
‘rails’ is not recognized as an internal or external command,
operable program or batch file.

D:serverxampprubyRuby192bin>gem install rails –include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use –ignore-dependencies to install only the gems you list
Temporarily enhancing PATH to include DevKit…
Building native extensions.  This could take a while…
Fetching: rdoc-3.10.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data –install
= 1.9.1 : gem install rdoc-data; rdoc-data –install
>= 1.9.2 : nothing to do! Yay!
Fetching: railties-3.1.1.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.1.1.gem (100%)
Successfully installed json-1.6.1
Successfully installed rdoc-3.10
Successfully installed railties-3.1.1
Successfully installed bundler-1.0.21
Successfully installed rails-3.1.1
5 gems installed
Installing ri documentation for json-1.6.1…
Installing ri documentation for rdoc-3.10…
Installing ri documentation for railties-3.1.1…
Installing ri documentation for bundler-1.0.21…
Installing ri documentation for rails-3.1.1…
Installing RDoc documentation for json-1.6.1…
Installing RDoc documentation for rdoc-3.10…
Installing RDoc documentation for railties-3.1.1…
Installing RDoc documentation for bundler-1.0.21…
Installing RDoc documentation for rails-3.1.1…

D:serverxampprubyRuby192bin>