Giter Site home page Giter Site logo

yunohost-apps / multi_webapp_ynh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kloadut/my_webapp_ynh

5.0 4.0 8.0 157 KB

Custom Webapp without FTP access

License: GNU General Public License v3.0

Shell 98.62% HTML 1.38%
yunohost yunohost-apps multi-webapp

multi_webapp_ynh's Introduction

Multi webapp for YunoHost

Integration level
Install Multi webapp with YunoHost

Lire ce readme en français.

This package allow you to install Multi webapp quickly and simply on a YunoHost server.
If you don't have YunoHost, please see here to know how to install and enjoy it.

Overview

Blank web app container made to be used with a non yet packaged web application. This application can be installed a multiple times.

Shipped version: NA

Screenshots

Demo

No demo available.

Configuration

Documentation

  • YunoHost documentation: There no other documentations, feel free to contribute.

YunoHost specific features

Multi-users support

Supported architectures

  • x86-64b -
  • ARMv8-A -
  • Jessie x86-64b -

Limitations

Additionnal informations

A directory will be created for your application in /var/www/webapp_USER/DOMAIN_PATH. Your application shall be put inside. You can find a standard nginx configuration in /etc/nginx/conf.d/DOMAIN.d/webapp_DOMAIN_PATH.conf and a standard php config in /etc/php5/fpm/pool.d/webapp_DOMAIN_PATH.conf and /etc/php5/fpm/conf.d/20-webapp_DOMAIN_PATH.ini. If you ask for a database, your credentials will be in the file /var/www/webapp_USER/DOMAIN_PATH/db_info.txt

Links


Developers infos

Please do your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/multi_webapp_ynh/tree/testing --debug
or
sudo yunohost app upgrade multi_webapp -u https://github.com/YunoHost-Apps/multi_webapp_ynh/tree/testing --debug

multi_webapp_ynh's People

Contributors

alexaubin avatar kloadut avatar maniackcrudelis avatar yalh76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

multi_webapp_ynh's Issues

Désinstallation incomplète empêchant php de s’exécuter

J'ai installé l'application puis l'a désinstallé par la suite.
RAS pendant longtemps.
Jusqu'au redémarrage suivant du serveur, où php refusait de se lancer. Il est utilisé par plusieurs apps yunohost, qui affichaient toutes 502 Bad Gateway. Les logs mentionnent le nom que j'ai donné à l'appli lorsque j'ai installé multi_webapp.

ERROR: [pool webapp_monhost.tld_scripts] the chdir path '/var/www/webapp_admin/monhost.tld_scripts' does not exist or is not a directory
ERROR: failed to post process the configuration
ERROR: FPM initialization failed

J'ai résolu ce problème en supprimant les fichiers /etc/7.0/fpm/pool.d/webapp_monhost.tld_scripts.conf et /etc/php/7.0/fpm/conf.d/20-webapp_webapp_monhost.tld.ini.
Ces fichiers n'ont pas été nettoyés correctement lors de la désinstallation de multi_webapp.
Il est donc fort probable qu'un changement de version de php entre l'installation et la désinstallation ait modifié le path de fichiers à supprimer.

[Maintenance ping] Is this app still maintained ?

Hello !

This is a friendly automatic notice from the Yunohost Apps team : our tool noticed that this app is listed in the community/official app lists - but this app appears to be inactive.

Hence, this issue was created automatically to check if this app is still actively maintained.

You are the current maintainer ? 👷‍♂️ 👷‍♀️

You still actively maintain this app ? 🎉

Please close this issue to signify that you still actively maintain this app. Nothing else, and thank you for your work ❤️ !

You don't intend to maintain this app anymore ? 😢

Either don't do anything, or add a comment to explicitly state that you do not intend / have time / ... to maintain this app (but thanks for your work so far ! 😘). After 15 days, if this issue is still opened, the app will be considered unmaintained.

You wish to become the new maintainer of this app ? 😄

You are welcome and free to comment in this thread that you wish to become the new maintainer, and/or to create the corresponding pull request to fix this issue ! (If you do not already have commit rights on this repo, we can then arrange things with the rest of the app team. 😉) Once this issue is closed, the app will then be flagged again as maintained !

Fails to create Application

useradd: invalid user name 'webapp_myapp.mydomain.com_'
ynh_die 'Unable to create webapp_myapp.mydomain.com_ system account'

Error in installation

When tried installing this app, the installation process gave an error while creating an user.
I tried installing this app on a fresh installation in virtualbox image server locally.
Attached is the log for reference.
multi_webapp_ynh.txt

Question : Page par défaut ?

Bonjour,

J'ai installé cette appli et le FTP qui va avec, mais une question demeure.
Que je vais à l'URL de l'appli, j'ai la page "Welcome to nginx".

Seulement quand je vais dans le FTP, l'index.html accessible est celle avec la page aléatoire du chat.
Où est le problème ? Dans l'appli FTP qui m'ouvre pas le bon dossier ou dans l'appli my_webapp qui n'affiche pas le bon index ?

Léo

Level 5 forcé

INSTALL SCRIPT
✘ set -eu is missing at beginning of file.
Remplacé par ynh_abort_if_errors

REMOVE SCRIPT
✘ set -u is missing at beginning of file.
Usage de SECURE_REMOVE

UPGRADE SCRIPT
✘ set -eu is missing at beginning of file.
Remplacé par ynh_abort_if_errors

BACKUP SCRIPT
✘ set -eu is missing at beginning of file.
Il est bien présent au début du script !

RESTORE SCRIPT
✘ At line 54 'ynh_die' or 'exit' command is executed with system modification before.
Aucune modification avant.
✘ set -eu is missing at beginning of file.
Il est bien présent au début du script !

.FONCTIONS SCRIPT
✘ Line 79 you should add "sudo" before this command line: ***
rm -r $temp_dir

sudo n'est pas nécessaire. Et c'est mieux sans !
✘ Line 244/332/333: 'exit' command shouldn't be used. Use 'ynh_die' helper instead.
Variable exit_code
✘ Line 331/357: 'exit' command shouldn't be used. Use 'ynh_die' helper instead.
Fonction ynh_exit_properly
✘ Line 334: 'exit' command shouldn't be used. Use 'ynh_die' helper instead.
exit 0, ce n'est pas un exit sur une erreur.

Needs to use the new ynh_permission helpers

I'm new to YunoHost so not sure what exactly this is about, but the following warning shows up when installing the app:

Packagers! This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated... Instead, you should use the new helpers 'ynh_permission_{create,urls,update,delete}' and the 'visitors' group to initialize the public/private access. Check out the documentation at the bottom of yunohost.org/groups_and_permissions to learn how to use the new permission mechanism.

I assume something in the app's configuration needs to be updated?

Problème à l'installation

Bonjour

Je ne parviens pas à installer plusieurs instance. En effet, j'obtiens les infos suivantes après installation ... étrange. Je précise que j'ai précédemment installé puis supprimé l'app qui est proposé officiellement par Yunohost.

ID my_webapp
Description App vide avec un accès FTP au répertoire Web
Multi instance Non

cordialement

Gérer les noms de domaine > 24 caractères

Les noms d'utilisateurs Linux sont limités à 32 caractères or cette appli génère un nom d'utilisateur de la forme 'webapp_NDD_', donc limite l'utilisation d'un nom de domaine de moins de 24 caractères (erreur à l'installation de l'appli dans le cas contraire).
À voir s'il faut tronquer le ndd, générer un nom avec un simple n°, un hash du ndd, ...

Change PHP version

Hello,

Why I can't change PHP version under 7.1 ? I want to use PHP5.
How to use PHP5 in my webapp ?

Thanks

[Maintenance ping] Is this app still maintained ?

Hello !

This is a friendly automatic notice from the Yunohost Apps team : our tool noticed that this app is listed in the community/official app lists - but this app appears to be inactive.

Hence, this issue was created automatically to check if this app is still actively maintained.

You are the current maintainer ? 👷‍♂️ 👷‍♀️

You still actively maintain this app ? 🎉

Please close this issue to signify that you still actively maintain this app. Nothing else, and thank you for your work ❤️ !

You don't intend to maintain this app anymore ? 😢

Either don't do anything, or add a comment to explicitly state that you do not intend / have time / ... to maintain this app (but thanks for your work so far ! 😘). After 15 days, if this issue is still opened, the app will be considered unmaintained.

You wish to become the new maintainer of this app ? 😄

You are welcome and free to comment in this thread that you wish to become the new maintainer, and/or to create the corresponding pull request to fix this issue ! (If you do not already have commit rights on this repo, we can then arrange things with the rest of the app team. 😉) Once this issue is closed, the app will then be flagged again as maintained !

Upload file size

For an upload, it seems that the file size is limited to 1024 kilobytes for the applications installed under multi_webapp_ynh. If so, how do you increase the size of the files?
I looked at "#/etc/yunohost/apps/my_webapp/conf/extra_php-fpm.conf" and "php-fpm.conf"
and I saw they contain : .... "php_value[upload_max_filesize] = 1G" .
Is it the problem ? 1G confused with 1M ( read 1M) ...
I specify that my php.ini file calibrates the upload to 5 Mb

No 'mail' function on Raspbian Jessie

Hello,

I tried to install the webapp on my RPi 3 with latest Yunohost (2.7.9). The app was already installed (for a year or so) on another path of the same domain.
This installation failed and auto-removed, with the error :

_common.sh: line 569: mail: command not found"
_common.sh: line 569: echo: write error: Broken pipe

The faulty command is as follow :
echo "$mail_message" | mail -a "Content-Type: text/plain; charset=UTF-8" -s "$mail_subject" "$recipients"
Curiously, although I use the mail server normaly, there is no "mail" command on the system. Is this a normal behaviour ?

Thanks in advance for the fix, I remain available for further details.

Can't install on secound app on different URL with same admin

+ sudo yunohost app checkurl silkaj.duniter.org/ -a multi_webapp__2
Attention : !!
+ parent_dir=/var/www/webapp_moul
+ '[' / = / ']'
+ final_path=/var/www/webapp_moul
+ appname=root_webapp
Attention :   multi_webapp__2's script has encountered an error. Its execution was cancelled.
+ '[' -e /var/www/webapp_moul ']'
Attention : !!
+ echo 'This path already contains a folder'
This path already contains a folder
Attention : 
+ false
+ ynh_exit_properly
+ exit_code=1
+ '[' 1 -eq 0 ']'
+ trap '' EXIT
+ set +eu
+ echo -e '!!\n  multi_webapp__2'\''s script has encountered an error. Its execution was cancelled.\n!!'
+ type -t ynh_clean_setup
+ ynh_die
+ echo ''
+ exit 1
Exécution du script « /var/cache/yunohost/from_file/multi_webapp_ynh-master/scripts/remove »...

[Maintenance ping] Is this app still maintained ?

Hello !

This is a friendly automatic notice from the Yunohost Apps team : our tool noticed that this app is listed in the community/official app lists - but this app appears to be inactive.

Hence, this issue was created automatically to check if this app is still actively maintained.

You are the current maintainer ? 👷‍♂️ 👷‍♀️

You still actively maintain this app ? 🎉

Please close this issue to signify that you still actively maintain this app. Nothing else, and thank you for your work ❤️ !

You don't intend to maintain this app anymore ? 😢

Either don't do anything, or add a comment to explicitly state that you do not intend / have time / ... to maintain this app (but thanks for your work so far ! 😘). After 15 days, if this issue is still opened, the app will be considered unmaintained.

You wish to become the new maintainer of this app ? 😄

You are welcome and free to comment in this thread that you wish to become the new maintainer, and/or to create the corresponding pull request to fix this issue ! (If you do not already have commit rights on this repo, we can then arrange things with the rest of the app team. 😉) Once this issue is closed, the app will then be flagged again as maintained !

https par défaut ?

Rebonjour,

Je pense que pour une appli de ce genre, on devrait enlever la redirection en https automatique.

Léo

404 Not Found (htaccess et nginx)

Bonjour

En installant une application tel que VOID ou HTMLY (qui utilisent un fichier .htaccess avec rewrite) dans my_webapp, lors de la navigation sur le site, j'obtiens une erreur 404 pour toutes les pages. La page d'accueil s'affiche par contre.

ex:
domain.com/my_webapp = page d'accueil de l'appli accessible

domain.com/my_webapp/page_du_site = 404 Not Found

Je ne rencontrais pas ce problème auparavant.

Est-ce une erreur de ma part, un truc à modifier quelque part, ou bien my_webapp n'est pas à jour avec les dernières versions de yunohost ?

Cordialement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.