owncloud-logo-150x74

Install owncloud on GoDaddy

Table of Contents

    owncloud Welcome Screen
    The final result

    Owncloud is AWESOME. I really love it, especially because it gives you full control of your data on your own server. To sum it up, imagine you can use dropbox, using your own server instead of dropbox’s.

    If you haven’t tried it yet, take a look and try to install it on your shared hosting server, local server or a vps at a major hosting company: http://owncloud.org/

    I decided to install it on Godaddy‘s server, because it’s cheep, reliable and fast. When I went to install it, I spent 2 days trying to figure out what went wrong (no css for some reason) and why I couldn’t get it to work well (I also made a call to their technical support center… with no luck). By the way, although they don’t publish it anywhere on the web, they do have toll-free number – see it here.

    Anyway, to make a long story short, here’s what you should do in order to install owncloud on godaddy properly:

    1. Download Owncloud source files, unzip it and upload it to the server via ftp.

    2. Create a file called php5.ini add the following code to the file [using notepad] and upload it to the root directory:

    cgi.fix_pathinfo = 1

    3. Look for the .htaccess file in your root directory, and replace it’s content with the following:

    ErrorDocument 403 /core/templates/403.php
    ErrorDocument 404 /core/templates/404.php
    <IfModule mod_php5.c>
    php_value upload_max_filesize 513M
    php_value post_max_size 513M
    php_value memory_limit 512M
    <IfModule env_module>
    SetEnv htaccessWorking true
    </IfModule>
    </IfModule>
    <IfModule mod_rewrite.c>
    #Fix Rewrite
    Options -Multiviews
    RewriteEngine on
    RewriteBase /
    RewriteCond $1 !^(index\.php|css|gfx|js|swf|robots\.txt|favicon\.ico)
    #RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
    RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
    RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
    RewriteRule ^apps/calendar/caldav.php remote.php/caldav/ [QSA,L]
    RewriteRule ^apps/contacts/carddav.php remote.php/carddav/ [QSA,L]
    RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
    RewriteRule ^remote/(.*) remote.php [QSA,L]
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    </IfModule>
    <IfModule mod_mime.c>
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    </IfModule>
    Options -Indexes

    Save the .htaccess file, upload it back to your server, and Ta-Da!

    Hope this helped you out.

    Thanks steveyoung82 for the tip!

    Share this post