MacOS uses AMPPS environment

Source: Internet
Author: User
Tags locale zts

?

  1. Download (http://www.ampps.com/download) and install Ampps
  2. Basic configuration:
    2.1 Select all extensions

    2.2 Change PHP version to 5.3
  3. Configuring virtual Hosts

    Ampps Configure the virtual host Super simple, click on Ampps HOME Add New Domain, will automatically configure Apache and hosts

  4. 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.

  5. 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

  6. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.