Project

General

Profile

Segnalazione #123

Problema con apache e webpassd

Added by Christopher R. Gabriel over 7 years ago. Updated over 7 years ago.

Status:
Chiuso
Priority:
Normale
Start date:
12/16/2016
Due date:
% Done:

100%

Estimated time:

Description

Quando si naviga il webserver locale installato dal fuss-server, nel directory index si vede la presenza di /webpasswd, ma poi aprendolo si ottiene un 404.


Files

t123.patch (887 Bytes) t123.patch Christopher R. Gabriel, 12/16/2016 07:03 PM
Screenshot from 2016-12-19 16_47_25.png (37 KB) Screenshot from 2016-12-19 16_47_25.png Christopher R. Gabriel, 12/19/2016 04:48 PM

Associated revisions

Revision 9e315a4d (diff)
Added by Simone Piccardi over 7 years ago

Correction for webpasswd installation from Christopher patch, fix #123.

Revision e7ff0807 (diff)
Added by Simone Piccardi over 7 years ago

Create an apache2 roles for apache related configurations (WPAD proxy
autoconf, refs #88 and webpasswd, refs #123). Recover octonet main
task (removed by accident, refs #103)

History

#1

Updated by Christopher R. Gabriel over 7 years ago

Dalla configurazione di apache, /webpasswd risulta un alias per /usr/share/fuss-server/webpasswd (come e' giusto che sia), pero' la cartella non lo contiene. I file vengono installati in /var/www/webpasswd (errato), quindi si ottiene il 404 per questo.

La risoluzione del problema e' far installare i file in /usr/share/fuss-server/webpasswd invece che in /var/www/

#2

Updated by Christopher R. Gabriel over 7 years ago

Allego patch.

#3

Updated by Simone Piccardi over 7 years ago

  • Status changed from Nuovo to Risolto
  • % Done changed from 0 to 100
#4

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from Risolto to In elaborazione
  • Assignee changed from Simone Piccardi to Christopher R. Gabriel
#5

Updated by Christopher R. Gabriel over 7 years ago

  • Assignee changed from Christopher R. Gabriel to Simone Piccardi

Non risolve purtroppo per vari motivi.

Sposterei lo configurazione fuori dalla definizione del vhost, anche perche' webpasswd deve essere raggiungibile da qualunque nome.

Propongo di spostare tutto quello che riguarda webpasswd in un file tipo /etc/apache2/conf-available/webpasswd.conf, che contenga:

Alias /webpasswd /usr/share/fuss-server/webpasswd
<Directory /usr/share/fuss-server/webpasswd>
  php_admin_flag engine On
</Directory

Poi mancano:

  • installare pacchetto libapache2-mod-php5
  • disattivare il modulo apache 'mpm_event' che e' il default
  • attivare il modulo apache 'mpm_prefork' (richiesto da php)
  • Attivare il modulo php5

Questo non avviene piu' automaticamente, quindi php non viene attivato.

C'e' anche da corregge un typo, ho visto che ora viene installata una struttura tipo

  • /webpasswd/index.php
  • /webpasswd/webpasswd/<assets>

I riferimenti in index.php agli assets sono per ".", quindi questa nuova struttura rompe. Da corregge o la struttura dei file, oppure i riferimenti agli asset in index.php

#6

Updated by Christopher R. Gabriel over 7 years ago

Dopo gli ultimi commit, vedo altri problemi, vedi allegato.

#7

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from In elaborazione to Chiuso

Risulta a posto adesso.

Also available in: Atom PDF