duanli6834 2017-02-22 12:10
浏览 367

如何在XAMPP Apache上正确部署Laravel应用程序?

I am pretty new in Laravel and I am finding the following problem.

I have put my application in this folder:

C:\xampp\htdocs\HotelRegistration\

Starting it via the statment:

php artisan serve

it is correctly started here: http://127.0.0.1:8000

For some reason I need to run it with XAMPP Apache server instead the one provided by php artisan serve

So I started Apache from XAMPP but trying to open:

http://127.0.0.1:80/HotelRegistration/

but so the application can't start and I obtain the list of directory and file contained in this folder.

Why? What is wrong? What am I missing? Maybe something related to virtual host? How can I fix this issue?

Tnx

  • 写回答

3条回答 默认 最新

  • douchen3562 2017-02-22 12:19
    关注

    You can use the below to run your application. But it can fail to load the basic css file.

    http://localhost/HotelRegistration/public/
    

    Hope its help you.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?