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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Installation issues


Go to End


3 Posts   2276 Views

Avatar
Cammo

Community Member, 2 Posts

30 September 2008 at 7:17pm

Edited: 30/09/2008 7:17pm

----- ENVIRONMENT -----

I'm trying to set up Silverstripe on my local machine which I use for website development.

It's a PC running Windows XP Home (Version 2002, Service Pack 3). I have IIS listening on the default port 80 and have Apache tuned in to port 8080.

I already have many sites running on this dev box using Apache, PHP and MySQL, so installing WampServer didn't seem like the right fit... hence I've been following the Apache installation instructions.

The multiple sites are running on this machine using Apache's VirtualHost directive, so again, I've strayed (with reason) from the installation instructions that say Silverstripe should be installed in the web server root. (However, I'd imagine that there'd be many developers out there running multiple sites on one machine and would be surprised if this was a limitation of Silverstripe!)

mod_rewrite is working and AllowOverride has been enabled for the current path.

----- INSTALLATION -----

Following the installation page everything looks fine. Database details are given the thumbs up. Server Software = OK (Apache/2.0.55 (Win32) PHP/5.2.1 Server at sitename Port 8080)

It is asking me to check that the .htaccess file is writable (it is) and that the 'mysite', 'tutorial' and 'assets' folders are writeable.

I check this by navigating to each folder in Windows Explorer, then right clicking and selecting 'Properties', then the 'Web Sharing' tab and clicking the 'Share this folder' radio button. I then get a pop up that allows me to click the 'write' option.

I then hit the 'Re-check requirements' button back on the installation page and still get the same writable warning messages in orange. Not sure I can do any more, so I click the 'Install Silverstripe' button.

It proceeds...

--------------------------------------
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 'tutorial/_config.php'...
# Creating C:\wip\dropbox\websites\sitename/tutorial/_config.php
# Creating '.htaccess' file...
# Creating C:\wip\dropbox\websites\sitename/.htaccess
# Building database schema...
# Checking mod_rewrite works
# http://sitename:8080\/InstallerTest/testrewrite Rewrite is DirectorySlash Off RewriteEngine On RewriteBase \ RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* C:/wip/dropbox/websites/sitename/sapphire/main.php?url=%1&%{QUERY_STRING} [L] Creating C:\wip\dropbox\websites\sitename/.htaccess http://sitename:8080\/InstallerTest/testrewrite
# ERROR: mod_rewrite not working, redirecting to mod_rewrite test page
# Creating C:\wip\dropbox\websites\sitename/.htaccess I will now try and direct you to rewritetest to troubleshoot mod_rewrite
--------------------------------------

... which lands me on the rewritetest.php page...

--------------------------------------
mod_rewrite doesn't appear to be working. Make sure:

* mod_rewrite is enabled in your httpd.conf
* AllowOverride is enabled for the current path.

Please check these options, then refresh this page.If you believe that your configuration is correct, click here to proceed anyway.
--------------------------------------

I know these options are correct, so I click to proceed and land at http://sitename:8080/home/successfullyinstalled?flush=1 which presents me with a 500 Internal Server Error directing me to the Apache error log.

The log has several errors including:

1. PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct

2. PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOCUME~1\\Cam\\LOCALS~1\\Temp\\php\\session\\sess_ou6qg320e8j4hhkqsar2eu49i7, O_RDWR) failed: No such file or directory (2) in C:\\wip\\dropbox\\websites\\sitename\\install.php on line 10, referer: http://sitename:8080/install.php

3. PHP Notice: Undefined index: type in C:\\wip\\dropbox\\websites\\sitename\\sapphire\\security\\Security.php on line 655, referer: http://sitename:8080/install.php

4. C:/wip/dropbox/websites/sitename/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context

5. PHP Warning: file_get_contents(http://sitename:8080\\/InstallerTest/testrewrite) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error\r\n in C:\\wip\\dropbox\\websites\\sitename\\rewritetest.php on line 47, referer: http://sitename:8080/install.php

Phew!

I'd love to get Silverstripe up and running... does anyone have any suggestions as to where things might be going wrong???

Many thanks,
Cam

Avatar
icnocop

Community Member, 1 Post

5 October 2008 at 6:40pm

Avatar
Cammo

Community Member, 2 Posts

20 October 2008 at 12:41pm

Thanks for that reply. I've made the change to my htaccess file but still the Internal Server Error in the browser. Strangely the Apache error log is still giving:

C:/wip/websites/sitename/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context

My htaccess file now contains:

RewriteEngine On
RewriteBase /
...

And I have the following in my Apache config file:

<Directory "C:/wip/websites/sitename">
   Options FollowSymLinks SymLinksifOwnerMatch
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

Any other clues?