### Installing Thelia via CLI (Bash) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Executes the Thelia command-line installer script. This script guides you through the installation process, setting up the database and other necessary configurations. ```bash $ php Thelia thelia:install ``` -------------------------------- ### Starting Thelia with Docker Compose and Demo Data (Bash) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Runs the start-docker.sh script with the -demo option. This command launches Thelia via Docker Compose and also includes sample data for testing and demonstration purposes. Requires Docker and Docker Compose. ```bash ./start-docker.sh -demo ``` -------------------------------- ### Starting Thelia with Docker Compose (Bash) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Runs the provided start-docker.sh script to launch Thelia using Docker and Docker Compose. This sets up the necessary containers for the application and database. Requires Docker and Docker Compose to be installed. ```bash ./start-docker.sh ``` -------------------------------- ### Creating Thelia Project with Composer (Bash) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Uses Composer to create a new Thelia project instance from the thelia/thelia-project template. This command downloads the project structure and dependencies. Replace 'path/' with your desired installation directory and '2.5.0' (or '2.4.5') with the specific version you want. ```bash $ curl -sS https://getcomposer.org/installer | php $ php composer.phar create-project thelia/thelia-project path/ 2.5.0 (or 2.4.5) ``` -------------------------------- ### Adding MAMP PHP to PATH (Bash) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Modifies the system's PATH environment variable to include the directory containing the PHP executable from a MAMP installation. This allows you to use the MAMP PHP version from the command line on Mac OSX. ```bash export PATH=/Applications/MAMP/bin/php/php5.5.x/bin/:$PATH ``` -------------------------------- ### Setting MySQL SQL Mode (SQL) Source: https://github.com/thelia/thelia-project/blob/main/Readme.md Executes an SQL command to change the global and session sql_mode to 'NO_ENGINE_SUBSTITUTION'. This is a workaround for MySQL 5.6+ default strict mode issues where inserting empty or invalid values into NOT NULL columns causes errors. ```sql SET @@GLOBAL.sql_mode='NO_ENGINE_SUBSTITUTION', @@SESSION.sql_mode='NO_ENGINE_SUBSTITUTION' ``` -------------------------------- ### Configuring phar.readonly in PHP ini Source: https://github.com/thelia/thelia-project/blob/main/Readme.md This configuration setting is required when using PECL phar for building tar archives. It disables the read-only mode for phar archives, allowing creation and modification. ```ini phar.readonly = Off ``` -------------------------------- ### Standard Thelia 2 robots.txt Directives Source: https://github.com/thelia/thelia-project/blob/main/web/robots.txt Defines rules for web crawlers accessing the Thelia 2 e-commerce site. It disallows access to the administration panel, shopping cart, and 404 error page to prevent indexing of sensitive or non-content pages. ```robots.txt User-agent: * Disallow: /admin Disallow: /cart Disallow: /404 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.