Hi there,
Hoping someone can help as I've spent an unhealthy amount of time now trying to get SilverStripe to work. This is the first time I've touched a SilverStripe site, so while I'm not a noob to the dev world, a level of understanding would be appreciated!
I'm trying to migrate a SilverStripe site from a web developer's inhouse server to MediaTemple. The outgoing server is running PHP 5.1.6, while the MT server is running PHP 5.3.8, and the SilverStripe version is 2.3.0. (I'm really hoping it's not the versions that are causing these issues!)
So I've imported the dumped DB and copied across the httpdocs folder to the new host. Set up the DB connection strings, thinking I'm good to go.
Get a 403 Forbidden message, and its off to the trusty forums! Cross check perms with (still live) site, all good. Find a post that talks about rewrites and references '/rewritetest.php', so I run that, and get the (apparently infamous)
mod_rewrite is enabled in your httpd.conf
AllowOverride is enabled for the current path.
I run a phpinfo on both the outgoing server (yup, it's enabled) and the new one (uh-oh, hold the phone), so start researching this one through the forums and come upon people talking about the .htaccess mods. So I put those in:
### SILVERSTRIPE START ###
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
Options FollowSymLinks
### SILVERSTRIPE END ###
and now I'm the closest I've been in roughly 17 hours of working on this (tried to install on XAMPP to test the process first, silly idea that), and now have the site loading, albeit with a page of errors above telling me things like:
Deprecated: Function ereg_replace() is deprecated in /...../html/sapphire/core/ManifestBuilder.php on line 257
and
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/..../html/.htaccess/_config.php) is not within the allowed path(s): (/nfs:/tmp:/usr/local:/etc/apache2/gs-bin) in /..../html/sapphire/core/i18n.php on line 1074
and
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/..../html/favicon.ico/_config.php) is not within the allowed path(s): (/nfs:/tmp:/usr/local:/etc/apache2/gs-bin) in /..../html/sapphire/core/i18n.php on line 1074
(Note: those are my ellipses inserted in the path for security reasons)
So my question is, what the hell do I do now? I'm supposed to be making this site live in a few hours time, and I'm reasonably close to throwing things out of windows...
Many thanks!