admin yazdıswordfish yazdıLaravel'i virtual host ile kullaniyorum.
Dun bende ayni problemi yasadim, public dizini altindaki .htaccess dosyasi islenmiyordu.
Soyle cozdum ; "/etc/apache2/sites-available" altindaki ilgili virtual host dosyasindaki
AllowOverride None
dan
AllowOverride All
'a cekince apache'i relaod yaptiktan sonra .httaccess dosyasi calisir hale geldi ve index.php kalki.
sizde gördüğüm kadarıyla
AllowOverride AuthConfig FileInfo
seklinde.
tabi bu guvenlik acisindan problem olustururmu bilemiyorum, su an localde calistigim icin arastirmadim.
calisan public/.htaccess dosyam ;
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Sistem : Debian GNU/Linux 6.0.6 (squeeze)
belki isinize yarar,kolayliklar..
cevap için teşekkür ederim acaba /etc/apache2/sites-available dosyasının tam içeriğinide buraya gönderebilirmisiniz ? Hala sorunum çözülmedide..
mylv adli virtual host dosyam;
#
# Virtual Host Site Template
# Author : skeser
# Version : 0.1 - 29.01.2013 23:36
<VirtualHost *:80>
# ServerAdmin sample : arge@localhost
ServerAdmin mylv@localhost
Servername mylv
ServerAlias mylv
DocumentRoot /home/arge/public_html/mylv/public
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
# Directory sample: <Directory /home/arge/public_html/>
<Directory /home/arge/public_html/mylv/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
# ScriptAlias sample : /cgi-bin/ /home/arge/public_html/cgi-bin/
# ScriptAlias sample : /cgi-bin/ /home/arge/public_html/mylv/cgi-bin/
# Directory for cgi-bin sample : <Directory "/home/arge/public_html/cgi-bin">
# <Directory "/home/arge/public_html/mylv/cgi-bin">
# AllowOverride None
# Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Order allow,deny
# Allow from all
# </Directory>
ErrorLog /home/arge/public_html/mylv/logs/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/arge/public_html/mylv/logs/access.log combined
</VirtualHost>
bende aynı yaptım ancak halen index.php yazmazsam hata veriyor.
bu bahsettginiz hata nedir ?
page not found' mu yoksa htaccess ayarıyla ilgili bir hata mı ?
birde yukaridaki configrasyon dosyasinda, error.log ve access.log dosyalarina ne gozukuyor.
yukaridaki ayar dosyasina gore ;
1- iki adet consol acin,
ilkinde : $ tail -f logs/access.log
ikinci konsolda : $ tail -f logs/error.log
2- sonra hata aldiğiniz sayfayi browser'dan refresh edin, bakalim ne yumurtlayacak ?