Create the folder domains inside the ~/Sites folder.Create inside the Sites folder a folder called _vHosts.Create the Sites folder in your user home ( if not exist ).Include /Users/martijn/Sites/_vHosts/*.conf * ( Replace martijn with your short admin name ) The file should at least have these two lines: NameVirtualHost *:80 * Add the include: include /Users/martijn/Sites/_vHosts/*.conf at the bottom of the file.Be sure that NameVirtualHost *:80 doesn’t start with a # sign.Comment out the 2 VirtualHost examples by putting a # in front.Open the duplicated file that we createdĬhange: AllowOverride None, to AllowOverride All.Press save and enter your password when asked. Press: shift + command + g ( Go to folder )įind the line: #Include /private/etc/apache2/extra/nf
This notice is not a problem, we only use this Mac for local website development.
Virtualhostx installation tutorial install#
(PHP 5.5 is the current stable)Īfter the install is completed Apache is restarted and complains about “ Could not reliably determine the server's fully qualified domain name, using your-computer-name.local for ServerName”. Note: If you want to have an older PHP version, replace 5.5 with 5.4. Press: RETURN ( download starts and continues with a the install ) We gonna use the PHP installer created by Liip. After we installed PHP, we configure Apache & PHP so that we’re able to run the ProcessWire sites in our own ~/Sites directory. For MYSQL we gonna install the DMG Archive (x86, 64-bit). The PHP installer package is created by Liip and it is based on entropy's php package. It doesn't install Apache, it uses the Apache installation, which comes with OS X.
Let's setup PHP, MYSQL and activate mail using gmail smtp for OSX 10.6 and up, perfectly suitable for ProcessWire. I love to share how I setup this environment in a step by step tutorial. Raymond is also using this and Arjen did the same recently. I'm using the same web develop environment for years and I'm really happy with it. Recently I got a brand new iMac so I needed to install PHP SQL and configure Apache.