Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
i got this error message: “PHP Fatal error: Class ‘Memcache’ not found in /home/tommy/www/memtest.php on line 2”
i don’t think i missed anything…
sorry i missed the following step: “sudo apt-get install mysql-server php5-mysql php5 php5-memcache”
problem solved… :) thanks for this awesome tutorial…
If you want to speed up PHP connections to MySQL you would need to turn on persistent connections. If persistent connections are enabled when a script finishes executing it doesn’t close the MySQL connection, this allows the next time that the script is called with the same credentials to use an already open connection. This improves script response times as the script no longer has the overhead of opening and then closing the MySQL connection.
Memcache will cache queries so that if a script calls the same query repeatedly after the first time it is called and goes through MySQL to pull the data it will be cached in memcache. Then the next hit to that script will get that information from memcache without needing to run the query, again significantly improving performance.
This article lays out how to install and use memcache so if you follow the simple guide on how to run your queries using memcache then you will be caching them with memcache before the query hits the DB.
Hi Guys, This method worked for me - this was a really helpful tutorial. Thanks a lot =) Well, i had to Restart the PHP-FPM after the set-up; until then the page was showing “Page temporarily not available.”
sudo /etc/init.d/php5-fpm restart
Just thought of adding this info. Thanks again.
Sorry, but
sudo echo “extension=memcache.so” > sudo /etc/php5/conf.d/memcache.ini
just creates a file sudo in the current directory. The command should read
sudo echo “extension=memcache.so” > /etc/php5/conf.d/memcache.ini