?
- Download (http://www.ampps.com/download) and install Ampps
- Basic configuration:
2.1 Select all extensions
2.2 Change PHP version to 5.3
Configuring virtual Hosts
Ampps Configure the virtual host Super simple, click on Ampps HOME Add New Domain, will automatically configure Apache and hosts
Configure Xdebug, switch to the PHP configuration page, click Configuration, add the following code to the end of the file( note the location of the corresponding PHP version)
Restart Apache to verify that the Xdebug is configured successfully.
To configure the Redis extension, run the following command ( note the location of the appropriate PHP version):
git clone git://github.com/ Nicolasff/phpredis.gitcd phpredis/applications/ampps/php-5.3/bin/phpize cflags=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32.
Configure--with-php-config=/applications/ampps/php-5.3/bin/php-configmakesudo make install |
Switch to the PHP configuration item and click Configure. Add the following record at the end of the php.ini file:
Extension=/applications/ampps/php-5.3/lib/extensions/no-debug-non-zts-20090626/redis.so
To configure the memcache extension, run the following command ( note the location of the appropriate PHP version):
Wget-c Http://pecl.php.net/get/memcache-2.2.7.tgztar XZVF memcache-2.2.7.tgzcd memcache-2.2.7/applications/ampps/ Php-5.3/bin/phpizecflags=-m32 cppflags=-m32 ccasflags=-m32 ./configure--with-php-config=/applications/ampps/ Php-5.3/bin/php-configmakesudo make Install |
Switch to the PHP configuration item and click Configure. Add the following record at the end of the php.ini file:
Extension=/applications/ampps/php-5.3/lib/extensions/no-debug-non-zts-20090626/memcache.so
Restart Apache, review the Phpinfo information to verify that all installations are successful.
?
MacOS uses AMPPS environment