Virtual host dans /usr/share

Bonjour
Quand je fais un virtual host dans /var/www, pas de problème ça passe
Par contre si je veux en faire un dans /usr/share (comme pour phpmyadmin), ça ne passe pas…
“The requested URL /XXXXX was not found on this server.”

Je pense qu’il me manque un lien symbolique ou quelque chose comme cela.

Mon site est déclaré dans /etc/apache2/sites-available

[code]<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /usr/share/XXXXX
<Directory />
	Options FollowSymLinks
	AllowOverride None
</Directory>
<Directory /usr/share/XXXXX/>
	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}/access.log combined

[/code]

Auriez vous une idée ?

ça ne passe pas mieux avec ce fichier …

[code]<VirtualHost *:80>
ServerAdmin webmaster@localhost

Alias /XXXX /usr/share/XXXX


<Directory /usr/share/XXXXX>
	Options FollowSymLinks
	AllowOverride None
</Directory>
<Directory /usr/share/XXXXX/>
	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}/access.log combined

[/code]

Salut,

Et si tu lui attribues un sous-domaine (à créer chez ton hébergeur) et le déclares en lieu et place, puis relances l’indien pour la prise en compte …

[quote=“crustyourmind”]<VirtualHost *:80>

ServerAdmin webmaster@localhost
ServerName sous-domaine-de.Ton_Domaine.com

DocumentRoot /usr/share/XXXXX

Options FollowSymLinks
AllowOverride None

<Directory /usr/share/XXXXX/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

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

ErrorLog ${APACHE_LOG_DIR}/error.log

Possible values include: debug, info, notice, warn, error, crit,

alert, emerg.

LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
[/quote]

OK question pour mettre un script php (comme phpmyadmin) dans /usr/share, comment fait t on pour écrire dans ce répertoire (cas d’une base de données sqlite où il faut par conséquent un accès en écriture dans le répertoire où elle est stockée) ?