Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/03/2015, à 21:22

Farisse

[Résolu] Owncloud + XBMC + SSL sous Raspbian

Bonjour à toutes et à tous,

Alors voila je me suis récemment procuré un Raspberry pi sur le quel j'ai installé Raspbian Wheezy (7)

J'ai réussi a installer Owncloud et XBMC sans trop de difficultés, cela-dit je n'arrive pas a configurer le certificat SSL.

Sur tout les tuto que j'ai pu lire ils demandent de relancer apache2

Malheureusement lorsque je le fait j'obtiens ceci :

root@raspberrypi:~# service apache2 restart
[....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Mar 22 18:55:07 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:07 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Mar 22 18:55:07 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:07 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Mar 22 18:55:07 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:07 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:07 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Mar 22 18:55:08 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:08 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Mar 22 18:55:08 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:08 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Sun Mar 22 18:55:08 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:08 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Sun Mar 22 18:55:08 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!

Je regardé dans /etc/apache2/sites-available et enable

root@raspberrypi:~# tree /etc/apache2/
/etc/apache2/
├── apache2.conf
├── conf-available
│   └── owncloud.conf
├── conf.d
│   ├── charset
│   ├── localized-error-pages
│   ├── other-vhosts-access-log
│   ├── owncloud.conf -> ../conf-available/owncloud.conf
│   └── security
├── envvars
├── magic
├── ports.conf
├── sites-available
│   ├── default
│   ├── default-ssl
│   └── Original
│       ├── default
│       └── owncloud.https
├── sites-enabled
│   ├── default-ssl -> ../sites-available/default-ssl
│   └── original -> ../sites-available/default
└── ssl
    ├── apache.crt
    ├── apache.key
    ├── apache.pem
    └── ce275665 -> apache.pem

(J'ai supprimé mods-* du code)

Donc voila je ne sais pas trop vers quel fichier me tourner pour reconfigurer le ou si je dois réinstaller le Certificat SSL sans trop de problèmes ?

Je m'excuse si j'ai omis des informations

D'avance je vous remercie pour votre aide !! Thaaanks

Farisse

Dernière modification par ljere (Le 25/03/2015, à 08:05)

Hors ligne

#2 Le 23/03/2015, à 01:07

le cinglé_001

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Bonjour

Farisse a écrit :

Alors voila je me suis récemment procuré un Raspberry pi sur le quel j'ai installé Raspbian Wheezy (7)

Ici c'est un forum Ubuntu pas Debain. Tu peux demander ici ou

Dernière modification par le cinglé_001 (Le 23/03/2015, à 01:08)

#3 Le 23/03/2015, à 13:53

voxdemonix

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

@Farisse dans ton fichier etc/host, par hasard tu n'aurais pas mis "192.168.0.108:443" si oui, tente en remplaçant par "192.168.0.108" voir en supprimant la ligne.
Ce qui est bizare c'est la dernière ligne qui dit qu'apache ne peut pas se lancer car déjà lancé, reboot la machine pour voir.
On dirait aussi que ton fichier host n'est pas correctement configuré: tu peux t'inspirer des infos que j'ai posté ici : https://forum.ubuntu-fr.org/viewtopic.p … 41#1443451 Normalement le tuto fonctionne pour owncloud sur tout se qui est debian-like (par contre c'est pour apache 2.2 je crois, si tu es en 2.4 me semble que le fichier host doit être modifié)


Nota Bene:  à l'avenir, pose ce genre de question dans la partie Serveur ou au pire Réseau, tu trouvera plus vite réponse qu'en postant dans la partie "Café" qui, point commun avec tout les sites linux, n'est quasi utilisé que pour le troll.

le cinglé_001 a écrit :

Bonjour

Farisse a écrit :

Alors voila je me suis récemment procuré un Raspberry pi sur le quel j'ai installé Raspbian Wheezy (7)

Ici c'est un forum Ubuntu pas Debain. Tu peux demander ici ou

raspbian fait partie de la même famille qu'ubuntu ... Surtout que des topics, tuto et des utilisateurs traitant de raspberry pi içi  c'est pas se qu'il manque.

Dernière modification par voxdemonix (Le 23/03/2015, à 21:28)

Hors ligne

#4 Le 23/03/2015, à 14:00

cqfd93

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

voxdemonix a écrit :

raspbian fait partie de la même famille qu'ubuntu alors tes réflexions ... Surtout que des topics, tuto et des utilisateurs traitant de raspberry pi içi  c'est pas se qu'il manque.

Modération

Mais Raspbian n'est pas un dérivé d'Ubuntu, donc le cinglé_001 a raison, ça n'a pas sa place dans le support Ubuntu → déplacé vers le Café.


cqfd93

Hors ligne

#5 Le 23/03/2015, à 14:02

voxdemonix

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Alors faudrait ptete changer le titre d'ubuntu-fr car même pas la moitié des discutions ne concerne ubuntu... (sans parler du site en lui-même qui, a force de dilater la communauté avec ses remarques très françaises, perd en notoriété)

Dernière modification par voxdemonix (Le 23/03/2015, à 14:03)

Hors ligne

#6 Le 23/03/2015, à 14:11

cqfd93

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

On n'en discutera pas sur ce fil. Tu peux toujours contacter les modérateurs en envoyant un courriel à : ubuntu_moderateurs-fr [chez] listes.ubuntu-fr [point] org


cqfd93

Hors ligne

#7 Le 23/03/2015, à 14:29

voxdemonix

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Je suis curieux de savoir combien de gens caller en linux sur ce forum sont encore sur ubuntu, surtout depuis Unity... m'enfin, c'est tellement frenchies d'être impoli et de préférer donner son avis (insultant) plus tôt que de répondre a une question bien-seillante posée par un débutant. La différence entre l'accueil belge et français mis en évidence en un seul topic.

Dernière modification par voxdemonix (Le 23/03/2015, à 14:34)

Hors ligne

#8 Le 23/03/2015, à 18:44

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Bonjour,
peux tu donner le retour de

cat /etc/apache2/apache2.conf

@voxdemonix: le café d'ubuntu-fr est très fréquenté donc tu as beaucoup de chance d'avoir de l'aide pour tout ce qui ne concerne pas directement ubuntu.
Si malgré ça tu veux en discuter on t'a donné l'adresse mail de la modération

Cordialement,
ljere


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#9 Le 23/03/2015, à 19:42

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

le cinglé_001 a écrit :

Bonjour

Farisse a écrit :

Alors voila je me suis récemment procuré un Raspberry pi sur le quel j'ai installé Raspbian Wheezy (7)

Ici c'est un forum Ubuntu pas Debain. Tu peux demander ici ou

@le cinglé_001 Bonjour,

Merci, je ne connaissais pas les références pour débian, Si je ne trouve pas de réponse sur ubuntu-fr je passerais au sites que tu m'a proposé, en attendant si quelqu'un sait m'aider je préfère en profiter :-)


voxdemonix a écrit :

@Farisse dans ton fichier etc/host, par hasard tu n'aurais pas mis "192.168.0.108:443" si oui, tente en remplaçant par "192.168.0.108" voir en supprimant la ligne.
Ce qui est bizare c'est la dernière ligne qui dit qu'apache ne peut pas se lancer car déjà lancé, reboot la machine pour voir.
On dirait aussi que ton fichier host n'est pas correctement configuré: tu peux t'inspirer des infos que j'ai posté ici : https://nebuleuse0rion.ddns.net/forum4/ … ?f=14&t=99 normalement ces infos sont aussi sur ubuntu-fr mais je ne sais plus où ^^ Normalement le tuto fonctionne pour owncloud sur tout se qui est debian-like (par contre c'est pour apache 2.2 je crois, si tu es en 2.4 me semble que le fichier host doit être modifié)


Nota Bene:  à l'avenir, pose ce genre de question dans la partie Serveur ou au pire Réseau, tu trouvera plus vite réponse qu'en postant dans la partie "Café" qui, point commun avec tout les sites linux, n'est quasi utilisé que pour le troll.

le cinglé_001 a écrit :

Bonjour

Farisse a écrit :

Alors voila je me suis récemment procuré un Raspberry pi sur le quel j'ai installé Raspbian Wheezy (7)

Ici c'est un forum Ubuntu pas Debain. Tu peux demander ici ou

raspbian fait partie de la même famille qu'ubuntu ... Surtout que des topics, tuto et des utilisateurs traitant de raspberry pi içi  c'est pas se qu'il manque.

@voxdemonix Merci pour ta réponse le fichier " /etc/host " est vide par contre le fichier " /etc/hosts " contient ceci :

  GNU nano 2.2.6             Fichier : /etc/hosts

127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       raspberrypi
ljere a écrit :

Bonjour,
peux tu donner le retour de

cat /etc/apache2/apache2.conf

@voxdemonix: le café d'ubuntu-fr est très fréquenté donc tu as beaucoup de chance d'avoir de l'aide pour tout ce qui ne concerne pas directement ubuntu.
Si malgré ça tu veux en discuter on t'a donné l'adresse mail de la modération

Cordialement,
ljere

@ljere Bonjour, oui voici :

root@raspberrypi:~# cat /etc/apache2/apache2.conf
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives and /usr/share/doc/apache2-common/README.Debian.gz about
# Debian specific hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#       /etc/apache2/
#       |-- apache2.conf
#       |       `--  ports.conf
#       |-- mods-enabled
#       |       |-- *.load
#       |       `-- *.conf
#       |-- conf.d
#       |       `-- *
#       `-- sites-enabled
#               `-- *
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
#   In order to avoid conflicts with backup files, the Include directive is
#   adapted to ignore files that:
#   - do not begin with a letter or number
#   - contain a character that is neither letter nor number nor _-:.
#   - contain .dpkg
#
#   Yet we strongly suggest that all configuration files either end with a
#   .conf or .load suffix in the file name. The next Debian release will
#   ignore files not ending with .conf (or .load for mods-enabled).
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections, and which
#   of these ports are used for name based virtual hosts.
#
# * Configuration files in the mods-enabled/ and sites-enabled/ directories
#   contain particular configuration snippets which manage modules or virtual
#   host configurations, respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite. See
#   their respective man pages for detailed information.
#
# * Configuration files in the conf.d directory are either provided by other
#   packages or may be added by the local administrator. Local additions
#   should start with local- or end with .local.conf to avoid name clashes. All
#   files in conf.d are considered (excluding the exceptions noted above) by
#   the Apache 2 web server.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
LockFile ${APACHE_LOCK_DIR}/accept.lock

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
#              graceful restart. ThreadLimit can only be changed by stopping
#              and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server process
# MaxClients: maximum number of simultaneous client connections
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxClients: maximum number of simultaneous client connections
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_event_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
# It is also possible to omit any default MIME type and let the
# client's browser guess an appropriate action instead. Typically the
# browser will decide based on the file's extension then. In cases
# where no good assumption can be made, letting the default MIME type
# unset is suggested  instead of forcing the browser to accept
# incorrect  metadata.
#
DefaultType None


#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf

# Include list of ports to listen on and which to use for name based vhosts
Include ports.conf

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see the comments above for details.

# Include generic snippets of statements
Include conf.d/

# Include the virtual host configurations:
Include sites-enabled/

Hors ligne

#10 Le 23/03/2015, à 20:04

le cinglé_001

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Bonsoir.

Farisse a écrit :

@le cinglé_001 Bonjour,

Merci, je ne connaissais pas les références pour débian, Si je ne trouve pas de réponse sur ubuntu-fr je passerais au sites que tu m'a proposé, en attendant si quelqu'un sait m'aider je préfère en profiter :-)

Pas de problème. wink C'est juste qu'il est chiant pour les helpers qui sont bénévoles de devoir lire une demande qui n'a rien à voir avec Ubuntu... .
Beaucoup prennent de leur temps libre pour tenter d'aider.

Ceci dit ne te prend pas  la tête il n'y a pas mort d'homme. C'est vrai que le forum d'Ubuntu est très actif mais il faut si la demande n'a rien à voir avec Ubuntu et ne rentre pas dans les catégories poster sa demande dans le café. C'est Ubuntu.fr  pas un site généraliste.

M'enfin j'espère que tu pourras résoudre ton problème. wink

#11 Le 23/03/2015, à 20:11

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

lance cette commande (en root)

echo "ServerName localhost" >>/etc/apache2/apache2.conf

puis relance apache

service apache2 restart

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#12 Le 23/03/2015, à 21:46

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

le cinglé_001 a écrit :

Bonsoir.

Farisse a écrit :

@le cinglé_001 Bonjour,

Merci, je ne connaissais pas les références pour débian, Si je ne trouve pas de réponse sur ubuntu-fr je passerais au sites que tu m'a proposé, en attendant si quelqu'un sait m'aider je préfère en profiter :-)

Pas de problème. wink C'est juste qu'il est chiant pour les helpers qui sont bénévoles de devoir lire une demande qui n'a rien à voir avec Ubuntu... .
Beaucoup prennent de leur temps libre pour tenter d'aider.

Ceci dit ne te prend pas  la tête il n'y a pas mort d'homme. C'est vrai que le forum d'Ubuntu est très actif mais il faut si la demande n'a rien à voir avec Ubuntu et ne rentre pas dans les catégories poster sa demande dans le café. C'est Ubuntu.fr  pas un site généraliste.

M'enfin j'espère que tu pourras résoudre ton problème. wink

Je comprends, merci. J'ai juste visité énormément de forums mais qui n'avaient rien avoir avec Debian, juste des tutorials divers a l'exception du ubuntu-fr. et je l'espère aussi :-)


ljere a écrit :

lance cette commande (en root)

echo "ServerName localhost" >>/etc/apache2/apache2.conf

puis relance apache

service apache2 restart

Malheureusement échec, voici:

root@raspberrypi:~# echo "ServerName localhost" >>/etc/apache2/apache2.conf
root@raspberrypi:~# service apache2 restart
[....] Restarting web server: apache2[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Mon Mar 23 19:36:03 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!
root@raspberrypi:~#

Hors ligne

#13 Le 24/03/2015, à 09:27

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

si tu compares ton premier retour avec le nouveau tu verras qu'il y a une erreur en moins,
donc non ce n'est pas un échec,
maintenant j'aimerais voir le contenu de ton fichier owncloud.https


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#14 Le 24/03/2015, à 13:50

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

ljere a écrit :

si tu compares ton premier retour avec le nouveau tu verras qu'il y a une erreur en moins,
donc non ce n'est pas un échec,
maintenant j'aimerais voir le contenu de ton fichier owncloud.https

Le quel ? pour rappel,  owncloud.https se trouve dans /etc/apache2/sites-available/Original/owncloud.https

Il n'est donc si j'ai bien compris pas le premier a être pris en charge mais plutot /etc/apache2/sites-available/default (quoi qu'il ne soit pas en https hmm )

root@raspberrypi:~# tree /etc/apache2/
/etc/apache2/
├── apache2.conf
├── conf-available
│   └── owncloud.conf
├── conf.d
│   ├── charset
│   ├── localized-error-pages
│   ├── other-vhosts-access-log
│   ├── owncloud.conf -> ../conf-available/owncloud.conf
│   └── security
├── envvars
├── magic
├── ports.conf
├── sites-available
│   ├── default
│   ├── default-ssl
│   └── Original
│       ├── default
│       └── owncloud.https
├── sites-enabled
│   ├── default-ssl -> ../sites-available/default-ssl
│   └── original -> ../sites-available/default
└── ssl
    ├── apache.crt
    ├── apache.key
    ├── apache.pem
    └── ce275665 -> apache.pem
root@raspberrypi:~# grep -r owncloud.https
.viminfo:'0  1  0  /etc/apache2/sites-available/owncloud.https
.viminfo:'1  12  0  /etc/apache2/sites-available/owncloud.https
.viminfo:-'  1  0  /etc/apache2/sites-available/owncloud.https
.viminfo:-'  12  0  /etc/apache2/sites-available/owncloud.https
.viminfo:-'  2  48  /etc/apache2/sites-available/owncloud.https
.viminfo:> /etc/apache2/sites-available/owncloud.https
.bash_history:cat /etc/apache2/sites-available/owncloud.https
.bash_history:vim /etc/apache2/sites-available/owncloud.https
.bash_history:vim /etc/apache2/sites-available/owncloud.https
.bash_history:vim /etc/apache2/sites-available/owncloud.https
.bash_history:vim /etc/apache2/sites-available/owncloud.https
.bash_history:a2ensite owncloud.https
.bash_history:nano /etc/apache2/sites-enabled/owncloud.https
.bash_history:nano /etc/apache2/sites-available/owncloud.https
.bash_history:nano /etc/apache2/sites-available/.owncloud.https.swo
.bash_history:nano /etc/apache2/sites-available/owncloud.https
.bash_history:mv /etc/apache2/sites-available/owncloud.https /etc/apache2/sites-available/Original/
.bash_history:mv /etc/apache2/sites-available/.owncloud.https.swo /etc/apache2/sites-available/Original/

Hors ligne

#15 Le 24/03/2015, à 14:20

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

cette erreur n'est plus là

[....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

tu as raison owncloud.https n'est pas activé donc on va plutôt vérifier

cat /etc/apache2/sites-enabled/default-ssl

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#16 Le 24/03/2015, à 18:06

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Et voici :

root@raspberrypi:~# cat /etc/apache2/sites-enabled/
default-ssl  original
root@raspberrypi:~# cat /etc/apache2/sites-enabled/default-ssl
<IfModule mod_ssl.c>
<VirtualHost 192.168.0.108:443>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined

        #   SSL Engine Switch:
        #   Enable/Disable SSL for this virtual host.
        SSLEngine on

        #   A self-signed (snakeoil) certificate can be created by installing
        #   the ssl-cert package. See
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
        #   If both key and certificate are stored in the same file, only the
        #   SSLCertificateFile directive is needed.
        SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        #   Server Certificate Chain:
        #   Point SSLCertificateChainFile at a file containing the
        #   concatenation of PEM encoded CA certificates which form the
        #   certificate chain for the server certificate. Alternatively
        #   the referenced file can be the same as SSLCertificateFile
        #   when the CA certificates are directly appended to the server
        #   certificate for convinience.
        #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt

        #   Certificate Authority (CA):
        #   Set the CA certificate verification path where to find CA
        #   certificates for client authentication or alternatively one
        #   huge file containing all of them (file must be PEM encoded)
        #   Note: Inside SSLCACertificatePath you need hash symlinks
        #         to point to the certificate files. Use the provided
        #         Makefile to update the hash symlinks after changes.
        #SSLCACertificatePath /etc/ssl/certs/
        #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt

        #   Certificate Revocation Lists (CRL):
        #   Set the CA revocation path where to find CA CRLs for client
        #   authentication or alternatively one huge file containing all
        #   of them (file must be PEM encoded)
        #   Note: Inside SSLCARevocationPath you need hash symlinks
        #         to point to the certificate files. Use the provided
        #         Makefile to update the hash symlinks after changes.
        #SSLCARevocationPath /etc/apache2/ssl.crl/
        #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl

        #   Client Authentication (Type):
        #   Client certificate verification type and depth.  Types are
        #   none, optional, require and optional_no_ca.  Depth is a
        #   number which specifies how deeply to verify the certificate
        #   issuer chain before deciding the certificate is not valid.
        #SSLVerifyClient require
        #SSLVerifyDepth  10

        #   Access Control:
        #   With SSLRequire you can do per-directory access control based
        #   on arbitrary complex boolean expressions containing server
        #   variable checks and other lookup directives.  The syntax is a
        #   mixture between C and Perl.  See the mod_ssl documentation
        #   for more details.
        #<Location />
        #SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
        #            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
        #            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
        #            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
        #            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
        #           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
        #</Location>

        #   SSL Engine Options:
        #   Set various options for the SSL engine.
        #   o FakeBasicAuth:
        #     Translate the client X.509 into a Basic Authorisation.  This means that
        #     the standard Auth/DBMAuth methods can be used for access control.  The
        #     user name is the `one line' version of the client's X.509 certificate.
        #     Note that no password is obtained from the user. Every entry in the user
        #     file needs this password: `xxj31ZMTZzkVA'.
        #   o ExportCertData:
        #     This exports two additional environment variables: SSL_CLIENT_CERT and
        #     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
        #     server (always existing) and the client (only existing when client
        #     authentication is used). This can be used to import the certificates
        #     into CGI scripts.
        #   o StdEnvVars:
        #     This exports the standard SSL/TLS related `SSL_*' environment variables.
        #     Per default this exportation is switched off for performance reasons,
        #     because the extraction step is an expensive operation and is usually
        #     useless for serving static content. So one usually enables the
        #     exportation for CGI and SSI requests only.
        #   o StrictRequire:
        #     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
        #     under a "Satisfy any" situation, i.e. when it applies access is denied
        #     and no other module can change it.
        #   o OptRenegotiate:
        #     This enables optimized SSL connection renegotiation handling when SSL
        #     directives are used in per-directory context.
        #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                SSLOptions +StdEnvVars
        </Directory>

        #   SSL Protocol Adjustments:
        #   The safe and default but still SSL/TLS standard compliant shutdown
        #   approach is that mod_ssl sends the close notify alert but doesn't wait for
        #   the close notify alert from client. When you need a different shutdown
        #   approach you can use one of the following variables:
        #   o ssl-unclean-shutdown:
        #     This forces an unclean shutdown when the connection is closed, i.e. no
        #     SSL close notify alert is send or allowed to received.  This violates
        #     the SSL/TLS standard but is needed for some brain-dead browsers. Use
        #     this when you receive I/O errors because of the standard approach where
        #     mod_ssl sends the close notify alert.
        #   o ssl-accurate-shutdown:
        #     This forces an accurate shutdown when the connection is closed, i.e. a
        #     SSL close notify alert is send and mod_ssl waits for the close notify
        #     alert of the client. This is 100% SSL/TLS standard compliant, but in
        #     practice often causes hanging connections with brain-dead browsers. Use
        #     this only for browsers where you know that their SSL implementation
        #     works correctly.
        #   Notice: Most problems of broken clients are also related to the HTTP
        #   keep-alive facility, so you usually additionally want to disable
        #   keep-alive for those clients, too. Use variable "nokeepalive" for this.
        #   Similarly, one has to force some clients to use HTTP/1.0 to workaround
        #   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
        #   "force-response-1.0" for this.
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>

Hors ligne

#17 Le 24/03/2015, à 19:22

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

remplace

<VirtualHost 192.168.0.108:443>

par

<VirtualHost _default_:443>

puis relance apache


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#18 Le 24/03/2015, à 19:34

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

On y est presque j'ai l'impression,

root@raspberrypi:~# nano /etc/apache2/sites-enabled/default-ssl
root@raspberrypi:~# service apache2 restart
[....] Restarting web server: apache2[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Tue Mar 24 17:31:49 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Tue Mar 24 17:31:49 2015] [warn] VirtualHost 192.168.0.108:443 overlaps with VirtualHost 192.168.0.108:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
[Tue Mar 24 17:31:49 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.0.108 (check DNS) -- or specify an explicit ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!
root@raspberrypi:~#

Par contre je me rends compte que je n'ai plus accès a owncloud en local ? hmm

Dernière modification par Farisse (Le 24/03/2015, à 19:37)

Hors ligne

#19 Le 24/03/2015, à 20:43

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

donne moi le retour de

cat  /etc/apache2/ports.conf

si il n'y est pas il faut ajouter

Listen 443

à la fin


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#20 Le 24/03/2015, à 21:22

Farisse

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

Il est bien présent hmm

root@raspberrypi:~# cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:443
Listen 443

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

Edit :
Probleme résolu, en tentant de relancer apache2 j'ai eu l'erreur

root@raspberrypi:~# service apache2 restart
[....] Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!
root@raspberrypi:~#

après avoir ajouté dans mon fichier /etc/hosts

192.168.0.108   owncloud
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       raspberrypi
192.168.0.108   owncloud


Je me suis donc penché sur le Restarting web server: apache2(98)Address already in use: make_sock
Je suis tombé sur ce site ou il est dit

Apache gives this same error message when you have two Listen directives that target the same IP/port combination. The first one succeeds without error, the second one finds that something is already listening on that port and aborts.

It's not uncommon to find these directives in different files, such as vhost files or top-level files such as ports.conf or ssl.conf.

You can find them with grep -r Listen /etc/apache2 or grep -r Listen /etc/httpd depending on whether you are using a Debian-based distro or a RedHat-based distro.

en lancent la commande grep -r Listen /etc/apache2/ J'ai eu ceci :

root@raspberrypi:~# grep -r Listen /etc/apache2/
/etc/apache2/ports.conf:Listen 443
/etc/apache2/ports.conf:    Listen 443
/etc/apache2/ports.conf:    Listen 443

Et j'ai donc juste changé la première ligne par 448

nano /etc/apache2/ports.conf

par la suite relancé apache2 et

root@raspberrypi:~# service apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
root@raspberrypi:~#

(reste plus qu'a trouver comment faire pour que ce soir accessible en local sur 192.168.0.108 au lieu de 192.168.0.108/owncloud/index.php)

Merci a vous pour l'aide de de m'avoir orienté correctement !! big_smile

Dernière modification par Farisse (Le 25/03/2015, à 06:55)

Hors ligne

#21 Le 25/03/2015, à 08:04

ljere

Re : [Résolu] Owncloud + XBMC + SSL sous Raspbian

de rien je passe ta discussion en résolu,
par contre pour ta dernière question, de mémoire tu devrais regarder
/etc/apache2/sites-enabled/default-ssl
section directory


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne