I have a problem with apache2 settings (Ubuntu system). I would like to run symfony project on my localhost but instead of serving .phtml files, browser is trying to download files.
bu benim dosya ev sahibi.:
127.0.0.3 testi
Bu apache2/sites-available/default dosyası
< VirtualHost 127.0.0.3:80>
ServerName test DocumentRoot "/home/m/Pr/workspace/php/test/web"DirectoryIndex frontend_dev.php
< Rehber "/home/m/Pr/workspace/php/test/web">
AllowOverride All Allow from All
Alias / sf
/ Home / m / Pr / workspace / php / test / lib / satıcı / symfony / data / web / sf
< Rehber
"/ Home / m / Pr / workspace / php / test / lib / satıcı / symfony / data / web / sf">
AllowOverride All Allow from All </Directory>
ve bu. / test htaccess
RewriteRule ^ (. *) $ On RewriteRule
/ Web / $ 1 Options + FollowSymLinks
+ ExecCGI AddHandler application/x-httpd-php5. Php. Phtml
ve bu. / test htaccess/web
Options + FollowSymLinks + ExecCGI
RewriteEngine On# uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase /
# we skip all files with .something #RewriteCond %{REQUEST_URI} ..+$ #RewriteCond %{REQUEST_URI} !.html$
#RewriteRule .* - [L]# we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L]
Başka bir sorun apache okumam. Htaccess dosyaları düşünüyorum.
Ben yanlış ne yapıyorum? Belki de bir şey unuttum? I hiçbir fikrim yok kendisin bana yardımcı olun.