THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 création compte admin

(23-09-2014 18:34:15)


Après avoir tout installé sur mon serveur debian, je n'ai à aucun moment créé de compte admin donc compliqué de me connecté (en effet il n'y a pas de dossier web/admin

J'ai donc essayé la commande

su Thelia admin:create

avec ma connexion SSH mais rien ne se passe...

Idée ?

Last edited by epitomz (23-09-2014 18:49:36)

Offline

#2 Re: création compte admin

(23-09-2014 20:21:24)


En fait je suis peut être un débutant en debian et c'est pour ça que je n'y parviens pas...

Dans le fichier /etc/ssh/sshd_config de mon serveur, j'ai un "permitrootlogin no" qui ne me permet de prendre les droits roots et donc d'effectuer l'opération de création d'un admin.

C'est possible ?

Offline

#3 Re: création compte admin

(23-09-2014 21:15:44)


Ca n'a rien à voir. Ce que tu evoques, c'est l'interdiction à root de se connecter a la machine par ssh. Il n'y a pas de lien entre l'admin Thelia et les users du système.

La commande "su Thelia..." n'a pas de sens.

Essaie Thelia:admin:create.

Enfin, les url de Thelia sont virtuelles. Il n'existe pas et n'existera jamais de répertoire web/admin.


OpenStudio Toulouse

Offline

#4 Re: création compte admin

(24-09-2014 09:51:54)


Bonjour,

J'ai réessayé une installation complète. A l'étape vérification des données j'ai créé un login et un password pour l'administrateur qui ne fonctionne pas pour une connexion à /thelia/web/index.php/admin/checklogin
J'ai tenté la commande Thelia:admin:create mais ça me retourne un

-bash: Thelia:admin:create: command not found

Je précise que j'ai fait un cd à la racine de mon dossier thelia juste avant.

Merci pour votre aide

Offline

#5 Re: création compte admin

(24-09-2014 10:03:04)


La commande est :

 php Thelia admin:create

Last edited by asturyan (24-09-2014 10:03:38)

Offline

#6 Re: création compte admin

(24-09-2014 10:08:34)


Avec ou sans le php devant, j'obtiens ça :

X-Powered-By: PHP/4.4.9
Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected T_NEW in <b>/homepages/.../htdocs/thelia/Thelia</b> on line <b>4</b><br />

P.S: je suis bien en php 5.5

Last edited by epitomz (24-09-2014 10:13:06)

Offline

#7 Re: création compte admin

(24-09-2014 10:17:43)


Bon du coup j'ai tenté avec php6 et php5.5 et maintenant j'ai ça :

X-Powered-By: PHP/5.5.16
Content-type: text/html

<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'this script can only be launched with cli sapi' in /homepages/.../htdocs/thelia/Thelia:3
Stack trace:
#0 {main}
  thrown in <b>/homepages/.../htdocs/thelia/Thelia</b> on line <b>3</b><br />

Offline

#8 Re: création compte admin

(24-09-2014 10:25:39)


Là tu étais clairement en PHP 4..

epitomz wrote:

Avec ou sans le php devant, j'obtiens ça :

X-Powered-By: PHP/4.4.9
Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected T_NEW in <b>/homepages/.../htdocs/thelia/Thelia</b> on line <b>4</b><br />

P.S: je suis bien en php 5.5

Offline

#9 Re: création compte admin

(24-09-2014 10:26:35)


peux-tu faire un php -v ?

epitomz wrote:

Bon du coup j'ai tenté avec php6 et php5.5 et maintenant j'ai ça :

X-Powered-By: PHP/5.5.16
Content-type: text/html

<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'this script can only be launched with cli sapi' in /homepages/.../htdocs/thelia/Thelia:3
Stack trace:
#0 {main}
  thrown in <b>/homepages/.../htdocs/thelia/Thelia</b> on line <b>3</b><br />

Offline

#10 Re: création compte admin

(24-09-2014 10:30:09)


Ce que je veux dire c'est que je ne sais pas comment forcer l'utilisation du php5 avec mon serveur chez 1&1, j'ai beau faire un 

/usr/bin/php5.5 Thelia create:admin

Ca me renvois :

X-Powered-By: PHP/5.5.16
Content-type: text/html

<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'this script can only be launched with cli sapi' in /homepages/21/d541458351/htdocs/thelia/Thelia:3
Stack trace
#0 {main}
  thrown in <b>/homepages/.../htdocs/thelia/Thelia</b> on line <b>3</b><br />

Offline

#11 Re: création compte admin

(24-09-2014 10:52:37)


Bon finalement après avoir fait quelques changements trouvés par ci par là sur le forum, j'arrive à lancer la commande

/usr/bin/php5.5 Thelia admin:create

Et j'obtiens :

Please enter the admin user information:
Admin login name :  Notice: Use of undefined constant STDIN - assumed 'STDIN' in /homepages/.../htdocs/thelia/core/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php line 80

Puis la ligne admin login name se réécrit indéfiniment, je suis obligé d'arrêter avec un cntrl c

Last edited by epitomz (24-09-2014 10:55:53)

Offline

#12 Re: création compte admin

(24-09-2014 11:20:58)


Bon et bien j'y suis arrivé...

Il fallait ajouter la ligne

define('STDIN',fopen("php://stdin","r"));

au début du fichier /core/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php

En espérant que ça puisse en aider certains