Web server does not issue after Mac upgrade

Source: Internet
Author: User

4. Apache

If you want to debug your code locally, you will Apache not be spared to kneel. apachectl -vthe execution found that Apache has been updated to 2.4.9 version. There must be something wrong with the version update.

4.1 modifying httpd.conf

First open /private/etc/apache2/httpd.conf discovery appears to restore the default settings. Re-note the following two lines of code:

Include /private/etc/apache2/extra/httpd-vhosts.conf...LoadModule php5_module libexec/apache2/libphp5.so
4.2 Modifying httpd-vhosts.conf

Open private/etc/apache2/extra/httpd-vhosts.conf a virtual host that was set up before discovery doesn't seem to have been modified! But because the upgrade to the Apache 2.4 above settings need some adjustment, otherwise you will get 403 Forbidden You don‘t have permission to access / on this server errors.

will be the original

<virtualhost *:80>ServerAdmin [email protected]documentroot  "/users/jerry/dev/apache/php_tester" servername php_tester ErrorLog "/users/jerry/dev/apache/php_tester/log/sites-error_log "CustomLog  "/users/jerry/dev/apache/php_tester/log/sites-access_log" common < Directory/> options Indexes followsymlinks includes ExecCGI allowoverride None Order deny, Allow allow from all </directory></VIRTUALHOST>      

Change into

<virtualhost *:80>serveradmin [email protected]  documentroot  "/users/jerry/dev/apache/php_tester" servername php_tester ErrorLog "/users/jerry/dev/apache/php_tester/log/sites-error_log "CustomLog  "/users/jerry/dev/apache/php_tester/log/sites-access_log" common < Directory/> options Indexes followsymlinks includes ExecCGI allowoverride None require all Granted </directory></VIRTUALHOST>   

It's actually going to Order deny,allow, Allow from all change Require all granted . ===== "changed the OK.

Reference: Occurs after upgrading OS X Yosemite: Repairing various development environments

Web server does not issue after Mac upgrade

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.