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 21/05/2016, à 09:24

obotineau

Problème répertoire d'accès à mon intranet "infodium"

Bonjour à toutes et à tous,
Je dois saisir l'URL http://infodium/infodium au lieu de http://infodium.

je vous donne le chemin et le contenu de mes fichiers PHP :

papa@VAIO-UBUNTU:~$ ls -la /intranet.apache2/infodium
total 160
drwxrwxr-x 20 papa papa  4096 mai   20 16:39 .
drwxrwxrwx 15 root root  4096 mai   15 14:52 ..
drwxrwxr-x  5 papa papa  4096 oct.  15  2013 3ds
drwxrwxr-x  7 papa papa  4096 oct.  15  2013 admin
drwxrwxr-x  5 papa papa  4096 oct.  15  2013 bordeaux
drwxrwxr-x  2 papa papa  4096 oct.  15  2013 chereline
drwxrwxr-x  4 papa papa  4096 oct.  15  2013 classes
drwxrwxr-x  2 papa papa  4096 oct.  15  2013 courrier
drwxrwxr-x  3 papa papa  4096 mai   13 16:09 Duanyan
drwxrwxr-x  2 papa papa  4096 oct.  15  2013 flash3
-rwxrwx---  1 papa papa    32 avril 30  2007 get_defined_functions.php
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 images
drwxrwxr-x  2 papa papa  4096 oct.  15  2013 include
-rwxrwx---  1 papa papa   746 nov.  13  2005 index_entravaux.php
-rwxrwx---  1 papa papa 12657 févr.  4  2008 index.old
-rwxrwx---  1 papa papa 12685 mai   20 16:39 index.php
-rwxrwx---  1 papa papa 20780 nov.   4  2005 infodium_accueil.jpg
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 linux
drwxrwxr-x  2 papa papa  4096 oct.  15  2013 music
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 neuf_planetes
drwxrwxr-x  5 papa papa  4096 oct.  15  2013 paris
-rwxrwx---  1 papa papa    18 oct.   5  2005 php4info.php
-rwxrwx---  1 papa papa    21 avril 30  2007 phpinfo.php
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 stellaire
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 telescope
-rwxrwx---  1 papa papa  6656 nov.  23  2011 Thumbs.db
drwxrwxr-x  3 papa papa  4096 oct.  15  2013 vient
drwxrwxr-x  4 papa papa  4096 oct.  15  2013 vrml

Voici également mon fichier infodium.conf dans /etc/apache2/sites-available

papa@VAIO-UBUNTU:~$ cat  /etc/apache2/sites-available/infodium.conf
<Directory "/intranet.apache2/infodium">
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

<VirtualHost 192.168.1.100:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.

	ServerName infodium
	ServerAdmin contact@infodium.org
	DocumentRoot "/intranet.apache2/infodium"
	
	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

    ErrorLog "/MesLogs/Intranet/infodium/error.log"
    CustomLog "/MesLogs/Intranet/infodium/custom.log" combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf

	<IfModule mod_dir.c>
	    DirectoryIndex index.php
	</IfModule>
</VirtualHost>

Voici également mon fichier /etc/hosts

papa@VAIO-UBUNTU:~$ cat /etc/hosts
127.0.0.1	localhost
127.0.0.1	VAIO-UBUNTU
192.168.1.100	infodium
192.168.1.100	philippines

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Pouvez-vous m'aider à apporter la bonne modification pour que j'accède à http://infodium
pour voir mon site ?

Merci à tous par avance.
Olivier.

Hors ligne

#2 Le 21/05/2016, à 09:39

obotineau

Re : Problème répertoire d'accès à mon intranet "infodium"

J'ai modifié le fichier /intranet.apache2/infodium/index.php en ajoutant un bloc de texte mais rien
n'apparaît sur http://infodium/infodium/index.php
Alors j'ai modifié /var/www/html/infodium/index.php  et j'ai pu voir mon bloc de texte.

Je suis dans l'incompréhension totale !

Hors ligne

#3 Le 21/05/2016, à 10:44

obotineau

Re : Problème répertoire d'accès à mon intranet "infodium"

J'ai réussi à configurer mes fichiers conf pour apache 2.
Cela fonctionne à prèsent.

Problème résolu.

Olivier.

Hors ligne