My YunoHost configuration
Hardware: rpi x
Internet access: ethernet at home
YunoHost version:
yunohost: 3.3.1
yunohost-admin: 3.3.1
moulinette: 3.2.0
ssowat: 3.3.1
personalized
I had personalized just few configurations and so on last update I have these messages:
Warning: The configuration file '/etc/postfix/main.cf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/www.lucchareyron.com.conf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/lucchareyron.com.conf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/yunohost_admin.conf' has been manually modified and will not be updated
Success! The configuration has been updated for service 'dnsmasq'
Success! The configuration has been updated for service 'slapd'
Launching migrations..
Warning: Migration 6 sync_admin_and_root_passwords has to be ran manually. Please go to Tools > Migrations on the webadmin, or run `yunohost tools migrations migrate`
On last app Opensondage update, I could see this message on the logs:
WARNING - PHP Notice: Undefined index: SERVER_PORT in /var/www/opensondage/app/classes/Framadate/Utils.php on line 27
I have a look at this line 27 here:
$ cat -n var/www/opensondage/app/classes/Framadate/Utils.php
[...]
21 class Utils {
22 /**
23 * @return string Server name
24 */
25 public static function get_server_name() {
26 $scheme = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) ? 'https' : 'http';
27 $port = in_array($_SERVER['SERVER_PORT'], [80, 443]) ? '' : ':' . $_SERVER['SERVER_PORT'];
28 $dirname = dirname($_SERVER['SCRIPT_NAME']);
29 $dirname = $dirname === '\\' ? '/' : $dirname . '/';
30 $dirname = str_replace('/admin', '', $dirname);
31 $server_name = (defined('APP_URL') ? APP_URL : $_SERVER['SERVER_NAME']) . $port . $dirname;
32
33 return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
34 }
[...]
It’s not really a big issue, but I thought it was interresting to know… I have take a look to the releases of php variables:
https://secure.php.net/manual/fr/reserved.variables.server.php
But not enough sure of mine to resolve this…
Configuration de mon YunoHost
**Matériel:**rpi x
yunohost: 3.3.1
yunohost-admin: 3.3.1
moulinette: 3.2.0
ssowat: 3.3.1
personnalisé
J’ai personnalisé quelques configurations, par exemple lors de la dernière mise à jour, j’ai eu ces messages:
Warning: The configuration file '/etc/postfix/main.cf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/www.lucchareyron.com.conf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/lucchareyron.com.conf' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/yunohost_admin.conf' has been manually modified and will not be updated
Success! The configuration has been updated for service 'dnsmasq'
Success! The configuration has been updated for service 'slapd'
Launching migrations..
Warning: Migration 6 sync_admin_and_root_passwords has to be ran manually. Please go to Tools > Migrations on the webadmin, or run `yunohost tools migrations migrate`
Lors de la dernière mise à jour de Opensondage, j’ai vu ce message dans les logs:
WARNING - PHP Notice: Undefined index: SERVER_PORT in /var/www/opensondage/app/classes/Framadate/Utils.php on line 27
J’ai regardé la ligne 27 de ce fichier:
$ cat -n var/www/opensondage/app/classes/Framadate/Utils.php
[...]
21 class Utils {
22 /**
23 * @return string Server name
24 */
25 public static function get_server_name() {
26 $scheme = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) ? 'https' : 'http';
27 $port = in_array($_SERVER['SERVER_PORT'], [80, 443]) ? '' : ':' . $_SERVER['SERVER_PORT'];
28 $dirname = dirname($_SERVER['SCRIPT_NAME']);
29 $dirname = $dirname === '\\' ? '/' : $dirname . '/';
30 $dirname = str_replace('/admin', '', $dirname);
31 $server_name = (defined('APP_URL') ? APP_URL : $_SERVER['SERVER_NAME']) . $port . $dirname;
32
33 return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
34 }
[...]
Ce n’est pas vraiment un dysfonctionnement, mais je pense que c’est intéressant de le révéler… J’ai regardé aussi l’évolution des versions de cette variable php:
https://secure.php.net/manual/fr/reserved.variables.server.php
Je ne suis pas assez sûr pour résoudre cette ligne qui à mon avis doit être corrigée ??..