What changes are needed if I change directory structure?
You have to define the path to Craft in your www/index.php file.

define('CRAFT_BASE_PATH', __DIR__ . '/../craft/' ); // &lt;- in your case something like this


The constant CRAFT_BASE_PATH must point to your /craft folder