Coder Social home page Coder Social logo

halkyon / silverstripe-reqchecker Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 59 KB

Check your server environment to see if it's up to scratch to support SilverStripe CMS / Framework (http://silverstripe.org)

ApacheConf 0.85% PHP 97.93% CSS 1.23%

silverstripe-reqchecker's Introduction

SilverStripe Requirements Checker

Introduction

This is a script which will check your server environment to make sure it is configured correctly for SilverStripe CMS / Framework.

It doesn't require SilverStripe to be installed first, so it's a good way to check your environment is up to scratch before you install.

Requirements

  • Apache or IIS 7.x webserver (nginx and lighttpd may work, but not tested)
  • PHP 5.3.2+

Using

  1. Unpack the source files to somewhere in your server webroot, e.g. /var/www/ssreqcheck
  2. Open a browser and point to that file, e.g. http://localhost/ssreqcheck/index.php
  3. If using Apache, make sure the .htaccess file inside the rewritetest directory is owned by the webserver user so that PHP can write to it. This is used for testing URL rewriting is working by writing a correct RewriteBase directive

To change permissions, do something like this:

chown www-data /var/www/ssreqcheck/rewritetest/.htaccess

You can also run the checker on the command line. For example:

php /var/www/ssreqcheck/index.php

Caution: Webserver checks, including URL rewrite tests are not performed when running from the command line.

Future enhancements

  • Check file uploads by PHP moved into a publically viewable directory with rewriting turned on is accessible in the URL. Windows, for example, uses C:\Windows\Temp for system temp. This path doesn't have IIS_IUSR permissions by default, which will cause issues with IIS URL Rewrite module tries to access any files created in this temp path, but moved into the SilverStripe assets directory
  • Check upload_max_filesize and post_max_size are big enough to allow reasonable size file uploads (e.g. 32M minimum)
  • Provide more detailed explanations and suggestions where failures and warnings occur
  • Display value checks in tabular form, showing actual versus recommended values for PHP options
  • Database checks - by default, MySQL version
  • Environment specific (dev/prod) checks, e.g. production environment has 500 and 404 custom error pages setup correctly, and display_errors = Off in production
  • Display "Download and install SilverStripe" link at bottom of page if all checks pass (or only warnings shown)

Contact

silverstripe-reqchecker's People

Contributors

halkyon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

designcity

silverstripe-reqchecker's Issues

Line 168 of index.php

Cool checker. Worked a treat. Thank you for making it available.

But I think the code should be ini_get('eaccelerator.enable') not ini.get on line 168.

That worked for me.

Full line 168:
elseif($this->assertPhpExtensionLoaded('eaccelerator') && ini_get('eaccelerator.enable')) return trim('eAccelerator ' . $this->getPhpExtensionVersion('eaccelerator'));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.