---
title: "mac 开启php服务"
author: "修博龙泉"
date: "2012-10-10T11:42:27Z"
tags: []
categories: ["操作系统"]
slug: "mac-php"
draft: false
lastmod: "2012-10-10T11:42:27Z"
id: 1694969
url: "https://longquan.iteye.com/blog/1694969"
---

1：系统工具-》共享-》开启个人文件夹
2:  cp /etc/php.ini.default /etc/php.ini
3:  sudo vi /etc/apache2/httpd.conf    xxxlibphpxxx 前面#注释掉，开启apache 中的php服务
4：suod apachectl restart
5: 在网站文件夹下建立.php 配置结束