Home > Backend Development > PHP Tutorial > mac ios 安装php开发环境

mac ios 安装php开发环境

WBOY
Release: 2016-06-20 12:26:13
Original
1699 people have browsed it

本来没想在mac上搭建开发环境,但是我搜索php安装的时候。发现有mac安装就看一下麻不麻烦。然后发现自带php5,并且自带Apache,卧槽那还用啥虚拟机。

安装方法和官网还是有出入的。我大体看了一下配置,没有盲目修改。

sudo vim /private/etc/apache2/httpd.conf

将LoadModule php5_module libexec/apache2/libphp5.so注释去掉。另一个,没搜到。

Include /private/etc/apache2/other/*.conf这个里边有个php5 的conf,将下边的也插入进去了,所以不用添加。

项目的根目录是/Library/WebServer/Documents.

插入个,成功。

重启apache, sudo apachectl restart

rewrite_module模块开启

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

上一篇: elasticsearch安装中文分词组件elasticsearch-analysis-ik

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template