- cmd(命令字元底下)
- 到專案根目錄
- 指令php artisan serve
- 網址localhost:800
Mac
-------------------------------------------------------------------
//apache重啟
$ apachectl restart
//網頁導向
$ vi /etc/hosts
//檔案路徑
$ vi /etc/apache2/extra/httpd-vhosts.conf
$ vi /etc/apache2/httpd.conf
------
DocumentRoot "/Users/username/Sites"
<Directory "/Users/username/Sites">
#Include /private/etc/apache2/extra/httpd-vhosts.conf
change
Include /private/etc/apache2/extra/httpd-vhosts.conf
參考網址:
------
DocumentRoot "/Users/username/Sites"
<Directory "/Users/username/Sites">
#Include /private/etc/apache2/extra/httpd-vhosts.conf
change
Include /private/etc/apache2/extra/httpd-vhosts.conf
參考網址:
- http://harryhsu.logdown.com/posts/180394-in-mac-os-108-set-up-apache-server-and-php
- https://coolestguidesontheplanet.com/set-virtual-hosts-apache-mac-osx-10-9-mavericks-osx-10-8-mountain-lion/
沒有留言:
張貼留言