Jump to content
XPEnology Community

totof74

Transition Member
  • Posts

    5
  • Joined

  • Last visited

totof74's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Bon, j'ai trouvé ce qui n'allait pas dans ce fichier de conf dans le log de nginx : "open() "/etc/nginx/conf.d/php.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/www.lbc.conf" Je faisais référence à un fichier inexistant a priori. J'ai toujours mon erreur http 502 à régler... Quand j'essaie d'accéder au site, voici ce que ça fait dans nginx.log : 2017/10/27 20:29:58 [error] 19458#19458: *4572 open() "/var/services/web/missing" failed (2: No such file or directory), client: x.x.x.x, server: , request: "GET /missing HTTP/1.1", host: "y.y.y.y", referrer: "http://y.y.y.y/lbc/"
  2. I just removed www.lbc.conf file that I have added before, and I know have my http error back. But not a 500 one, a 502... My www.lbc.conf file was not appropriate but I don't know what was wrong. I created it adapting phpMyAdmin one's. Can anyone can tell? Here is the file: location ^~ /lbc/ { fastcgi_read_timeout 300; root /var/services/web; include /etc/nginx/conf.d/php.conf; include /etc/nginx/conf.d/cache.conf; location ~ ^/lbc/(.*)/\. { deny all; } location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } location ~ \.php$ { include fastcgi.conf; fastcgi_pass unix:/run/php-fpm/php56-fpm.sock; } } location = /lbc { fastcgi_read_timeout 300; root /var/services/web; try_files $uri/ /lbc/index.php$is_args$args; } Thank's for your help
  3. Une avancée, j'avais créé un fichier www.lbc.conf qui doit être mal configuré. Après l'avoir renommé en .old, et relancé nginx, j'ai de nouveau une erreur quand je vais sur http://x.x.x.x/lbc. Par contre, maintenant, c'est une erreur 502. Voici le contenu de ce que j'avais mis dans www.lbc.conf : location ^~ /lbc/ { fastcgi_read_timeout 300; root /var/services/web; include /etc/nginx/conf.d/php.conf; include /etc/nginx/conf.d/cache.conf; location ~ ^/lbc/(.*)/\. { deny all; } location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } location ~ \.php$ { include fastcgi.conf; fastcgi_pass unix:/run/php-fpm/php56-fpm.sock; } } location = /lbc { fastcgi_read_timeout 300; root /var/services/web; try_files $uri/ /lbc/index.php$is_args$args; } Quelqu'un peut-il me dire se qui clochait dans ce fichier ? (j'étais parti de celui de phpMyAdmin que j'avais adapté il me semble). Est-ce bien cela qu'il faut faire pour que mon site soit fonctionnel ? (je veux dire "ajouter un fichier de conf" ?) Merci par avance de votre aide.
  4. Bonjour à tous, Voici ma configuration : motherboard : Asrock CD2550D4I RAM 6Go Disks : 1x500GB (APPS) / 3TB (DATA) / RAID1 : 2x2TB (CRITICAL DATA) PACKAGES INSTALLES : Antivirus Essential Apache HTTP Server 2.2 Directory Server DNS Server File Station Mail Server Mail Station MariaDB 5 / MariaDB 10 PHP 5.6 / PHP 7 phpMyAdmin Universal Search WEB Station (et quelques autres) Sur ce serveur j'héberge un site (cheky alias lbcalerte) accessible via : http://x.x.x.x/lbc (http 80) situé dans le chemin : "/volume1/web/lbc" Tout fonctionnait correctement en DSM 5.2. Ces derniers temps cependant, j'avais des problèmes d'indisponibilité après redémarrage (probablement pb de clef usb ou pb bios). Comme je lorgnais déjà sur DSM6 depuis quelques temps, j'ai décidé de me lancer dans l'upgrade (avec une nouvelle clef). La migration s'est parfaitement déroulée, j'ai mis à jour toutes les applis et j'ai updaté le système en : DSM 6.1.3-15152 Update 8 Mais depuis la mise à jour, toute tentative de connexion à mon site web (lbc) se solde par une erreur "http 500". J'ai essayé de désinstaller/réinstaller webstation, en allant jusqu'à supprimer le répertoire Web pour qu'il soit recréé. J'ai tenté des modif de nginx.conf pour ajouter lbc dans les "locations", j'ai essayé les virtual host, j'ai remis les droits 755 pour les répertoires et 644 pour les fichiers pour /web. Rien n'a marché. Maintenant, c'est même pire qu'avant, j'ai dû faire une boulette dans nginx.conf ou autre, car tous les sites (lbc, mailstation, phpmyadmin...) sont redirigés automatiquement sur http://x.x.x.x:5000 (interface du syno). J'ai tenté de réinstaller le système sans plus de résultat. Quand phpMyAdmin fonctionnait (avant que je fasse une con....ie), j'ai pu accéder à mes bases de données sans problème. Précision supplémentaire, quand je clique sur "PHP settings" dans l'applet "Webstation" tout est grisé et l'applet plante (obligé de la fermer). Est-ce que tout pourrait venir d'un problème sur la conf PHP (j'ai désinstallé/réinstallé php5.6 et 7 sans plus de succès). Quelqu'un pourrait il m'aider à y voir plus clair ? (quels logs vérifier ?) Merci par avance pour votre aide,
  5. Hi all, Here's my configuration : motherboard : Asrock CD2550D4I RAM 6Go Disks : 1x500GB (APPS) / 3TB (DATA) / RAID1 : 2x2TB (CRITICAL DATA) PACKAGES INSTALLED : Antivirus Essential Apache HTTP Server 2.2 Directory Server DNS Server File Station Mail Server Mail Station MariaDB 5 / MariaDB 10 PHP 5.6 / PHP 7 phpMyAdmin Universal Search WEB Station (and few others) On this server I was hosted a website, accessible via : http://x.x.x.x/lbc (http 80) at the following local path : "/volume1/web/lbc" Everything was running fine under DSM 5.2. But theses times, I had some problems at startup (probably problems with my USB Key) Has I was already interested in moving to DSM 6, I decided to migrate and change the USB Key. The migration was successful, and I updated all apps and installed latest patch of DSM : DSM 6.1.3-15152 Update 8 But I had some problems to access the website configured on the server. Everything I tried was sold by "http 500" error. I tried to uninstall/reinstall Webstation (even with removing "web" directory, for it to be recreated). I made some modification to nginx.conf trying to add location for lbc site, but nothing as changed. I tried to had virtual host but with no results, and I'm not sure it's necessary. I tried to reapply rights on /volume1/web with 755 for directory and 644 for files, no results. Finally, the situation is now worth than before (I probably made a mistake somewhere). All sites (lbc, mail station, phpmyadmin, ...) are unaccessible because everything is redirected to http://x.x.x.x:5000 (syno GUI). I tried to reinstall the system from a new usb key (changing MAC and SN) with no results. can anybody help me, please? Thank's
×
×
  • Create New...