douzhi2760 2018-04-09 16:20
浏览 141

无法在浏览器上运行Laravel 5项目

I am very new to laravel, I am using windows 7 OS. I have a PHP website made on laravel 5 which I want to run on my browser. I have gone through the videos and the various website on "How to run laravel 5 project on browser" but unfortunately I failed to run my project on the browser. I am using XAMPP and below is my Virtual Hosts file of apache. My localhost port is 7000.

<VirtualHost *:7000>

    DocumentRoot "C:\xampp2\htdocs\basicwebsite\public"
    ServerName basicwebsite.com

</VirtualHost>

And inside the hosts file within the system32 folder I have put the following line

127.0.0.1   basicwebsite.com

When I am trying to run it on my browser it gives me an error

"This site can’t be reached
basciwebsite.com refused to connect."

Any help is welcome.

  • 写回答

4条回答 默认 最新

  • dongshimao7115 2018-04-09 16:24
    关注

    check below points -

    1.) .env file should have APP_KEY 2.) have you created "storage/views" , "storage/cache"

    评论

报告相同问题?

悬赏问题

  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥15 基于作物生长模型下,有限水资源的最大化粮食产量的资源优化模型建立
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo
  • ¥15 科来模拟ARP欺骗困惑求解