<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PHP Sessions with Redis Cluster (using AWS Elasticache)	</title>
	<atom:link href="https://www.brandonchecketts.com/archives/php-sessions-with-redis-cluster-using-aws-elasticache/feed" rel="self" type="application/rss+xml" />
	<link>https://www.brandonchecketts.com/archives/php-sessions-with-redis-cluster-using-aws-elasticache</link>
	<description>Web Programming, Linux System Administation, and Entrepreneurship in Athens Georgia</description>
	<lastBuildDate>Sat, 24 Nov 2018 03:13:02 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		By: Dan		</title>
		<link>https://www.brandonchecketts.com/archives/php-sessions-with-redis-cluster-using-aws-elasticache/comment-page-1#comment-76314</link>

		<dc:creator><![CDATA[Dan]]></dc:creator>
		<pubDate>Sat, 24 Nov 2018 03:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonchecketts.com/?p=660#comment-76314</guid>

					<description><![CDATA[Appreciate the how-to, however, it was not as straight forward as I would have preferred. A reason could be changes on AWS as well.

What I did (and what worked for me):
Instead of creating the 30-redis-sessions.ini in the folder (bad practise), load it via the autoload. Also, the seed command did not work for me. I had to change it to tcp.

	1. Update redis.ini
	sudo nano /etc/php/7.0/mods-available/redis.ini

	    extension=redis.so	
	    session.save_handler = redis
	    session.save_path = &quot;tcp://mvXXXXXXXXXXXX1.cache.amazonaws.com:6379&quot;
	    session.gc_maxlifetime = 1296000

	2. Enable plugin
	sudo ln -s /etc/php/7.0/mods-available/redis.ini /etc/php/7.0/apache2/conf.d/30-redis.ini
	sudo ln -s /etc/php/7.0/mods-available/redis.ini /etc/php/7.0/cli/conf.d/30-redis.ini
	
Apache restart]]></description>
			<content:encoded><![CDATA[<p>Appreciate the how-to, however, it was not as straight forward as I would have preferred. A reason could be changes on AWS as well.</p>
<p>What I did (and what worked for me):<br />
Instead of creating the 30-redis-sessions.ini in the folder (bad practise), load it via the autoload. Also, the seed command did not work for me. I had to change it to tcp.</p>
<p>	1. Update redis.ini<br />
	sudo nano /etc/php/7.0/mods-available/redis.ini</p>
<p>	    extension=redis.so<br />
	    session.save_handler = redis<br />
	    session.save_path = &#8220;tcp://mvXXXXXXXXXXXX1.cache.amazonaws.com:6379&#8221;<br />
	    session.gc_maxlifetime = 1296000</p>
<p>	2. Enable plugin<br />
	sudo ln -s /etc/php/7.0/mods-available/redis.ini /etc/php/7.0/apache2/conf.d/30-redis.ini<br />
	sudo ln -s /etc/php/7.0/mods-available/redis.ini /etc/php/7.0/cli/conf.d/30-redis.ini</p>
<p>Apache restart</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan		</title>
		<link>https://www.brandonchecketts.com/archives/php-sessions-with-redis-cluster-using-aws-elasticache/comment-page-1#comment-76288</link>

		<dc:creator><![CDATA[Jonathan]]></dc:creator>
		<pubDate>Thu, 22 Nov 2018 11:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonchecketts.com/?p=660#comment-76288</guid>

					<description><![CDATA[Thank you. Is there a way to use the read replicas for read requests?]]></description>
			<content:encoded><![CDATA[<p>Thank you. Is there a way to use the read replicas for read requests?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
