[Prestashop] ecommerce solution

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: GitHub - YunoHost-Apps/prestashop_ynh: Prestashop package for YunoHost
Report a bug: Issues · YunoHost-Apps/prestashop_ynh · GitHub
SPIP website: https://www.prestashop.com/

Please feel free to test and report any problem!

2 Likes

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?

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

Merci je vais essayer de creuser ça

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

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

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

I have repackaged Prestashop.
The post-install should work (with db credentials send to admin mail.)
There is still an issue with ssl not been set by default when you try to acces Prestashop domain…

Hello

Can you look at the issue here?

After installing; opening the page show a message like this:
“You need at most PHP 7.4 to install PrestaShop. Your current PHP version is 8.x.xx”

Hello all!

I have just successfully installed Prestashop via the v2 package, on Yunohost 11.2.3.

Edit: I have now solved the issues I was having. Leaving the trail below in case others can use it.

See install success status below:

Issue 1: Prestashop admin page doesn’t load

However, when I attempt to follow the Post Install Notes, I get a blank webpage, as below:

Attempt 1

After searching the forums for similar issues, I have also tried the following urls:

Attempt 1

None have success.

Attempt 2

Based on the mention of SSL certificate issue above, I checked the Let’s Encrypt certificate. It was no longer listed as installed.

I re-installe the Let’s Encrypt certificate. In the logs while loading it, it said that it was already created. Lets Encrypt certificate is now successfully installed according to one dialog box, but not according to the the other. See below:

Result 2

Some progress! Now when I refresh shop.mydomain.tld link, I get a 404 error instead of previous blank page. See below:

Attempt 3

Re-loaded web browser after a couple of minutes.

Success! The prestashop window appeared!
The lets encrypt certificate now displays correctly in Yunohost admin:

Issue 2: Nudged to update but can’t

As below:

It offers a newer version, but the newer version cannot be installed (notice error message above). So save yourself the time and select ‘No, thanks’ first. :smiley:

Issue 3: Beware to tick the SSL option (so yunohost acknowledges it fully)

Then there is the series of set up screens. There is an option to tick ‘SSH’. I guess this is where the Let’s Encrypt certificate will finally be recognised on all console messages. :crossed_fingers:

Issue 4: Nudged database login as root is incorrect

After a few screens, there is the database option screen. Important! a default username of ‘root’ is already entered. It is important to replace this with the username given in the Post Install Notes message from Yunohost. See below:

Issue 5: Open your ports correctly

It took a few tries for me to get this working. I had to open port 3306 (a TCP port) on my router via IPv4 and IPv6 as well.

Issue 6: Deleting the install file

I got through the install process, but got stuck for a while on how to ‘delete the install file’. See below:

After searching the Yunohost forum and several other forums for posts about Debian file structure, I SSH into my Yunohost to search for the file. I cannot find it.

I have looked in the following places for the Prestashop install file I need to delete:

  • usr/lib
  • home/localhost
  • home/yunohost.app
  • etc/yunohost
  • usr/share/applications

Other strategies tried:

  • install ‘locate’ tool using ‘apt-get’ and trying ‘locate prestashop’

Issue 6 result

Success!
Solution: the ‘install’ folder can be found at:

/var/www/prestashop

To delete the install folder and all its contents, use sudo or root, then type:

rm -rf install

Issue 7: Upgrading via 1-click install requires more memory

Still working on this one. But this is the end of the Yunohost related issues, so perhaps best to end the public follow along here. :slight_smile:

Happy searching. I hope this helps someone!

1 Like