Percona is a performance optimised fork of MySQL that has gained a lot of traction in the Magento-sphere as webmasters and sysadmins alike look to squeeze the most performance out of their hardware.
If you read the Magento performance whitepaper then you will see they mention Percona DB there.
To install Percona on a standard CentOS release 6.2 (Final) server you would need to run the following commands:
First set up the repo:
rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
This should give you output like this:
Retrieving http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
Preparing... ########################################### [100%]
1:percona-release ########################################### [100%]
Then installing should be a simple case of running:
yum install Percona-Server-client-55 Percona-Server-server-55
However I found that this generated the following error:
Error: Percona-XtraDB-Cluster-client conflicts with Percona-Server-client-55
The problem is because MySQL is already installed and needs to be removed. You can do this with this command:
yum remove mysql*
At which point running the install should work smoothly.
I’ve recently had to upgrade a shop that lists products on amazon. They wanted to automatically add new products and keep their inventory up to date, so I set up a feed generating system and installed AMTU to send the data through to amazon.
After putting together a test run I saw that the Inventory Uploader was being sent to to the failed folder. The only clue about this was in the audit logs where it said
2011-08-03 16:02:20,062 INFO Could not recognize file amazon_amtu_price_quantity.txt - ignoring.
After a lot of looking around, it appears that AMTU require the top line on the feeds that starts TemplateType=… If this is missing the system flags the file as unknown, and refuses to send it. To make things worse, trying to get round this by using a different template type causes amazon to reject the file on their end.
To fix this I started to look online to find a solution. Everything that I could find referenced the 1.0.9 AMTU version that I was using, and it was only by accident that I discovered that Amazon had quietly released an update to the program earlier this year. This new, AMTU 2.0, accepts all of the new file types, offers more intergration with the fulfilment by amazon service and is simple to install.
So others don’t have to spend as much time as I did, this is what you need to do to install it.
Stop and uninstall your previous version of AMTU. To do this you need to ensure that the JAVA_HOME variable is set in bash. To check this type
echo $JAVA_HOME
If something is displayed, then the variable is set, if not then you will need to set it. Find where your java home directory is, mine was in /usr/java/latest/, if yours is not there type the following
find / -name java 2/dev/null
This will give you a list of directories, you’re looking for one that a /bin folder inside it.
Now that you have the directory, you need to set the variable. The best way is to edit /root/.bash_profile and add in the following line
export JAVA_HOME="/path/to/dir/"
However this require you to log out, or restart the server. If this isn’t possible, type the same line on the command line and it will set the variable for the rest of the session.
Once everything is set up, go to your AMTU folder, /opt/amtu/ in my case, and run the uninstall.sh script. This will remove amtu, but leave the files you’ve already generated.
Next download the appropriate version from this page, or if setting up on a server use the following code
wget https://d28hcfptedr5ia.cloudfront.net/install/AMTU_unix.sh
make sure the file is executable and then run it. Fill in the information that is asked for and you’re good to go. When you set it up, you’ll be asked for your MWS details. If you are running the installation on a desktop, then it will provide you with a link that you can click and register. Once you have set everything up, you can export your settings, by running the following command
/path/to/amtu/Utilities/configure EXPORT /tmp/config.xml
you can then move the config file onto the server and run import the file, using SETUP instead of EXPORT.
Once all of this is done, your system is ready to go. I hope this will save someone some time
Easy peasy:
#!/bin/bash
wget http://wordpress.org/latest.zip
unzip latest.zip
cp -rf ./wordpress/* ./
handy little bash script to install word press
To install Git on a Centos server you need to install something called EPEL first.
This is an extra repository of apps which you need to have accessible in order to install Git.
I tried other tutorials on the net that were quite extensive but didn’t work. In the end its just two commands:
1. Install EPEL:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F
2. Install Git + Git Daemon
yum install git git-daemon
For me to get it to work, I had to manually change the epel.repo file because I had created a non functional one previously. I got the warning:
warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew
So I just did the following:
cd /etc/yum.repos.d/
mv epel.repo epel.repo.old
mv epel.repo.rpmnew epel.repo