GoDaddy installation

Hmmm we like godaddy..

Thanks: http://old.coupleofcents.com/installing-silverstripe-cms-on-godaddy

Points:

I have PHP5 & mySQL5 selected in my hosting plan..

  • upload Silverstripe gz.tar file to godaddy hosting space
  • use godaddy hosting tool file manager to unarchive & move silverstripe files to root of hosting directory for the targetdomain
  • allow write access for public web users to:
    • assets
    • mysite
    • tutorial
    • .htaccess
  • add php5.ini to root of the hosting plan with text: allow_call_time_pass_reference = On
  • Amend .htaccess for Silverstripe bits to:

### SILVERSTRIPE START ###
RewriteEngine On

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]

 ### SILVERSTRIPE END ###

  • Use godaddy hosting plan mySQL tool to create a new mySQL db.  Use the godaddy pencil icon to show the mysql server name: Remember: there is an issue with either too long username or password
  • Start your website with /install.php
  • complete the details, confirm no alerts - Note: leave blackcandy theme selected or it doesnt put _config.ini in the themes directory? So where does it put it? Who cares I suppose..
  • Select install
  • Get the confirmation: "For security reasons you should now delete the install files, unless you are planning to reinstall later. The web server also now only needs write access to the "assets" folder, you can remove web user (public) write access from: all other folders." and clicked the link to delete installfiles."
  • Clicked 'Click here to delete the installation files'
  • Set permissions for /tutorials & /mysite for the public/web user access to no write access
  • Set permissions for .htaccess for the public/web user access to no write access 20081031 Should I remove read as well?


Thats it!

Access before allowing write per above:

drwx---r-x   11 1165     450          4096 Oct  3 00:44 .
drwx---r-x   16 1165     450          4096 Oct  2 19:11 ..
-rw-r--r--    1 1165     450             0 Aug 19  2007 .htaccess
-rw-r--r--    1 1165     450          1553 Jan  6  2008 COPYING
-rw-r--r--    1 1165     450         49047 Mar 13  2008 ChangeLog
-rw-r--r--    1 1165     450           668 Mar 11  2007 INSTALL
-rw-r--r--    1 1165     450           460 Jan 16  2008 Makefile
-rw-r--r--    1 1165     450          1092 Nov 12  2007 UPGRADING
drwxr-xr-x    3 1165     450          4096 May 21 23:23 assets
drwxr-xr-x    5 1165     450          4096 May 21 23:23 auth_openid
-rw-r--r--    1 1165     450           327 Sep 16  2007 check-php.php
drwxr-xr-x    9 1165     450          4096 May 21 23:23 cms
-rw-r--r--    1 1165     450          1725 Sep 20  2007 config-form.css
-rw-r--r--    1 1165     450          9125 Oct 29  2007 config-form.html
-rw-r--r--    1 1165     450           318 Sep 23  2007 favicon.ico
-rw-r--r--    1 1165     450           359 Jan 31  2007 index.html
-rw-r--r--    1 1165     450            45 Jan 31  2007 index.php
-rw-r--r--    1 1165     450         34138 Apr 21 16:37 install.php
drwxr-xr-x   10 1165     450          4096 May 21 23:23 jsparty
drwxr-xr-x    7 1165     450          4096 May 21 23:23 mysite
-rw-r--r--    1 1165     450          5671 Mar 13  2008 rewritetest.php
drwxr-xr-x   24 1165     450          4096 May 21 23:23 sapphire
drwxr-xr-x   10 1165     450          4096 May 21 23:23 silverstripe-v2.2.2
drwxr-xr-x    4 1165     450          4096 May 21 23:23 themes
drwxr-xr-x    7 1165     450          4096 May 21 23:23 tutorial