Home >Backend Development >PHP Tutorial >macpro - Macbook Pro上有哪些PHP集成环境,如何像Windows进入www目录呢?

macpro - Macbook Pro上有哪些PHP集成环境,如何像Windows进入www目录呢?

WBOY
WBOYOriginal
2016-06-06 20:12:341262browse

Macbook Pro上有哪些PHP集成环境,如何像Windows那样进入www目录呢?

回复内容:

Macbook Pro上有哪些PHP集成环境,如何像Windows那样进入www目录呢?

xampp 先装一个这个再说 至于www在哪里那是配置文件说了算

<code>XAMPP
MAMP</code>
<code>看你自己的喜好了。都可以</code>

先查看一下Apache下面的默认DocumentRoot:DocumentRoot "/Library/WebServer/Documents"
更改目录步骤
1:进入/Private/etc/apache2/users,可以看到里面有个Guest.conf

<code><directory>
        Options Indexes MultiViews
        Require all granted
</directory></code>

2:sudo vim username.conf

<code><directory>
    AllowOverride All
    Options Indexes MultiViews FollowSymLinks
    Require all granted
</directory>
</code>

这个username是用户目录

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:启动apache遇到这个问题Next article:什么是HTTP 路由