hello world to php( mac 配置 xmapp virtual host)

來源:互聯網
上載者:User

標籤:安裝   round   data   post   term   mod   index   pop   mysql   


一、安裝xmapp。安裝完以後查看,服務是否都能啟動(資料庫和server)
二、配置自己的virtualhost      1、系統host檔案加入server的網域名稱(在瀏覽器中輸入欄位名後會先通過host檔案)          sudo nano /private/etc/hosts(也能夠使用vim開啟進行編輯)                2、配置Apache,開啟Apache的設定檔 /Applications/XAMPP/etc/httpd.conf         # Virtual hosts  Include       /Applications/XAMPP/etc/extra/httpd-vhosts.conf  #讓Apache去讀虛擬機器主機的設定檔三、配置httpd-vhosts.conf裡加入Virtual Host的配置      <Directory "/Users/only/Desktop/www">         SetOutputFilter DEFLATE        Options FollowSymLinks        AllowOverride All        Require all granted       # Order allow,deny        allow from all        DirectoryIndex index.html index.php    </Directory>    ErrorLog "/Users/only/Desktop/www/logs/dummy-host.example.com-error_log"    CustomLog "/Users/only/Desktop/www/logs/dummy-host.example.com-access_log" common</VirtualHost>四、出現的問題 1、 mysql無法啟動(重裝xmapp) 2、網站始終跳轉到xmapp的預設頁。有可能系統內建Apatch 改動時為系統的檔案。因此一直沒有跳轉 3、出現403錯誤,在httpd.conf裡面搜尋User Deamon。把deamon改成OS的username,重新啟動Apache(server目錄      一 致)五、用到vim的命令   開啟 sudo vim fileName;   輸入 i    退出 按下esc 按下: 進入命令模式 wq 儲存退出

獨學而無友,則孤陋而寡聞!

分享知識,交流技術,碰撞思想。         

hello world to php( mac 配置 xmapp virtual host)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.