<commit_before>---
layout: home
title: Installation
sidebar: installation
lang: en
---

<div class="page-header">
    <h1>Requirements</h1>
</div>

* php 5.4
    * Required extensions :
        * PDO_Mysql
        * mcrypt
        * intl
        * gd
        * curl
        * calendar
    * safe_mode off
    * memory_limit at least 128M, preferably 256.
    * post\_max\_size 20M
    * upload\_max\_filesize 2M
* apache 2
* mysql 5

If you use **Mac OSX**, it still doesn't use php 5.4 as default php version... There are many solutions for you :

* use [phpbrew](https://github.com/c9s/phpbrew)
* use last MAMP version and put the php bin directory in your path  :

```bash
export PATH=/Applications/MAMP/bin/php/php5.4.x/bin/:$PATH
```

* configure a complete development environment : [http://php-osx.liip.ch](http://php-osx.liip.ch)
* use a virtual machine with vagrant and puppet : [https://puphpet.com](https://puphpet.com)


If you use **Windows** with [WAMP](http://www.wampserver.com/) and encouter an issue with ```intl``` there is a special manipulation to do : you have to copy all files with name ```icu***.dll```  from php directory (eg: "C:\wamp\bin\php\php5.x.xx") to the ```apache``` directory ("C:\wamp\bin\apache\apache2.x.xx\bin").


<div class="page-header">
    <h1>Installation</h1>
</div>


## Download Thelia 2

You can download Thelia by two different way

### Downloading from Thelia website

Go to this page and download the zip file : [http://thelia.net/#download](http://thelia.net/#download)

Then unzip the file.


### Using composer

```bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project thelia/thelia path/ 2.0.1
```


## Install it

You can install Thelia by two different way<commit_msg>updated version to 2.0.2<commit_after>---
layout: home
title: Installation
sidebar: installation
lang: en
---

<div class="page-header">
    <h1>Requirements</h1>
</div>

* php 5.4
    * Required extensions :
        * PDO_Mysql
        * mcrypt
        * intl
        * gd
        * curl
        * calendar
    * safe_mode off
    * memory_limit at least 128M, preferably 256.
    * post\_max\_size 20M
    * upload\_max\_filesize 2M
* apache 2
* mysql 5

If you use **Mac OSX**, it still doesn't use php 5.4 as default php version... There are many solutions for you :

* use [phpbrew](https://github.com/c9s/phpbrew)
* use last MAMP version and put the php bin directory in your path  :

```bash
export PATH=/Applications/MAMP/bin/php/php5.4.x/bin/:$PATH
```

* configure a complete development environment : [http://php-osx.liip.ch](http://php-osx.liip.ch)
* use a virtual machine with vagrant and puppet : [https://puphpet.com](https://puphpet.com)


If you use **Windows** with [WAMP](http://www.wampserver.com/) and encouter an issue with ```intl``` there is a special manipulation to do : you have to copy all files with name ```icu***.dll```  from php directory (eg: "C:\wamp\bin\php\php5.x.xx") to the ```apache``` directory ("C:\wamp\bin\apache\apache2.x.xx\bin").


<div class="page-header">
    <h1>Installation</h1>
</div>


## Download Thelia 2

You can download Thelia by two different way

### Downloading from Thelia website

Go to this page and download the zip file : [http://thelia.net/#download](http://thelia.net/#download)

Then unzip the file.


### Using composer

```bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project thelia/thelia path/ 2.0.2
```


## Install it

You can install Thelia by two different way
{'fraction_non_alphanumeric': 0.1407177168691721, 'fraction_numerical': 0.016671376094942073, 'mean_word_length': 3.2548076923076925, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2468524', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1169, 'n_words': 376}