THIS GUIDE IS OLD! Go to http://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew for the Yosemite version.
Since the OS X release of Mavericks, developers can download Command Line Tools separately, which means developers do not need Xcode. However, if you downloaded Xcode before, then you will need to update Xcode either in the App Store application or with Software Update. May 09, 2016 In this tutorial we will show you how you can install the Command Line Tools without Xcode. Note: this guide only applies to Macs that run OS X 10.9 and higher. Installing Command Line Tools without Xcode. You are going to use the Terminal app to get the job done. If you are trying this on a latest Mac OS X Mavericks, command line tools come with the Xcode 5.x So make sure you have installed & updated Xcode to latest after which make sure Xcode command line tools is pointed correctly using this command.
Xcode
Go to http://developer.apple.com/downloads, log in with your Apple ID (free) and download the newest version of either Command Line Tools (OS X Lion) for Xcode or Command Line Tools (OS X Mountain Lion) for Xcode. Run the installer in the dmg and you'll have the LLVM compiler,
make , and other build tools.
XQuartz
Install XQuarts to satisfy a library dependency for PHP.
Open terminal and run the following steps in the command prompt to install
brew and bring it up to date:
Edit
~/.bash_profile and put /usr/local/bin at the beginning. This command attempts to do this automatically:
MariaDB may use
cmake as part of its compilation process, and cmake has java as a dependency. If this pops up during the MariaDB build, choose to Install:
Set up MariaDB, set to start on boot, and start now:
NOTE: These instructions are for PHP 5.3. If you want PHP 5.4, change all instances of
php53 to php54 , and 5.3 to 5.4 . If you want to later switch from php53 to php54, you would need to run brew unlink php53 && brew link php54 for brew to symlink the appropriate files in /usr/local/bin.
Add the dupes and php taps:
Install PHP:
Set timezone, and increase timeouts and memory values (this is a single command):
Add a PHP error log; without this, you may get Internal Server Errors if PHP has errors to write and no logs to write to (be sure to copy and paste the lines containing
USERHOME through the last EOF as a single command):
Install PHP extensions and add configuration to php53:
Start PHP-FPM and start on boot:
![]()
Note that even though php-fpm.conf has _www as the user and group, it will run as your user because you're not loading the plist as root.
Also,
php-fpm.conf is pre-configured to have min-servers, kind of like Apache, which are unnecessary on a laptop where you should never be loading more than 2 pages at a time. Consider changing pm = dynamic to pm = ondemand . The comments around that section will explain how to lower the maximum number of FPM processes, which I'd recommend setting to 2, and the timeout value to 5s. PHP-FPM will have to start processes more often, but it'll also kill idle processes when they're no longer needed, saving RAM.
Your video editing experience will never be the same again with OS X 10.10 Yosemite. Its features have been redefined just to suit your requirements and any other Mac user. You might encounter problem of 'cannot edit video on Yosemite'. Os x download.
Add the apache tap: Free music plug-ins for mac os x.
Due to a bug in OS X's apr-1-config tool, this will create symlinks for the non-existent OSX10.8.xctoolchain directory. You're welcome to try the following brew command without this, but you'll need to run this if it fails to install:
We'll use
mod_fastcgi to run PHP with PHP-FPM:
Command Line Tools Os X Mavericks For Xcode 10
Create the logs directory:
VirtualHosts (be sure to copy and paste the lines containing
USERHOME through the last EOF as a single command):
Command Line Tools For Xcode
If you read that closely, you'll see that it's set up to do MassVirtualHosts using the
*.dev tld. For example, set up a web root at $HOME/Sites/project and you will be able to view it at http://project.dev without needing to create a separate VirtualHost. A custom log format is used, putting the domain name at the beginning of the line, so you can easily see the output as it related to a project.
Command Line Tools Os X Mavericks For Xcode 7
Restart Apache (if it was running) and set to start on boot:
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2020
Categories |