How to configure the Web environment (PHP) under Mac

Source: Internet
Author: User

1, install Php+apach+mysql (XAMPP)

2, create a new folder in the directory: I was in the users/personal directory/workspace3, open/applications/xampp/xamppfiles/etc/httpd.conf,

Add the following content:

# XAMPP

Include etc/extra/httpd-xampp.conf

Include "/applications/xampp/xamppfiles/apache2/conf/httpd.conf"

Include "/users/wuzeguo/workspace/www_conf/*"

4, under workspace new Folder Www_conf5, modify the host file (/etc/hosts) 6, add conf file under www_conf (named after the project) if the project name is Hani, then the name is Hani.conf < VirtualHost *:80>

ServerAdmin [email protected]

#项目地址

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>

How to configure the Web environment (PHP) under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.