2014-11-28 3 views
0
## My laravel application is displaying no data ## 

안녕하세요, 저는 laravel 프레임 워크를 사용하여 questionniare 응용 프로그램에서 작업하고 있습니다.이 문제에 대해서는 잘 모릅니다. 내가 mquestions.com을 입력하면 내 서버가 흰색 화면으로 바뀌고 데이터는 수신되지 않으며 크롬 관리자는 500 개의 내부 서버 오류가 발생합니다. 내 개발 환경에 일반 localhost 대신 가상 호스트로 서버를 설정했지만. 이 가상 호스트에 대한 내 아파치 설정입니다 /etc/apache2/sites-enabled/000-default-conf이 내가 명령 줄내 laravel 응용 프로그램에서 아무 데이터도 표시하지 않습니다.

$ sudo apache2ctl restart
<VirtualHost *:80> 
DocumentRoot "/var/www/websiteclient/public/" 
<Directory "/var/www/websiteclient/public/"> 
    Options FollowSymLinks Indexes MultiViews 
    AllowOverride All 
</Directory> 
ServerName mquestions.com 
</VirtualHost> 

이 내가 가진 것을 내 /etc/hosts 파일

다음

127.0.0.1 localhost 
127.0.1.1 Jobinpal 
127.0.1.1 popibay.com 
127.0.1.1 billishop.com 
127.0.1.1 mquestions.com 
127.0.1.1 stackedit 
127.0.1.1 phpmyadmin 
127.0.1.1 opencart 

할 설정 때 무엇을

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message 

app/storage은 이미 RW 모드로 설정되어 있습니다.

감사합니다. 나는 그것이 문제가 무엇인지, 그리고 해결 방법은 무엇인지 추측합니다. 감사합니다


답변

0

나는 다음과 같이의 DirectoryIndex에 선언을 누락 생각 (적어도, 나는이 길에 있고, 지금까지 작동됩니다) :

<VirtualHost *:80> 
    ServerName YOUR_SERVER_NAME 
    DocumentRoot YOUR_FOLDER_LOCATION 
    DirectoryIndex index.php 
    <Directory YOUR_FOLDER_LOCATION> 
     AllowOverride all 
    </Directory> 
</VirtualHost> 

는 희망이 도움이!

+0

어떻게 디렉토리 색인을 의미합니까? @facundofarias – udemethegrtman

+0

체크하면 YOUR_FOLDER_LOCATION 내부에 Laravel 시동을 부트 스트랩하는 index.php 파일이 있습니다. – facundofarias

+0

그래서이 DirectoryIndex index.php와 같은 폴더 위치에 index.php를 추가해야한다는 의미입니까? – udemethegrtman

관련 문제