Hello World to php (Mac config Xmapp virtual host)

Source: Internet
Author: User


First, install the Xmapp. When you are finished installing, you can start the service (database and server)
Second, to configure their own virtualhost1, the system host file to join the domain name of the server (in the browser after entering the domain name will be first through the host file) sudo nano/private/etc/hosts (can also be opened with vim for editing)2.Configure Apache to open the Apache configuration file/applications/xampp/etc/httpd.conf          # Virtual hosts Include /applications/xampp/etc/extra/httpd-vhosts.conf #get Apache to read the configuration file for the virtual hostThird, the configurationAdd Virtual Host configuration to httpd-vhosts.conf<directory "/users/only/desktop/www" >Setoutputfilter DEFLATEOptions followsymlinksallowoverride AllRequire All granted# Order Allow,deny allow from alldirectoryindex index.html index.php</Directory>errorlog "/users/only/desktop/www/logs/dummy-host.example.com-error_log"customlog "/users/only/desktop/www/logs/dummy-host.example.com-access_log" Common</VirtualHost>iv. problems that arise1. mysql cannot start (reload Xmapp)2. The site always jumps to the default page of Xmapp. It is possible that the system comes with apatch changes when it is a system file. So there has been no jump3.A 403 error occurred and the user deamon was searched in httpd.conf. To change the Deamon to OS username, restart Apache (server directoryconsistent)V. Use of VIM commandsOpen sudo vim fileName;Input IExit Press ESC Press: Enter Command mode WQ save exit

learn alone and no friends, then lonely and know!

Share knowledge, communicate technology, and collision ideas.      

Hello World to php (Mac config Xmapp virtual host)

Related Article

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.