Sur ce tuto on me demande de faire ça:
[code]Switch up your Apache settings:
nano /etc/apache2/sites-enabled/000-default
Change it to this:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/avantfax
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/avantfax>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</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>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /phpmyadmin "/usr/share/phpmyadmin/"
<Directory "/usr/share/phpmyadmin/">
Options Indexes MultiViews FollowSymLinks
</Directory>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Restart Apache:
/etc/init.d/apache2 restart
Go to http:///admin. Log in using u/n: afadmin, p/w: password. [/code]
donc je le fais et voila le résultat:[code]
Warning: require_once(MDB2.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/avantfax/includes/SQL.php on line 18
Fatal error: require_once() [function.require]: Failed opening required ‘MDB2.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/avantfax/includes/SQL.php on line 18[/code]
Je suis allez à l’adresse que donne le warning est j’ai:
require_once 'MDB2.php';
Phpmyadmin n’est pas installé. Cette erreur viendrait-elle de là?