Prestashop package - ecommerce solution

#1

Hello,

A community package is now available for Prestashop.

Official description:

The free ecommerce solution to start your online business and start selling online. Build an online store for free with PrestaShop.

First login

Access the site administration by writing the following address in your browser.

https://www.domain.tld/prestashop/admin

Links

Package URL: https://github.com/YunoHost-Apps/prestashop_ynh
Report a bug: https://github.com/YunoHost-Apps/prestashop_ynh/issues
SPIP website: https://www.prestashop.com/

Please feel free to test and report any problem!

2 Likes
#2

Bonjour,

Je remet l’issue que j’ai créé sur le GITHUB si quelqu’un peu me donner un coup de main

Bonjour, j’ai un serveur OVH avec YUNOHOST.
J’ai voulu installer prestashop mais j’ai ce log d’erreur d’entrée. J’ai essayé via l’interface web et par SSH.
J’ai wordpress, collabora online, GARADIN, PEERTUBE, Funkwhale, NEXTCLOUD, ROUNDCUBE
J’ai remplacé le nom de domaine par Myserver, l’utilsateur par XuserX ainsi que le pasword et le mail.
Bref le log
`2019-03-31 14:14:14,562: DEBUG - Exécution de la commande « sh -c
YNH_APP_INSTANCE_NUMBER=1
YNH_CWD=/var/cache/yunohost/from_file/prestashop_ynh-master/scripts
YNH_APP_INSTANCE_NAME=prestashop YNH_STDINFO=/tmp/tmp_vU9oU/stdinfo
YNH_APP_ARG_PASSWD=MYPASSWORD YNH_APP_ARG_IS_PUBLIC=1
YNH_APP_ARG_ADMIN=XuserX YNH_APP_ARG_EMAIL=mail@mail.fr
YNH_APP_ID=prestashop YNH_APP_ARG_PATH=/prestashop
YNH_APP_ARG_DOMAIN=myserver BASH_XTRACEFD=7 /bin/bash -x “./install”
MyServer/prestashop XuserX 1 MyPassword mymail@mail.fr prestashop
7>&1 »… 2019-03-31 14:14:14,563: DEBUG - About to run the
command ‘[‘sh’, ‘-c’, ‘YNH_APP_INSTANCE_NUMBER=1
YNH_CWD=/var/cache/yunohost/from_file/prestashop_ynh-master/scripts
YNH_APP_INSTANCE_NAME=prestashop YNH_STDINFO=/tmp/tmp_vU9oU/stdinfo
YNH_APP_ARG_PASSWD=MyPASSWORD YNH_APP_ARG_IS_PUBLIC=1
YNH_APP_ARG_ADMIN=XuserX YNH_APP_ARG_EMAIL=mymail@mail.fr
YNH_APP_ID=prestashop YNH_APP_ARG_PATH=/prestashop
YNH_APP_ARG_DOMAIN=myserver BASH_XTRACEFD=7 /bin/bash -x “./install”
myserver.fr /prestashop XuserX 1 MyPASSWORD MAIL@mymail.fr prestashop
7>&1’]’ 2019-03-31 14:14:14,575: DEBUG - + source _common.sh
2019-03-31 14:14:14,576: DEBUG - + source /usr/share/yunohost/helpers
2019-03-31 14:14:14,576: DEBUG - +++ run-parts --list
/usr/share/yunohost/helpers.d 2019-03-31 14:14:14,576: DEBUG - ++ for
helper in $(run-parts --list /usr/share/yunohost/helpers.d
2>/dev/null) 2019-03-31 14:14:14,576: DEBUG - ++ ‘[’ -r
/usr/share/yunohost/helpers.d/backend ‘]’ 2019-03-31 14:14:14,577: DEBUG

  • ++ . /usr/share/yunohost/helpers.d/backend 2019-03-31 14:14:14,577:
    DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,577:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    2019-03-31 14:14:14,577: DEBUG - ++ .
    /usr/share/yunohost/helpers.d/filesystem 2019-03-31 14:14:14,578: DEBUG -
    +++ CAN_BIND=1 2019-03-31 14:14:14,578: DEBUG - ++ for helper in
    $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    2019-03-31 14:14:14,578: DEBUG - ++ ‘[’ -r
    /usr/share/yunohost/helpers.d/getopts ‘]’ 2019-03-31 14:14:14,578: DEBUG
  • ++ . /usr/share/yunohost/helpers.d/getopts 2019-03-31 14:14:14,679:
    DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,680:
    WARNING - ./install: ligne 30: YNH_APP_ARG_LANGUAGE : variable sans
    liaison 2019-03-31 14:14:14,681: DEBUG - ++ ‘[’ -r
    /usr/share/yunohost/helpers.d/ip ‘]’ 2019-03-31 14:14:14,682: WARNING -
    !! 2019-03-31 14:14:14,682: DEBUG - ++ .
    /usr/share/yunohost/helpers.d/ip 2019-03-31 14:14:14,683: WARNING - 's
    script has encountered an error. Its execution was cancelled.
    2019-03-31 14:14:14,683: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,684:
    WARNING - !! 2019-03-31 14:14:14,685: DEBUG - ++ ‘[’ -r
    /usr/share/yunohost/helpers.d/mysql ‘]’ 2019-03-31 14:14:14,685: WARNING
  • 2019-03-31 14:14:14,686: DEBUG - ++ .
    /usr/share/yunohost/helpers.d/mysql 2019-03-31 14:14:14,686: DEBUG - +++
    MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2019-03-31 14:14:14,686: DEBUG -
    ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d
    2>/dev/null) 2019-03-31 14:14:14,687: DEBUG - ++ ‘[’ -r
    /usr/share/yunohost/helpers.d/network ‘]’ 2019-03-31 14:14:14,687: DEBUG
  • ++ . /usr/share/yunohost/helpers.d/network 2019-03-31 14:14:14,687:
    DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,688:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/nodejs ‘]’ 2019-03-31
    14:14:14,688: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
    2019-03-31 14:14:14,689: DEBUG - +++ n_install_dir=/opt/node_n
    2019-03-31 14:14:14,689: DEBUG - +++
    node_version_path=/opt/node_n/n/versions/node 2019-03-31 14:14:14,689:
    DEBUG - +++ export N_PREFIX=/opt/node_n 2019-03-31 14:14:14,690: DEBUG -
    +++ N_PREFIX=/opt/node_n 2019-03-31 14:14:14,690: DEBUG - ++ for helper
    in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
    2019-03-31 14:14:14,690: DEBUG - ++ ‘[’ -r
    /usr/share/yunohost/helpers.d/package ‘]’ 2019-03-31 14:14:14,691: DEBUG
  • ++ . /usr/share/yunohost/helpers.d/package 2019-03-31 14:14:14,691:
    DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,691:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’ 2019-03-31
    14:14:14,692: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
    2019-03-31 14:14:14,692: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,692:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/psql ‘]’ 2019-03-31
    14:14:14,692: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql 2019-03-31
    14:14:14,692: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,693:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’ 2019-03-31
    14:14:14,693: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
    2019-03-31 14:14:14,693: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,693:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’ 2019-03-31
    14:14:14,693: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
    2019-03-31 14:14:14,693: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,694:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’ 2019-03-31
    14:14:14,694: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
    2019-03-31 14:14:14,694: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,694:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’ 2019-03-31
    14:14:14,694: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2019-03-31
    14:14:14,694: DEBUG - ++ for helper in $(run-parts --list
    /usr/share/yunohost/helpers.d 2>/dev/null) 2019-03-31 14:14:14,694:
    DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’ 2019-03-31
    14:14:14,695: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
    2019-03-31 14:14:14,695: DEBUG - + ynh_abort_if_errors 2019-03-31
    14:14:14,695: DEBUG - + set -eu 2019-03-31 14:14:14,695: DEBUG - + trap
    ynh_exit_properly EXIT 2019-03-31 14:14:14,695: DEBUG - +
    domain=mydomain 2019-03-31 14:14:14,695: DEBUG - + path=/prestashop
    2019-03-31 14:14:14,695: DEBUG - + admin_prestashop=XuserX 2019-03-31
    14:14:14,696: DEBUG - ++ ynh_exit_properly 2019-03-31 14:14:14,696:
    DEBUG - ++ local exit_code=1 2019-03-31 14:14:14,696: DEBUG - ++ ‘[’ 1
    -eq 0 ‘]’ 2019-03-31 14:14:14,696: DEBUG - ++ trap ‘’ EXIT 2019-03-31
    14:14:14,696: DEBUG - ++ set +eu 2019-03-31 14:14:14,696: DEBUG - ++
    echo -e '!!\n ‘’‘s script has encountered an error. Its execution was
    cancelled.\n!!’ 2019-03-31 14:14:14,697: DEBUG - ++ type -t
    ynh_clean_setup 2019-03-31 14:14:14,697: DEBUG - ++ ynh_clean_setup
    2019-03-31 14:14:14,697: DEBUG - ++ true 2019-03-31 14:14:14,697: DEBUG -
    ++ ynh_die 2019-03-31 14:14:14,697: DEBUG - ++ echo ‘’ 2019-03-31
    14:14:14,697: DEBUG - ++ exit 1`
    Merci pour l’aide

question annexe, que ce passerait-il si je dépose à la racine dans un dossier pretashop (par FTP par exemple) l’install? je peux ensuite le raccrocher à YUNO?

#3

Bonjour,
Je dirais, sans aucune garantie, qu’une fois paramétré SSO et Nginx, t’assurer d’avoir toutes les dépendances requises par Prestashop ça devrait le faire.
Il doit bien y avoir d’autres manips à effectuer, mais soyons simples :slight_smile:
Melina

1 Like
#4

Merci je vais essayer de creuser ça

#5

Bon j’ai triché mais ça semble fonctionner.
j’ai installé prestashop via CUSTOM WEBAPP
j’ai accès au prestashop en tapant l’adresse complète.
Comme c’est pour faire des tests de skin et MAJ c’est pas gênant, mais j’ajouterai bien directement la brique.

1 Like
#6

Bonjour,
Je pense que si tu es motivé tu peux t’inspirer de Custom Webapp pour packager Prestashop pour Yunohost.
Ou pas, et partir de zéro :
https://yunohost.org/#/packaging_apps_start_fr
https://yunohost.org/#/packaging_apps_fr
Bonne soirée !

1 Like
#7

Ben le problème c’est qu’il a été packagé mais que l’installation plantait chez moi, donc j’ai dû trouver une bidouille ^^
Il n’empêche que je vais essayer car il faut essayer de rendre ce que je peux à la communauté

Bonne journée

1 Like