Installing Statamic
Get Statamic running on your server.
Follow these steps after unzipping the Statamic folder you’ve downloaded from your account.
play Watch our screencast:
Installing Statamic
Standard “installation”
This will install Statamic into your website’s document root.
- Copy the files within into your website’s document root
- Enable your .htaccess file by renaming the included
sample.htaccess
file to.htaccess
. Or, write your own if you know what you’re doing. - Make sure that the following folders are writable (depending on your server this will be chmod
755
or777
):_cache
— this one’s a must_logs
— if you want to enable message logging_content
&_config/users
— if you want to use the Control Panel
You will probably also want to make your assets
folder (or whatever location you store any images you plan to resize) writable.
Statamic has now been installed. Simple as that.
From here, we highly recommend that you secure your installation. (It will also pretty-up your URLs.)
Running in a subdirectory
The below steps assume that your subdirectory is a folder named statamic
.
You can use any folder you’d like, so when following directions, update your folder name accordingly.
- Copy the files within into your
/statamic/
subdirectory - Make sure that the following folders are writable by the server:
_cache
— this one’s a must_logs
— if you want to enable message logging_content
&_config/users
— if you want to use the Control Panel
- Update
_site_root
in your_config/settings.yaml
file to reflect the correct subdirectory:_site_root: /statamic/
- Rename
sample.htaccess
to.htaccess
- Update the
RewriteBase
rule on line 6 of your.htaccess
file to reference to the folder Statamic is running in:RewriteBase /statamic/
Visit it in your browser and you should see your site.
From here, we recommend that you secure your installation. (It will also pretty-up your URLs.)