• http://www.wordimpressed.com Devin Walker

    When using “sudo apt-get install apache2-dev” I receive: E: Unable to locate package apache2-dev

    Any idea what’s going on there?

    • http://www.wordimpressed.com Devin Walker

      Is it perhaps called “apache2-devel” ??

      • jeffreifman

        apache2-dev worked for me on Ubuntu 12.04.

    • Victor

      I think the package name should be apache2-prefork-dev
      At least this is what I found for Ubuntu 13.04

  • jeffreifman

    try sudo apt-get update to update your packages

    • http://www.adornomedia.com/ David H

      I had to install php5-dev instead of apache2-dev. Are you sure that’s not what you meant?

      I also got this error:

      In file included from /tmp/pear/temp/APC/apc.c:45:0:
      /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
      compilation terminated.

      I also had to run this command:

      apt-get install libpcre3-dev

      • jeffreifman

        It’s been a while since I ran through this on a blank machine. I don’t believe there is an error – but it’s possible. It could also be differing versions of unix. If you’re on 10.04 let me know and I’ll add php5-dev to the fragment

        • http://www.adornomedia.com/ David H

          I think maybe the problem is that I used the Ubuntu 12.10 AMI instead of the Ubuntu 12.04 LTS image.

      • https://jackpearce.me/ Jack Pearce

        cheers for this

  • Mathew Davies

    I found it necessary to install the phpize package, but that was straightforward. Great guide here!

  • https://jackpearce.me/ Jack Pearce

    this was a great help, thank you.

  • Nick

    excellent info… thanks for posting

  • Naveen Nallagatla

    Hi,
    I followed this procedure step by step upto installing the supporting components for W3Total Cache. Then I realized I has missed out installing the W3TC plugin from the wordpress admin area. Now I am getting a server error (500) when I try to access the site or the admin panel. Could anyone help me solve this? Thank you in advance.

  • http://brandxten.com/ Alex Kim

    Hi Jeff,
    Thanks for the awesome post. I have been playing with EC2 for the past few days and came upon your tutorial.

    I ran into an error during:

    sudo pecl install apc

    a “make” error

    once I am in W3, the only cache method I see is the memcached.
    The APC is not available.

    Can you provide some input regarding the error step above?

    Thanks!

    • Anon

      Restart Apache:
      sudo service apache2 restart
      Install APC with the proper command:

      apt-get install php-apc

      That should fix it.

  • http://www.agence-planb.com/ Basile Fanon

    This is very complete guide.

    Thanks very much for sharing.