Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Some issues with installation


Reply


3 Posts   2790 Views

Avatar
hernanch

Community Member, 1 Post

17 December 2008 at 8:46am

Hi everyone. I am completely new to LAMP.
I installed WAMP on my Vista, then installed all the SilverStripe files to its folder and when I opened it on the browser, I got the screen saying that there were some issues with the configuration.

One of them was in the section that says "Check that the php.ini setting allow_call_time_pass_reference is on". I went to that file, set the parameter to On, restarted the services and reloaded the page, this issue turned to green, so it's OK now.

The other one was in the section "mod_rewrite enabled", which was not enabled, so I went to httpd.conf and uncommented

LoadModule rewrite_module modules/mod_rewrite.so


I restarted the services and reloaded the page, this issue turned to green, so it's OK now.

The only remaining issues now are

Is the .htaccess file writeable?   
Unable to detect whether I can write to files. Please ensure C:\wamp\www\SilverStripe/.htaccess is writable.

Is the mysite/ folder writeable?   
Unable to detect whether I can write to files. Please ensure C:\wamp\www\SilverStripe/mysite is writable.

Is the tutorial/ folder writeable?   
Unable to detect whether I can write to files. Please ensure C:\wamp\www\SilverStripe/tutorial is writable.

Is the assets/ folder writeable?   
Unable to detect whether I can write to files. Please ensure C:\wamp\www\SilverStripe/assets is writable.

But none of them seemed to be critical or prevented me to continue with the installation, so I tried to move on.

Then I get this error on the next screen:

Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation
# Creating 'mysite/_config.php'...
# Creating C:\wamp\www\SilverStripe/mysite/_config.php
# Creating '.htaccess' file...
# Creating C:\wamp\www\SilverStripe/.htaccess
# Building database schema...
# Checking mod_rewrite works
# http://localhost/SilverStripe/InstallerTest/testrewrite Rewrite is DirectorySlash Off RewriteEngine On RewriteBase /SilverStripe RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* C:/wamp/www//sapphire/main.php?url=%1&%{QUERY_STRING} [L] Creating C:\wamp\www\SilverStripe/.htaccess http://localhost/SilverStripe/InstallerTest/testrewrite
# ERROR: mod_rewrite not working, redirecting to mod_rewrite test page
# Creating C:\wamp\www\SilverStripe/.htaccess I will now try and direct you to rewritetest to troubleshoot mod_rewrite

and then it apparently tries to test rewrite unsuccessfully, because I get


Warning: file_get_contents(http://localhost/SilverStripe/InstallerTest/testrewrite) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\SilverStripe\rewritetest.php on line 47

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\SilverStripe\rewritetest.php on line 47

Can anybody please help troubleshoot this?
Thanks in advance

Avatar
monkeyben

Community Member, 25 Posts

17 December 2008 at 1:34pm

The files the installation says need to be writeable need to be writeable, though by the installation output, it seems they probably may have been?

Try going to:-

http://localhost/SilverStripe/sapphire/main.php?url=home

If that works, SS is installed and there is a rewrite error and you'll need to take a look at your .htaccess file and work out what it is doing.

At a guess the install output line "C:/wamp/www//sapphire/main.php?url=%1&%{QUERY_STRING}" should have been more like: -
"http://localhost/SilverStripe/main.php?url=%1&%{QUERY_STRING}".

hth,

Ben :)

Avatar
Sam

Administrator, 685 Posts

19 December 2008 at 1:26pm

Hi hernanch,

We have resolved a number of issues surrounding this in 2.3. Perhaps you want to try the 2.3 release candidate?

http://www.silverstripe.org/release-candidate/