Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Server & Local Environment Tips

Alex Roper edited this page Jun 30, 2016 · 13 revisions

For all environments

  • make sure you have all the necessary requirements met. See Here for a list of them.
  • When in doubt, try going to yoursite.dev/check.php and double check.

On Local

Having an accurate local set up is key to developing sites that go live with ease. Nothing is more frustrating than months of work preparing to launch, and then having it go terribly wrong because of one or two small discrepancies in the set up. Here's what we know about these common set ups:

MAMP/MAMP PRO

On Windows: If you get a cURL error 60 when visiting cp/system/updater, try using a newer php_curl.dll for your PHP version. You can find various versions of PHP for Windows here: http://windows.php.net/downloads/releases/archives/

Vagrant

no notes at this time

Homestead

no notes at this time

AMP

for folks using XAMMP, WAMP etc

no notes at this time

On Server

Ah - the lovely set of hardware that apparently makes our world go round... the server. Knowing what's going on under the hood can help ensure you get the best performance out of your Statamic site. Here's what we know:

Microsoft IIS

The V2 Public beta has not been thoroughly tested for use on Microsoft IIS. Please check back with us at a later date for more information, if you get stuck.

Apache

To enable static page caching, uncomment the following lines in your .htaccess

    # Check the static page cache
    RewriteCond %{REQUEST_FILENAME}   !-f
    RewriteRule ^(.*) static/$1/index.html

Nginx

no notes at this time

V2 has been tested on the following hosts/set up

Hosts

  • AWS
  • Digital Ocean
  • Azure (front end works, CP/back end, not yet)
  • Webfaction
  • OVH (shared-hosting, Pro plan, both PHP 5.6.15 and 7.0.0 tested)

Platform/OS

  • Apache/Ubuntu
  • Apache/OSX
  • Nginx/Ubuntu
  • Nginx/OSX

Server manager

  • Laravel Forge
  • Server Pilot