Bonjour,
Avant toutes choses, sachez que je découvre Thélia et que j'ai scrupuleusement suivi le readme, essayé de cloner depuis Github, téléchargé la version sur le site officiel, lu plusieurs articles (qui donnent des explications différentes d'ailleurs), lu la doc Thélia et enfin lu plusieurs topics de cette section. En vain, impossible d'installer Thélia correctement.
Parmi mes nombreuses tentatives (dont plusieurs échecs, et des corrections comme l'ajout de intl, passage de php 5.3 à 5.4, modif de php.ini, etc), voici celle qui me semble la plus correcte :
...:/var/www/dossier# curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /var/www/dossier/composer.phar
Use it: php composer.phar
...:/var/www/dossier# ls -l
total 940
-rwxr-xr-x 1 root root 962146 janv. 26 03:15 composer.phar
...:/var/www/dossier# php composer.phar create-project thelia/thelia projet/ dev-master
Installing thelia/thelia (dev-master 6b78a33f974ee504addc029b1203be771ed7c1fa)
- Installing thelia/thelia (dev-master master)
Cloning master
Created project in projet/
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing ensepar/tcpdf (5.0.003)
Loading from cache
- Installing ensepar/html2pdf (1.0.1)
Loading from cache
- Installing imagine/imagine (v0.5.0)
Loading from cache
- Installing ircmaxell/password-compat (1.0.3)
Loading from cache
- Installing symfony/process (v2.3.4)
Loading from cache
- Installing kriswallsmith/assetic (dev-master f9f754d)
Cloning f9f754dc7524acd6daf0bf510d22c055b4967e08
- Installing leafo/lessphp (v0.4.0)
Loading from cache
- Installing symfony/yaml (v2.2.6)
Loading from cache
- Installing symfony/translation (v2.2.6)
Loading from cache
- Installing symfony/validator (v2.3.4)
Loading from cache
- Installing symfony/finder (v2.3.6)
Loading from cache
- Installing symfony/filesystem (v2.2.6)
Loading from cache
- Installing symfony/console (v2.2.6)
Loading from cache
- Installing psr/log (1.0.0)
Loading from cache
- Installing propel/propel (dev-master 793aea6)
Cloning 793aea6b762d9a72b083bfc49c74c574f67650c8
- Installing ptachoire/cssembed (v1.0.2)
Loading from cache
- Installing simplepie/simplepie (dev-master f97c8ef)
Cloning f97c8ef9be655c35e6fecdb608bdf5af05a4374a
- Installing smarty/smarty (3.1.14)
Loading from cache
- Installing swiftmailer/swiftmailer (v5.0.2)
Loading from cache
- Installing symfony/routing (v2.2.6)
Loading from cache
- Installing symfony/http-foundation (v2.2.6)
Loading from cache
- Installing symfony/event-dispatcher (v2.2.6)
Loading from cache
- Installing symfony/http-kernel (v2.2.6)
Loading from cache
- Installing symfony-cmf/routing (1.0.0)
Loading from cache
- Installing symfony/class-loader (v2.2.6)
Loading from cache
- Installing symfony/config (v2.2.6)
Loading from cache
- Installing symfony/dependency-injection (v2.2.6)
Loading from cache
- Installing symfony/property-access (v2.2.6)
Loading from cache
- Installing symfony/options-resolver (v2.2.6)
Loading from cache
- Installing symfony/intl (v2.3.4)
Loading from cache
- Installing symfony/icu (v1.0.0)
Loading from cache
- Installing symfony/locale (v2.3.4)
Loading from cache
- Installing symfony/form (v2.2.6)
Loading from cache
- Installing symfony/serializer (v2.3.4)
Loading from cache
- Installing fzaninotto/faker (dev-master 77a4e39)
Cloning 77a4e394d99a67e7fb611e8b402c2da4b80fa4f8
- Installing maximebf/debugbar (dev-master 7fbe0a5)
Cloning 7fbe0a5d4ffc7f4e205c2b15542382308d34bd0d
- Installing phenx/php-font-lib (0.2.1)
Loading from cache
- Installing phpunit/php-token-stream (1.2.0)
Loading from cache
- Installing phpunit/php-text-template (1.1.4)
Loading from cache
- Installing phpunit/phpunit-mock-objects (1.2.3)
Loading from cache
- Installing phpunit/php-timer (1.0.5)
Loading from cache
- Installing phpunit/php-file-iterator (1.3.3)
Loading from cache
- Installing phpunit/php-code-coverage (1.2.12)
Loading from cache
- Installing phpunit/phpunit (3.7.24)
Loading from cache
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing twig/twig (Assetic provides the integration with the Twig templating engine)
symfony/validator suggests installing doctrine/common ()
propel/propel suggests installing monolog/monolog (The recommended logging library to use with Propel.)
symfony/routing suggests installing doctrine/common (~2.2)
symfony/http-kernel suggests installing symfony/browser-kit (2.2.*)
maximebf/debugbar suggests installing monolog/monolog (Log using Monolog)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.0.5)
phpunit/phpunit suggests installing phpunit/php-invoker (>=1.1.0,<1.2.0)
Generating autoload files
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y
...:/var/www/dossier# cd projet/
...:/var/www/dossier/projet# php Thelia thelia:install
Welcome to Thelia install process
You need information about your database configuration (host, username, password, database name, etc)
Caution : You are installing Thelia in cli mode, we verify some information, but this information are only available for the cli php sapi
This informations can be different in your apache or cgi php.ini files
Checking some permissions
Your PHP version 5.4.24-1+sury.org~precise+1 is well enough to run Thelia2 (5.4 needed) ... Ok
Your directory /var/www/dossier/projet/local/config is writable ... Ok
Your directory /var/www/dossier/projet/log is writable ... Ok
Your directory /var/www/dossier/projet/cache is writable ... Ok
Your directory /var/www/dossier/projet/web is writable ... Ok
Your directory /var/www/dossier/projet/local/session is writable ... Ok
Your memory_limit server configuration (currently -1) is well enough to run Thelia2 (128M needed) ... Ok
Your post_max_size server configuration (currently 20M) is well enough to run Thelia2 (20M needed) ... Ok
Your upload_max_filesize server configuration (currently 2M) is well enough to run Thelia2 (2M needed) ... Ok
curl php extension is loaded ... Ok
gd php extension is loaded ... Ok
intl php extension is loaded ... Ok
mcrypt php extension is loaded ... Ok
pdo_mysql php extension is loaded ... Ok
Database host : localhost
Database name (if database does not exist, Thelia will try to create it) : ...
Database username : ...
Database password : ...
Creating Thelia database, please wait
Database created without errors
Creating file configuration, please wait
Config file created with success. Your thelia is installed
Une fois arrivé ici, je teste http://mon_serveur.fr/blabla/dossier/projet/web/index_dev.php.
Warning comme quoi impossible de touch() le fichier log-thelia.txt.
Je le créé manuellement, nouveau warning comme quoi impossible de le fopen(). Pourtant le checks des doirts avaient l'air bons.
Comme dit dans un topic, j'ajoute dans le .htaccess :
RewriteBase /blabla/dossier/projet
Rien ne change.
Je décide alors de créer l'admin :
...:/var/www/dossier/projet# php Thelia admin:create
Please enter the admin user information:
Admin login name : ...
User first name : ...
User last name : ...
Password : ...
Password (again): ...
User ... successfully created.
Et maintenant après reload de index_dev.php, j'obtiens une simple page blanche contenant "Forbidden" (générée par Thélia je présume).
Rien dans les logs Apache access.log ou error.log. Par contre, j'ai une page blanche pour index.php avec dans error.log :
[error] [client 109.9.251.94] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/dossier/projet/cache/prod)\n' in /var/www/dossier/projet/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php:631\nStack trace:\n#0 /var/www/dossier/projet/core/lib/Thelia/Core/Thelia.php(276): Symfony\\Component\\HttpKernel\\Kernel->buildContainer()\n#1 /var/www/dossier/projet/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php(556): Thelia\\Core\\Thelia->buildContainer()\n#2 /var/www/dossier/projet/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php(139): Symfony\\Component\\HttpKernel\\Kernel->initializeContainer()\n#3 /var/www/dossier/projet/core/lib/Thelia/Core/Thelia.php(100): Symfony\\Component\\HttpKernel\\Kernel->boot()\n#4 /var/www/dossier/projet/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kern in /var/www/dossier/projet/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php on line 631
Mais ça, je voulais le garder plus tard.
A noter aussi que j'ai testé de copier les fichiers téléchargées depuis le site, et d'aller simplement dans install/ et web/install/ pour tenter l'install depuis le navigateur, Forbidden (cette fois-ci, le 403 classique).
J'ai aussi testé les chown, chmod préconisés sur les docs d'aide, un peu tout, je n'arrive à rien.
La base de données est OK, pas de soucis de ce coté.
Si quelqu'un peut m'expliquer comment faire. Je ne vois vraiment pas quoi tester d'autre.
Merci d'avance !