Hem yerel hem de sunucu makinemde apache 2.4
var, bir tane ubuntu 12.04
sunucu kullanımı Centos 7
. '/ Var/www/html/projectx' dizinindeki eski fuzybox
çerçevesini ve '/ var/www/html/projectx/api' dizinindeki 5.2. Çerçeve çerçevesini birleştirmeyi deneyin.laravel 2,4 ve Centos'taki 500 500 hatası 7
proje dizinleri:
Yerel laravel
/var/www/html/api/
Uzaktan laravel sunucusunun ortak klasöründe
/var/www/html/projectx/api/
izinleri test için 777 setted:
[[email protected]]# ls -l /var/www/html/projectx/api/ total 184 ... drwxrwxrwx 2 root root 4096 2016-04-13 13:22 public ...
Benim 'projectx.com' url açık fuzybox uygulaması, ben url'ye gittiğimde, projectx.com/api
api dizin dosyaları ve klasörler listesi alıyorum, bu http sunucusunun çalıştığını ve api dizinine ulaşabileceğimi, ancak projectx.com/api/public
'a gittiğimde hata 500 olsun. Yerel makinemde her iyi çalışıyor.
sanal konak yapılandırma:
<VirtualHost *:80>
ServerName projectx.com
ServerAlias projectx.com
DocumentRoot /var/www/html/projectx
ErrorLog /var/www/html/projectx/error.log
CustomLog /var/www/html/projectx/requests.log combined
</VirtualHost>
ayrıca alt sanal yapılandırmaları denedik ama
projectx.com
giderken yaklaşık 500 hatası alıyorum: Sen bir
public
dizine web sunucusu yönlendirmeniz gerekir
<VirtualHost *:80>
ServerName projectx.com
ServerAlias projectx.com
DocumentRoot /var/www/html/projectx/api/public
ErrorLog /var/www/html/projectx/error.log
CustomLog /var/www/html/projectx/requests.log combined
</VirtualHost>
Sorun php sürümü ile oldu. –