SilverStripe on Feisty
April 16th, 2007 7 Comments »
I’m going to cut right to the chase:
- SilverStripe is a Content Management System
- Feisty is the latest version of Ubuntu Linux
To setup SilverStripe:
- Server install of Ubuntu.
- There is a specific server install disc you can download from Ubuntu, check out their site for more information.
- Select LAMP install during installation.
- Add universe and multiverse repositories
- Run
sudo nano /etc/apt/sources.list - Replace the contents with the following:
deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu feisty-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted universe multiverse - Run:
sudo apt-get update sudo apt-get install php5-gd
- Run
- Configure Apache:
- Run
sudo nano /etc/apache2/sites-available/ss- Place the following into this file:
NameVirtualHost xxx.xxx.xxx.xxx:80 <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin webmaster@domain.tld DocumentRoot /path/to/silverstripe <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /path/to/silverstripe> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost> - Replace xxx.xxx.xxx.xxx with the IP address of the server
- Replace /path/to/silverstripe with the directory you plan on having your silverstripe database in.
- Replace wemaster@domain.tld with the webmaster’s email address.
- Place the following into this file:
- Run
sudo a2enmod mod_rewrite - Run
sudo a2ensite ss - Run
sudo nano /etc/apache2/mods-available/rewrite.conf- Place the following into this file:
<IfModule mod_rewrite.c> RewriteEngine On </IfModule>
- Place the following into this file:
- Run
- Download Silverstripe and extract it into what you set in the ss file. An example to be modified:
wget http://www.silverstripe.com/assets/downloads/PHPInstaller/silverstripe-v2.0.1.tar.gz tar zxvf silverstripe-v2.0.1.tar.gz mv silverstripe-v2.0 /path/to/silverstripe - Configure mySQL (change passwords as necessary):
mysqladmin -uroot password <Type in new mysql root user's password> mysql -uroot -p <Type in mysql root user's password> create database silverstripe; grant all on silverstripe.* to 'ss_user'@'localhost' identified by 'ss_user_password'; exit; - Restart apache:
sudo /etc/init.d/apache restart
The silverstripe installation instructions should take over from here. This is what I setup for my environment, except I included mine in version control. I won’t delve into this subject as it is entirely too broad. Maybe next week.
Also, the Options directive in the Directory directive for /path/to/silverstripe may need to include less options for security, but I haven’t tested it.
Updated 4/20/07 to include mySQL setup and newest version (2.0.1).