Bonjour,
J’ai bien installé la suite apache mysql php.
Mais je n’arrive pas faire fonctionner mon site … mon site fonctionne très bien sous wamp actuellement, mais j’aimerai le faire fonctionner sous un LINUX.
j’ai crée un répertoire monsite.com sous /var/www
dans le répertoire /var/www j’ai un fichier .htaccess avec ça:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /pi/
RewriteRule ^index\.php$ /monsite.com/index.php [QSA]
ce qui ne semble pas du tout fonctionner.
sous /etc/apache/sites-enabled
j’ai les fichiers 000-default avec:
[code]<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
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]
et monsite avec:
ServerAdmin support@monsite.com
ServerName monsite.com
ServerAlias www.monsite.com monsite.com
DocumentRoot /var/www/monsite.com
<Directory /var/www/monsite.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/monsite.com-error_log
TransferLog /var/log/apache2/monsite.com-access_log
</VirtualHost>
Pourquoi ne prend-il pas en compte mon fichier .htaccess?
et pourquoi quand je vais sur un navigateur, monadresseippublique/monsite.com/index.php ça ne fonctionne pas?
Merci d’avance pour votre aide.