FeaturesWP CloudPricingEE CLIContactMy Account

Features

Team Access & User Permissions

Server Setup & Management

Site Creation & Management

Deployments & Developer Tools

Firewall Protection

Speed & Caching

Backups & Recovery

Logs & Monitoring

Create WP Cloud Sites

All Features

Read Documentation

Install

Installation Guide

FAQ

Roadmap

Explore EE CLI

Resources

Commands

Handbook

Blog

Community

Forum

EasyExperts

Tutorials

Subscribe

Github

CLEAR

Start For Free

separator Tutorials separator Linux separator PHP 5.5, MySQL, Postfix, Nginx and WordPress on Ubuntu

Topics

On this page

Assumption:

Installing PHP 5.6

Run following codes to add launchpad repo to apt-sources:

Update apt-cache…

Now, run following to install PHP itself

Check PHP Version

Installing MySQL

Add Percona Repo

Installing percona-mysql server

Installing Postfix

Testing your mail config:

Installing Nginx

What's Next?

PHP 5.5, MySQL, Postfix, Nginx and WordPress on Ubuntu

easyengine (ee) note: If you are using easyengine, you can accomplish everything in this article using following command:

ee stack install --all

A complete WordPress-Nginx setup will involve PHP, MySQL, Nginx stack and on the top of it WordPress itself.

If you already have PHP, MySQL & Nginx up & running then you may jump to next part i.e Nginx configuration for different WordPress

Assumption:

I am assuming few things before you start.

  1. You have a Ubuntu server up and running. This guide may work on other Debian based distros but this is tested on Ubuntu 12.04 LTS only.
  2. You have shell access to your Ubuntu server with sudo privilege or you have direct root-user access.

Installing PHP 5.6

We are going to use latest PHP 5.6 as it is much faster & better than PHP 5.3 and PHP 5.4.

As official repo for Ubuntu 12.04 LTS contains PHP version 5.3 only, we will use a launchpad repo maintained by Ondřej Surý

Run following codes to add launchpad repo to apt-sources:


			sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
		

Press “enter” key whenever asked!

Update apt-cache…

This is must, otherwise next command may end up installing PHP 5.3!


			sudo apt-get update
		

Now, run following to install PHP itself


			sudo apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5-dev php5-imap php5-mcrypt
		

Check PHP Version

Run following command…


			php -v
		

You will see following output…


			PHP 5.6.29-1+deb.sury.org~xenial+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
 with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
		

Installing MySQL

We use Percona-MySQL everywhere for extra features and up-to-date Ubunut builds they maintain.

Add Percona Repo

Execute following commands:


			apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A

echo "deb http://repo.percona.com/apt `lsb_release -cs` main" >> /etc/apt/sources.list.d/percona.list
echo "deb-src http://repo.percona.com/apt `lsb_release -cs` main" >> /etc/apt/sources.list.d/percona.list

apt-get update
		

Installing percona-mysql server


			sudo apt-get install percona-server-server-5.6 percona-server-client-5.6
		

Above wizard should ask you to enter a mysql password for user root. If it doesn’t, then run the following command to change MySQL password.


			sudo mysqladmin -u root password NEWPASSWORD
		

Please note that above command will not help you in case you forget your mysql root password in future.

Installing Postfix

If you want to send mails from your WordPress, you will need a SMTP server. You can use a remote SMTP server like gmail.com for this. But I prefer using postfix package to run a SMTP server locally.

In simple words, if you skip this step and do not configure remote SMTP server with WordPress either, your WordPress will not be send email notifications for comments, etc.


			sudo apt-get install postfix
		

It will take you through few steps. The important one are:

  1. Select option – Internet Site
  2. Hostname – generally your main domain i.e example.com. Recommended – a FQDN like mail.example.com

You no need to touch other options. Just restart mail service to be safe.


			/etc/init.d/postfix restart
		

Testing your mail config:

Run following PHP code with admin@example.com replaced by your mail id:


			php -a
mail ('admin@example.com', "Hello from nginx!", "My email setup works!");
exit ();
		

Alternatively you can use check-mail WordPress Plugin after your WordPress setup completes to be sure that your WordPress can send emails.

Installing Nginx

Ubuntu official repos come with a Nginx package but I prefer using launchpad repo maintained by Nginx team.


			sudo add-apt-repository ppa:nginx/stable
sudo apt-get update 
sudo apt-get install nginx
		

If you prefer to use Nginx package in Ubuntu repo, you can simply run following command:


			sudo apt-get install nginx-full
		

What’s Next?

At this point, we are done with installing prerequisite for WordPress.

Changelog:

As technology evolves, we keep upgrading our installation. This article is “how” we work here at rtCamp. So this article need to be changed over time.

Oct 15, 2013

 

Logrotate Example for Custom Logs

PREVIOUS

Serverdensity

NEXT


Comments

  1. varma Avatar

    varma

    September 25, 2012

    HI,

    Got into bit of trouble here..
    I have tried to install APC for my current server ( aleady nginx, running on Centos)
    Now it seems APC is conflicting with Zend Optimizer
    If i enable APC extension on php.in then nginx will get me a 502 Error.

    Any idea to solve it.

    1. Rahul Bansal Avatar

      Rahul Bansal

      September 25, 2012

      If you are not using any application that uses Zend Optimizer, you can disable it.
      In my opinion WordPress will benefit from APC more rather than Zend Optimizer.

  2. Wolfsrudel Avatar

    Wolfsrudel

    October 16, 2012

    I don’t like this line:

    sudo mysqladmin -u root password NEWPASSWORD

    because you’ll have the password in you bash history.

    For me the better way is to use the

    mysql_secure_installation

    script.

    1. Rahul Bansal Avatar

      Rahul Bansal

      October 16, 2012

      Thanks for your feedback. 🙂

      I am aware of mysql_secure_installation and bash history concern but if I can read your bash history then I will be able to read other files as well. 😉

      Goal of this chapter is to get all needed software up and running quickly. This is part of a large on-going wordpress-nginx series tutorials. I will be covering security in-depth towards end where I will revisit this and few more things.

    2. Christian Skala Avatar

      Christian Skala

      August 2, 2013

      Wolfsrudel,

      if you don’t want a command show up in your bash history, just execute it with a preceding space. That’s all.

      1. Rahul Bansal Avatar

        Rahul Bansal

        October 14, 2013

        Nice trick 🙂

  3. Wolfsrudel Avatar

    Wolfsrudel

    October 16, 2012

    I think you’ll should explain the configuration of php-fpm too. The default options are quite good, but not for best performance. I’m using this one for my pool nginx

    [nginx]    
    listen = /var/lock/php5-fpm.sock    
    user = nginx    
    group = www-data    
    
    request_slowlog_timeout = 5s
    slowlog = /var/log/php5-fpm/www-slowlog.log
    
    listen.owner = nginx
    listen.group = www-data
    listen.mode = 0666
    listen.backlog = -1
    
    pm = dynamic
    pm.max_children = 9
    pm.start_servers =3
    pm.min_spare_servers = 2
    pm.max_spare_servers = 4
    pm.max_requests = 200
    pm.status_path = /status
    
    request_terminate_timeout = 120s
    
    rlimit_files = 131072
    rlimit_core = unlimited
    
    catch_workers_output = yes
    
    env[HOSTNAME] = $HOSTNAME
    env[TMP] = /tmp
    env[TMPDIR] = /tmp
    env[TEMP] = /tmp
    
    1. Rahul Bansal Avatar

      Rahul Bansal

      October 16, 2012

      What you are using is quite customised. In real-life people don’t need to make these many changes to their config. As explained earlier this article is part of a large series. If I cover everything here itself, then this article will become too big to be useful!

      I covered php slowlog in details here. It’s not good to keep slowlog always on as it itself slows-down PHP scripts. I will recommend turning it off when you are done with debugging.

      request_terminate_timeout is commented by default and it takes value of max_execution_time from php.ini file. Only when your php scripts fails to terminate after max_execution_time elapses (most likely because of some bug) you need to set value for request_terminate_timeout explicitly.

      I explained this in more details here.

      You can find all articles in this series here. More will be added soon. 🙂

  4. Nick Nasty Avatar

    Nick Nasty

    November 18, 2012

    Hi,

    Please add that to get out of interactive mode , need to hit – d

    1. Rahul Bansal Avatar

      Rahul Bansal

      May 17, 2013

      Looks like your PHP is not complied with readline support. I mentioned about this in – External link to rtcamp.comhttp://rtcamp.com/tutorials/checking-if-phpwordpress-can-send-mails/

  5. ovidiu Avatar

    ovidiu

    January 26, 2013

    if I give APC say 1GB for caching, does it share that space between all vhosts even though they are running with different users?

  6. Rahul Bansal Avatar

    Rahul Bansal

    January 28, 2013

    I am not sure but I think APC will “allocate” 1 GB for every PHP’s linux-user. Still, OS may not complain as long as that much memory is not “used” by all processes together.

    You can simply do following:

    1. Start with 256MB memory for APC. Copy apc.php file under different vhosts.
    2. Check what results apc.php shows from browser.
    3. If all vhosts’ apc.php shows same amount of memory consumption then memory may be shared among all.
    4. Also, if you see low free memory in apc.php output in any-case, you can increase memory allocated to APC.
  7. ovidiu Avatar

    ovidiu

    January 29, 2013

    Doesn’t really work. I tried that before. The reason is that each vhost runs the webserver under its own user so apc.php within one vhost sees only stuff it has access to.

    i.e. apc.php within site a) show i.e. 60MB out of 256M in use while apc.php within site b) shows 58MB out of 256MB in use.

    I think that is because they run as different users so they only see their usage?
    The reason for my question was: i.e. if I know each of my ten wordpress sites needs 60MB, do I assign 60MB to apc.ini and since each vhost runs its own settings each uses 60MB or should I assign 600MB to apc.ini?

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 8, 2013

      Sorry for delayed reply.

      You can try 60MB and if you see apc.php is using 100% of memory, you can start increasing it gradually.

      As every vhost is having separate memory segment, small segments can be used.

  8. himanshu Avatar

    himanshu

    February 27, 2013

    php -a puts me in interactive mode rather than interactive shell, what do I need to do to get interactive shell. I am following your tutorial step by step.

    Thanks

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 27, 2013

      It looks like your php is not compiled with readline support.

      I have written about it in article – External link to rtcamp.comhttp://rtcamp.com/tutorials/checking-if-phpwordpress-can-send-mails/

  9. skidnew Avatar

    skidnew

    March 6, 2013

    My wordpress can not send email, i has install postfix. Why it happen? how to fix this problem?

    1. skidnew Avatar

      skidnew

      March 6, 2013

      additional information, i has check email function using wordpress plugin, but it NOT WORK (email no sent). Need assistance as soon as possible.

      1. Rahul Bansal Avatar

        Rahul Bansal

        May 17, 2013

        Please send postfix error log – External link to rtcamp.comhttp://rtcamp.com/tutorials/debugging-postfix-config-mail-logs-mail-queues-more/

  10. KC Avatar

    KC

    April 17, 2013

    Great series.. one detail I couldn’t find though off the bat:
    Do I use Ubuntu 12.04 x32 server or 12.04 x64 server?

    Many thanks.

    1. Rahul Bansal Avatar

      Rahul Bansal

      April 17, 2013

      @KC

      We mostly use 64-bit servers but these articles should work on 32-bit variants without any problem.

      If you face any issues, please let me know. We will sort it out! 🙂

  11. David Kaczynski Avatar

    David Kaczynski

    May 16, 2013

    Thanks for the great blog series. It has helped me out tremendously.

    Unfortunately, I’ve hit a snag here with my nginx configuration. I am trying to deploy my blog at sudofoo.net, but I am getting a 403 error.

    Here is my /etc/nginx/sites-enables/sudofoo config file:

    server {
        listen 80;
        server_name sudofoo.net www.sudofoo.net;
    
        access_log   /var/log/nginx/sudofoo.access.log;
        error_log    /var/log/nginx/sudofoo.error.log;
    
        root /usr/share/nginx/www/sudofoo;
        index index.php;
    
        location / {
                try_files $uri $uri/ /index.php?$args; 
        }
        location ~ .php$ {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
        }
    }
    

    (I’m not sure why the text is the same color as the background, but highlighting the code should reveal it)

    I gave ownership of the following directories and sub-directories to the www-data user: /var/log/nginx/ and /usr/share/nginx/www/sudofoo/.

    Also, if I change the root and index to /usr/share/nginx/www and index.html respectively, I do get the default nginx welcome page.

    Does anyone have any tips on how to troubleshoot this issue?

    1. Rahul Bansal Avatar

      Rahul Bansal

      May 17, 2013

      Have you checked PHP permissions? Is PHP running by user `www-data`?

      Also, you can enable debug log in Nginx to get more details. See – External link to rtcamp.comhttp://rtcamp.com/tutorials/debugging-nginx-configuration/

  12. Colin Avatar

    Colin

    June 13, 2013

    Awesome Tutorial Rahul,
    I also changed ‘cgi.fix_pathinfo=0’ in ‘/etc/php5/fpm/php.ini’ because i had it written down in my own notes as security issue.
    “If this number is kept as 1, the php interpreter will do its best to process the file that is as near to the requested file as possible. This is a possible security risk. If this number is set to 0, conversely, the interpreter will only process the exact file path—a much safer alternative. ”

    Is this necessary Rahul, what do you think?

    1. Rahul Bansal Avatar

      Rahul Bansal

      August 8, 2013

      Sorry for delayed reply.

      Using try_files in nginx will eliminate security risk without changing cgi.fix_pathinfo.

      I prefer try_files as it is efficient and takes care of security without any edit to php.ini

      1. Colin Avatar

        Colin

        August 8, 2013

        Ok thanks Rahul. Im pretty new to nginx. Your tutorials are extremely helpful.

  13. Brian Avatar

    Brian

    August 4, 2013

    Hi Rahul,

    This series has been tremendously helpful for a newbie such as myself that is new to linux and setting up dedicated websites. I largely followed your guide with some other additions and I wanted to ask you about security.

    1. Is it ok for www-data to have write permissions over /var/www ? Some discussions say that it is not safe to do so, whats your take on it? For me, I changed it to give ubuntu user/group ownership over /var/www because I wanted to be able to sftp in and change files.

    2. In /etc/php5/fpm/pool.d/www.conf and /etc/nginx/nginx.conf I changed the user/group to ubuntu from www-data. Will this open me up to hacking by doing this and if so, what is the best way to keep it www-data and be able to sftp in to the server with the ubuntu user?

    Any other security tips you or anyone here may have will be appreciated. As I said, I’m very new to all this and just trying to get a grasp of it so I can run my own site on Amazon EC2.

    Thanks.

    1. Rahul Bansal Avatar

      Rahul Bansal

      August 8, 2013

      Its hard to answer what should be the way but I will tell you what we do…

      #1. I make sure /var/www is owned by user & group www-data . Though I do not use sftp (I use scp/rsync for file transfer), I think a linux-user should be owner of his own home. If you create a new linux-user using adduser command, linux will make that user/group owner for his home directory.

      #2. I also use same www-data linux-user to run nginx and php processes. This makes things easy. But for shared-hosting scenarios, where 2-people are hosting on same machine and cannot trust each other, we prefer creating php-fpm pools per linux-user to run their sites’ php files. In this case they share `www-data` which is added to different php-fpm pools. Nginx, with `www-data` can read-only all website files.

      You can create separate php-fpm pools for different sites owned by same user as well. php-fpm pool with open_basedir restriction can prevent one sites php-files from accessing other-sites php-files.

      Apart from this, security itself is a big topic and I intend to write about it in-depth someday. Since its a senstive subject, I should post any “tip” without proper testing.

      You may subscribe here for future nginx-related updates.

  14. Tien Nguyen Avatar

    Tien Nguyen

    August 30, 2013

    Dear. Very thank you about this article.

    I just have one problem that after install postfix, my WordPress site still can not send email.
    Do you have any site that work with WordPress email on Digital Ocean?

    Thak you very much,
    Tien Nguyen

    1. Rahul Bansal Avatar

      Rahul Bansal

      August 30, 2013

      On DigitialOcean, make sure that droplet-hostname matches your domain-name. DigitalOcean uses hostname for Reverse PTR.

      1. Paul Grieselhuber Avatar

        Paul Grieselhuber

        September 17, 2013

        Sure would be nice if DO mentioned this during initial droplet configuration 🙂 Though, admittedly not a big deal to change.

        1. Rahul Bansal Avatar

          Rahul Bansal

          October 14, 2013

          By the way, I recently became fan of DO for their hostname > reverse-PTR mapping.

          They are one of very few companies to get this right! 🙂

          Yep, adding a notice like: “Hostname will be used as domain for all outgoing email’s” then a read more link for detailed explanation.

  15. RavanH Avatar

    RavanH

    September 29, 2013

    Hi Rahul, for some reason I cannot make my setup pass the postfix php mail test… How would you advise to debug? Thanks 🙂

    1. Rahul Bansal Avatar

      Rahul Bansal

      October 14, 2013

      Check /var/log/mail.log and /var/log/mail.err files.

      If mails are “sent” but not received, it could be because of reverse-PTR issue.

  16. Mike Avatar

    Mike

    October 7, 2013

    Howdy, How do you install plugins and themes without a FTP?

    1. RavanH Avatar

      RavanH

      October 10, 2013

      Hi Mike, in the WordPress admin go to Plugins > Add new… Similarly for themes.

  17. JM Avatar

    JM

    October 15, 2013

    As of today, this guide will install PHP 5.5.4-1+debphp.org~precise+1 (cli) (built: Sep 27 2013 11:36:42).

    1. Rahul Bansal Avatar

      Rahul Bansal

      October 15, 2013

      Yep. I will update article.

      We always use latest PHP build and ppa:ondrej/php5 repo provides always latest build.

      1. JM Avatar

        JM

        October 15, 2013

        Thanks Rahul, I was going to mention APC, but looks like you’re way ahead of the game! Nice.

        However, I’m not sure if this was due to any change you recently made, but the 1st link on this page 404: External link to rtcamp.comhttp://rtcamp.com/wordpress-nginx/tutorials/single-site/wp-super-cache/

        1. Rahul Bansal Avatar

          Rahul Bansal

          October 15, 2013

          @JM

          Work on APC is halted from long time. Its better to use uptodate softwares.

          Thanks for bringing broken link to attention. Fixed it. 🙂

  18. brian Avatar

    brian

    October 24, 2013

    Rahul, what can we use instead of APC with W3TC? I used your W3TC config for one of my servers. If you have an alternate suggestion, could you put up a tutorial for it?

    Thx.

    1. Rahul Bansal Avatar

      Rahul Bansal

      October 24, 2013

      We are using memcache for object-cache (using W3TC) – External link to rtcamp.comhttp://rtcamp.com/tutorials/php/memcache/ and zend opcache for opcode caching – External link to rtcamp.comhttp://rtcamp.com/tutorials/php/zend-opcache/

      1. Martin Avatar

        Martin

        October 28, 2013

        Cool but Zend Opcache isn’t available within W3TC is it? Only memcache, right?

        So what method do you choose now for Page, Minify and Database if Object Cache is being used by Memcache?

        1. Rahul Bansal Avatar

          Rahul Bansal

          October 28, 2013

          Opcache works at PHP code level. W3TC is not supposed to have an option for that.

          It’s more like set and forget thing – External link to rtcamp.comhttp://rtcamp.com/tutorials/php/zend-opcache/

          For minify, we are using disk based cache as it removed PHP process overhead which would have needed to get data from memcache.

          For object and database cache, we are using memcache – External link to rtcamp.comhttp://rtcamp.com/tutorials/php/memcache/

  19. torrentshell jacket women's Avatar

    torrentshell jacket women’s

    November 9, 2013

    I have witnessed a solid sober man driven perfectly mad at the moment by two associated with so-called
    rum, supplied to him at one of these simple shanties.
    –LINK REMOVED –>Grammy Nominations 2011<. Neighbours were few in number, where there were only three other women living inside the neighbourhood – all lived in both bark huts or tents using their young children.

  20. Jarian Gibson Avatar

    Jarian Gibson

    January 30, 2014

    When is your easy engine going to be updated? Trying install and fails at Unable to Update Apt Cache.

  21. Jarian Gibson Avatar

    Jarian Gibson

    January 30, 2014

    Installing Python Software Properties, Please Wait…
    Reading package lists…
    Building dependency tree…
    Reading state information…
    python-software-properties is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.
    Adding Brianmercer Nginx Launchpad Repository, Please Wait…
    Adding Ondrej PHP5 Launchpad Repository, Please Wait…
    Updating APT Cache, Please Wait…
    [ Thu Jan 30 14:19:58 UTC 2014 ] Unable To Update APT Cache

  22. Jarian Gibson Avatar

    Jarian Gibson

    January 30, 2014

    External link to ppa.launchpad.nethttp://ppa.launchpad.net/brianmercer/nginx/ubuntu/dists/raring/main/binary-amd64/Packages does not exist

    External link to ppa.launchpad.nethttp://ppa.launchpad.net/brianmercer/nginx/ubuntu/dists/precise/main/binary-amd64/Packages does exist

  23. Jarian Gibson Avatar

    Jarian Gibson

    January 30, 2014

    I fixed it by changing brianmercer-nginx-raring.list raring main to precise main

    1. Rahul Bansal Avatar

      Rahul Bansal

      January 30, 2014

      I did not get it. Are you using manual install or EasyEngine?

  24. Youri van Dijk Avatar

    Youri van Dijk

    February 11, 2014

    Hey Rahul great tutorials! I have a small issue when installing the percona repository. Somehow the permission is denied for both echo’s.

    echo "deb http://repo.percona.com/apt `lsb_release -cs` main" >> /etc/apt/sources.list.d/percona.list

    -bash: /etc/apt/sources.list.d/percona.list: Permission denied

    I’m using an account with sudo priviledge, not root. What am I doing wrong? Thnx

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 14, 2014

      Try becoming root first. Check if sudo su gives you a root shell.

  25. Seynt Jim Avatar

    Seynt Jim

    February 17, 2014

    Hello,

    I’m new to VPS hosting. I always use shared hosting with my website. I followed all you instructions setting a wordpress website here
    External link to rtcamp.comhttps://rtcamp.com/tutorials/linux/ubuntu-php-mysql-nginx-postfix/
    External link to rtcamp.comhttps://rtcamp.com/wordpress-nginx/tutorials/

    It was working fine but I have one problem, My server eat lots of RAM. Here’s the screenshot:

    Last week I tried webuzo and installed LEMP stack on their panel. My ram consumes 120 – 190MB only.
    I’m so confuse now why my server eats a lot of RAM by following your tutorial.

    Can you please help me find what’s the problem?

    Here’s my VPS specs:
    Operating System Ubuntu 12.04 32-bit
    Memory 512 MB
    VSwap 512 MB
    CPU 1x 3.7GHz Core

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 17, 2014

      Run free -m command from command line to get correct usage. There is a chance that memory usage reported by that tool includes “buffers/cache” memory. OS will always try to use maximum memory and will try to buffers/cache as much content as possible.

      Also, if you are setting up a new system, it will be better to use External link to rtcamp.comhttp://rtcamp.com/easyengine . It automates everything!

  26. Seynt Jim Avatar

    Seynt Jim

    February 17, 2014

    I can’t be able to see the screenshot so I’m posting it here.

    459.05 MB of 512 MB Used / 52.95 MB Free

    External link to i.imgur.comhttp://i.imgur.com/mHrCchv.png

  27. Gogu Avatar

    Gogu

    February 17, 2014

    easyengine doesn’t install percona?

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 19, 2014

      Not for now. You can continue with mysql.

      We will be soon adding percona-support and at that time easyengine will have update script to make a switch.

      We use percona-mysql internally.

      When we started EasyEngine percona-mysql 5.6 GA release wasn’t available.

  28. Seynt Jim Avatar

    Seynt Jim

    February 18, 2014

    I found out what the problem was. It was the Percona-mysql that was eating a lot of RAM. Thanks!

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 19, 2014

      You can tweak Percona to use less RAM. Although for InnoDB database, it’s always recommended to provision RAM bigger than actual database size.

  29. deprito Avatar

    deprito

    February 21, 2014

    If i already have ee on my server.. Is ee running on percona?
    I want to try percona for my server..

    1. Rahul Bansal Avatar

      Rahul Bansal

      February 21, 2014

      ee do not have percona as of now. Percona will be added in future.

      1. deprito Avatar

        deprito

        February 21, 2014

        How to migrate mysql to percona? Any tutorial on rtcamp?
        Thanks!

        1. Rahul Bansal Avatar

          Rahul Bansal

          February 21, 2014

          I am really not able to recall but you can try this:
          0. stop mysql service mysql stop and backup eveyrthing.
          1. Follow this tutorial – External link to rtcamp.comhttps://rtcamp.com/tutorials/mysql/percona-toolkit/
          2. They apt-get install percona-server-server-5.6 or apt-get upgrade
          3. start mysql
          4. Run mysql -v. You may see:

          Server version: 5.6.13-rc60.5-log Percona Server (GPL), Release 60.5
          
  30. Seynt Jim Avatar

    Seynt Jim

    March 21, 2014

    Hi Rahul,

    After following this tutorial, I want to make an email like for example admin@rtcamp.com and access it through thunderbird. How do I do it? I have already installed postfix. Thanks!

    1. Rahul Bansal Avatar

      Rahul Bansal

      March 22, 2014

      You can setup mail server by following External link to rtcamp.comhttps://rtcamp.com/tutorials/mail/server/postfix-dovecot-ubuntu/

  31. Seynt Jim Avatar

    Seynt Jim

    March 22, 2014

    Also one more thing Sir. I want to use cloudflare on my website. Does ppa:nginx/stable includes httprealipmodule? Thanks.

    1. Rahul Bansal Avatar

      Rahul Bansal

      March 22, 2014

      Not sure. We use this nginx repo External link to launchpad.nethttps://launchpad.net/~brianmercer/+archive/nginx and it has realip module

      1. Seynt Jim Avatar

        Seynt Jim

        March 23, 2014

        Thank you. How d I check if the one I’m using includes httprealipmodule?

        Can I use this command?

        2>&1 nginx -V | tr — – ‘\n’ | grep _module

        1. Rahul Bansal Avatar

          Rahul Bansal

          March 24, 2014

          Run `nginx -V 2>&1 | grep http_realip_module -o`

          If you see `http_realip_module` in output, you have that module.

Features

Useful Links

Product

Other Products

Subscribe for curated product updates, tips, and announcements.

"*" indicates required fields

LinkedIn

This field is for validation purposes and should be left unchanged.

Email*

SIGN ME UP

Δ


© rtCamp, since 2009. All rights reserved.

Powered by