background preloader

Mac

Facebook Twitter

Upgrade native apache from 2.2.21 to 2.4.2 - Lion 10.7.4. OS X 10.7 Lion Development: Native Apache & PHP with Homebrew MySQL or MariaDB. OS X Lion ships with Apache and PHP, which both require a little bit of tweaking to get fully-functional for "MAMP" local development.

OS X 10.7 Lion Development: Native Apache & PHP with Homebrew MySQL or MariaDB

The one thing Lion does not ship with is a database. This will be very similar to my previous post on local development but this time we'll be using Homebrew to install either MySQL or MariaDB for the database. Since we'll be using a compiler for Homebrew, I'll also cover how to add APC and other PECL modules that you can add to OS X. Note that for all commands before that are starting with a $, the dollar sign is showing a command-line prompt in Terminal, and you should not actually type it as part of the commands. Apache We'll set things up so we won't need sudo often in the future, and so we can manage multiple VirtualHosts. . $ [ ! Edit the new ~/Sites/httpd-vhosts.conf file and add the following. Launch System Preferences and go to Sharing and toggle Web Sharing off and on so it's started and reloaded with the new settings.

Homebrew. PHP 5.3/5.4 for OS X 10.6/10.7/10.8 as binary package. Mac os x startup script help - Neowin Forums. Osx - how do i install php 5.4 on Mac OS X Lion. Plugging mcrypt into PHP, on Mac OS X Lion 10.7. Perfected for the winter cat, now on to the king of the jungle.

Plugging mcrypt into PHP, on Mac OS X Lion 10.7

Once again, thanks goes out to a previous commenter, this time it’s rachanta, for the first test. Now let’s get moving… The following instructions cater to those who a) are developing on OS X Lion 10.7.X, b) need the capabilities provided by mcrypt during their PHP development, and c) do not want to completely recompile PHP to get there. You’ll get mcrypt loading dynamically for use in PHP with this method. First, you are going to need a few things… 1) libmcrypt-2.5.8, which you can pick up here; NOTE: make sure to get libmcrypt and not mcrypt. 2) PHP 5.3.6 source, which you grab here; ADDITIONAL NOTE: You may update your OS X at some point, and PHP may get updated along with it. And 3) Xcode 4.1 tools, which you can pick up in the App Store. Next, create a directory at root called ‘SourceCache’ and dump the files from #1 and #2 in there and unwrap.

Move to the libmcrypt-2.5.8 directory, and punch in this… and then… make -j6. Setting up PHP & MySQL on OS X 10.7 Lion. With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box.

Setting up PHP & MySQL on OS X 10.7 Lion

This is how to set it up from a clean install of 10.7. /usr/local Ensure that the following directories exist: Bypass The Mac App Store To Update Mountain Lion Software. The Mac App store provides a nice, simple, graphical way to keep your Mac updated with the latest software, letting you know when system updates as well as Apple and third-party apps have a new update to be downloaded and installed.

If you don’t want to use the Mac App store, though, you can use the Terminal app along with some Terminal commands to do the same thing. When would you use this? Well, maybe when the Mac App store gets wonky, or if you’re not at the current Mac, and want to securely and remotely administer the Mac in question, that’s when. How To Create Ethernet and Wifi Kexts For Mountain Lion. OS X keyboard shortcuts.

To use a keyboard shortcut you press a modifier key with a character key.

OS X keyboard shortcuts

For example, pressing the Command key (it has a symbol) and then the "c" key copies whatever is currently selected (text, graphics, and so forth) into the Clipboard. This is also known as the Command-C keyboard shortcut. PHP OS X Lion How to Install mcrypt. The mcrypt extension is missing.

PHP OS X Lion How to Install mcrypt

Please check your PHP configuration. The above error appears after you successfully get phpMyAdmin up and running on OS X, generally you don’t have to worry about it, you only need to address the error if you are going to use a web application that requires it, for example Magento, the shopping cart software or a php framework like Laravel.

Apache SSL on Mac OSX Lion 10.7 « Life and tech. Update 11-12-2013: According to a commenter this process also works for OSX 10.9 Mavericks.

Apache SSL on Mac OSX Lion 10.7 « Life and tech

I have recently upgraded to OSX Lion from Snow Leopard, whilst setting up my development environment I needed to configure the built in Apache server to support SSL. Below are instructions on what needed to be done. Please note that the below is based on a clean install of OSX 10.7.2 and if you did an upgrade or are running a different version of Lion then the instructions below may need to be tweaked to suit your setup. Generate a host key First off we’ll make a home for the new SSL files. Mkdir /private/etc/apache2/ssl cd /private/etc/apache2/ssl sudo ssh-keygen -f server.key Generate a certificate request file.

Mac Development: Replacing MAMP in 11 easy steps. A página que procura não foi encontrada... aposto que você digitou errado!

Mac Development: Replacing MAMP in 11 easy steps

Como aumentar o limite de memória do PHP na linha de comando do Mac Quem usa Mac com MAMP ou MAMP Pro já deve saber como é sofrido ter que lidar com os erros de ... o mesmo php.ini que você usa pelo navegador. []s ( mac , php) ... Postado em <a href="/" title="Veja mais posts em: " rel="follow"></a> no dia 22 de nov de 2011 CSS turbinado com SASS - Parte 2 ... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 /* arquivo .scss */ ... Postado em <a href="/" title="Veja mais posts em: " rel="follow"></a> no dia 06 de abr de 2011 Testando as suas classes com PHPUnit ... 1 2 3 4 5 6 7 8 9 10 11 12 require_once ( 'Classe1.php' ) ; // ... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // Especifique o ...

Postado em <a href="/" title="Veja mais posts em: " rel="follow"></a> no dia 20 de jun de 2010 Javascript Orientado a Objetos? Usando easing para animações com jQuery Trabalhando com o Web SQL Database do HTML5.