Mac iOS install PHP development environment

Source: Internet
Author: User
Tags php development environment
I didn't want to build a development environment on my Mac, but I was searching for a PHP installation. Find a Mac installation just look at the hemp no trouble. Then you find your own php5, and you bring your own Apache, and you have a virtual machine for the slot.

The installation method and the official website are still discrepancies. I generally looked at the configuration, no blind modification.

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

Remove the LoadModule php5_module libexec/apache2/libphp5.so annotation. Another, not found.

Include/private/etc/apache2/other/*.conf This inside there is a PHP5 conf, will also insert the bottom, so do not add.

The root directory of the project is/library/webserver/documents.

Insert one , succeed.

Restart Apache, sudo apachectl restart

Rewrite_module Module Open

LoadModule Rewrite_module libexec/apache2/mod_rewrite.so

Previous: Elasticsearch installation of Chinese sub-phrase pieces Elasticsearch-analysis-ik

  • 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.