Home > Backend Development > PHP Tutorial > hello world to php mac 配置 xmapp virtual host

hello world to php mac 配置 xmapp virtual host

WBOY
Release: 2016-07-29 09:01:23
Original
1241 people have browsed it

1. Install xmapp. After installation, check whether the services can be started (database and server)

2. Configure your own virtualhost

1. Add the domain name of the server to the system host file (after entering the domain name in the browser, the host file will be passed first)

sudo nano /private/etc/hosts (you can also use vim to open it for editing)

            hello world to php mac 配置 xmapp virtual host

  2. Configure Apache and open Apache’s configuration file /Applications/XAMPP/etc/httpd.conf

# Virtual hosts Include

/Applications/XAMPP/etc/extra/httpd-vhosts.conf #Let Apache read the configuration file of the virtual host

3. Configure httpd -Add Virtual Host configuration in vhosts.conf

                                                                                                                                                                                                               Options FollowSymLinks

V Allowoverride All

Require All Granted

# Order Allow, Deny

Alow from All

Directoryindex .html index.php

ErrorLog "/Users/only/Desktop/www/logs/dummy-host.example.com-error_log"

CustomLog "/Users/only/De sktop /www/logs/dummy-host.example.com-Access_log "Common

& LT;/VirtualHost & GT;

4. Reinstall xmapp)

2. The website always jumps to the default page of xmapp. It is possible that the system comes with Apatch and it is a system file when modified, so there is no jump.

3. A 403 error occurs. Search for User Deamon in httpd.conf and change deamon to the user name of the OS. , restart Apache (the server folder

is consistent) 5. Commands using vim

Open sudo vim fileName;

Enter i Exit press esc Press: Enter command mode wq Save and exit

Studying alone without friends means you are lonely and ignorant! Share knowledge, exchange technology, and collide ideas.

The above introduces hello world to php mac configuration xmapp virtual host, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template