zoukankan      html  css  js  c++  java
  • 在mac下怎么配置web环境(php)

    1, 安装PHP+apach+mysql(xampp)

    2, 在目录下建一个新文件夹   : 我是在Users/个人目录/workspace
    3, 打开/Applications/XAMPP/xamppfiles/etc/httpd.conf,

        添加如下内容:

     # XAMPP

     Include etc/extra/httpd-xampp.conf

     Include "/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf"

     Include "/Users/wuzeguo/workspace/www_conf/*"

    4, 在workspace下新建文件夹www_conf
    5, 修改host文件(/etc/hosts)
    6, 在www_conf下添加conf文件(以项目名字命名)如项目名为hani,则名为hani.conf
       <VirtualHost *:80>

     ServerAdmin webmaster@dummy-host.localhost

      #项目地址

     DocumentRoot /Users/wuzeguo/workspace/hani 

     directoryIndex  index.html index.php index.htm index.shtml login.php

     ServerName www.hani.com

     ErrorLog "logs/mhd_error.log"

     CustomLog "logs/mhd_error_common.log" common

     <Directory /Users/wuzeguo/workspace/hani>

     Options FollowSymLinks Indexes

     AllowOverride all 

     #Order allow,deny

     #Allow from all 

     Require all granted

     </Directory>

     </VirtualHost>

        
  • 相关阅读:
    [hdu3853]LOOPS(概率dp)
    [poj2096]Collecting Bugs(概率dp)
    lintcode-42-最大子数组 II
    lintcode-39-恢复旋转排序数组
    lintcode-36-翻转链表 II
    lintcode-34-N皇后问题 II
    lintcode-33-N皇后问题
    lintcode-32-最小子串覆盖
    lintcode-31-数组划分
    lintcode-30-插入区间
  • 原文地址:https://www.cnblogs.com/qianlizeguo/p/6834577.html
Copyright © 2011-2022 走看看