Giter Site home page Giter Site logo

sitedata / thelia-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thelia/thelia-project

0.0 2.0 0.0 238 KB

Thelia is an open source tool for creating e-business websites and managing online content. Repo containing the configuration to create a Thelia project

License: GNU Lesser General Public License v3.0

PHP 62.22% Shell 31.05% Dockerfile 6.73%

thelia-project's Introduction

Readme

This is the project creation repository of Thelia. If you want to contribute, please take a look at thelia/thelia

Thelia

Build Status License Scrutinizer Quality Score

Thelia is an open source tool for creating e-business websites and managing online content. This software is published under LGPL.

This is the new major version of Thelia.

You can download this version and have a try or take a look at the source code (or anything you wish, respecting LGPL). See http://thelia.net/ web site for more information.

A repository containing all thelia modules is available at this address : https://github.com/thelia-modules

Requirements

  • PHP 5.5
    • Required extensions :
      • PDO_Mysql
      • mcrypt
      • intl
      • gd
      • curl
    • safe_mode off
    • memory_limit at least 128M, preferably 256.
    • post_max_size 20M
    • upload_max_filesize 2M
    • date.timezone must be defined
  • Web Server Apache 2 or Nginx
  • MySQL 5

Create a Thelia project

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project thelia/thelia-project path/ 2.4.0 (or 2.3.5)

Install it with your own environment

You can install Thelia using the cli tool and the scripts provided by thelia/setup

$ php Thelia thelia:install

Consult the page : http://localhost/thelia/web/index_dev.php

You can create a virtual host and choose web folder for root directory.

Quick install with docker-compose

Docker and docker-compose have to be installed.

Build your docker containers on detached mode

$ docker-compose up -d

Enter in your container

$ docker-compose exec php-fpm bash

Install thelia

$ php Thelia thelia:install

By default if you haven't changed the docker-compose.yml you'll have to answer these questions like this

Database host [default: localhost] : mariadb
Database port [default: 3306] : 3306
Database name (if database does not exist, Thelia will try to create it) : thelia
Database username : thelia
Database pasword : thelia

Next just go to http://localhost:8080 and you should see your Thelia installed !

If you want add some sample data just execute this command (still in your container)

$ php local/setup/import.php

If you want to access your database from your computer (with DBeaver, Sequel Pro or anything else) the host is localhost and the port is 8086

Documentation

Thelia documentation is available at http://doc.thelia.net

Roadmap

The Roadmap is available at http://thelia.net/community/roadmap

Contribute

See the documentation : http://doc.thelia.net/en/documentation/contribute.html

Mac OSX

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
  • use last MAMP version and put the php bin directory in your path:
export PATH=/Applications/MAMP/bin/php/php5.5.x/bin/:$PATH

MySQL 5.6

As of MySQL 5.6, default configuration sets the sql_mode value to

STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION

This 'STRICT_TRANS_TABLES' configuration results in SQL errors when no default value is defined on NOT NULL columns and the value is empty or invalid.

You can edit this default config in /etc/my.cnf and change the sql_mode to remove the STRICT_TRANS_TABLES part

[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION

Assuming your sql_mode is the default one, you can change the value directly on the run by running the following SQL Command

SET @@GLOBAL.sql_mode='NO_ENGINE_SUBSTITUTION', @@SESSION.sql_mode='NO_ENGINE_SUBSTITUTION'

For more information on sql_mode you can consult the MySQL doc

Archive builders

Thelia's archive builder's needs external libraries. For zip archives, you need PECL zip. See PHP Doc

For tar archives, you need PECL phar. Moreover, you need to deactivate php.ini option "phar.readonly":

phar.readonly = Off

For tar.bz2 archives, you need tar's dependencies and the extension "bzip2". See PHP Doc

For tar.gz archives, you need tar's dependencies and the extension "zlib". See PHP Doc

thelia-project's People

Contributors

bibich avatar bilhackmac avatar gillesbourgeat avatar lopes-vincent avatar lovenunu avatar lunika avatar

Watchers

 avatar  avatar

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.