Documentmustbedirectory in php

Source: Internet
Author: User
Use xampp to configure the environment on mac. Restart apache after the directory is changed. AH00526: Syntaxerroronline229ofApplicationsXAMPPxamppfilesetchttpd appears. conf: DocumentRootmustbeadirectory, which is a problem with selinux found on the Internet. chcon... use xampp to configure the environment in mac. After the directory is changed, restart apache to display AH00526: Syntax error on line 229 of/Applications/XAMPP/xamppfiles/etc/httpd. conf:
DocumentRoot must be a directory. I searched the internet for The selinux problem chcon-t httpd_sys_content_t, but the mac does not seem to have the chcon command.

Reply content:

Use xampp to configure the environment on mac. After the directory is changed, restart apache to display AH00526: Syntax error on line 229 of/Applications/XAMPP/xamppfiles/etc/httpd. conf:
DocumentRoot must be a directory. I searched the internet for The selinux problem chcon-t httpd_sys_content_t, but the mac does not seem to have the chcon command.

Syntax error on line 229 of/Applications/XAMPP/xamppfiles/etc/httpd. conf:
You can see the error description. the DocumentRoot configuration is incorrect, and the number of rows is also available. You can check the configuration here.
Otherwise, paste the configuration here to see it...

When you configure the VM, DocumentRoot does not point to the folder.

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.