2014年9月19日 星期五

php伺服器啟用專案(MAC)

php SERVER:

  1. cmd(命令字元底下)
  2. 到專案根目錄
  3. 指令php artisan serve 
  4. 網址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


參考網址:

  1. http://harryhsu.logdown.com/posts/180394-in-mac-os-108-set-up-apache-server-and-php
  2. https://coolestguidesontheplanet.com/set-virtual-hosts-apache-mac-osx-10-9-mavericks-osx-10-8-mountain-lion/


沒有留言:

張貼留言