- OpenX Community Forums

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Enabling Memcached Requires Manual Conf Edit
WM Innovations
post Feb 25 2011, 03:21 PM
Post #1


Beginner
*

Group: Members
Posts: 3
Joined: 25-February 11
Member No.: 162,181



server specs: CentOS5 64-bit, Apache 2.2.17, PHP 5.2.17, MySQL 5.1
OpenX: 2.8.7
memcached runtime command: /usr/local/memcached/bin/memcached -u nobody -d -m 256 -c 4096 -l 127.0.0.1

After installing memcached, the PECL memcache module, adding it to php.ini and starting memcached, I tried to enable the memcached cache system in the banner delivery options, but it kept failing with (rough description, can't recall the exact error):

"An error has occured with enabling memcached:" and then no resulting error message.
The debug.log shows upon saving the memcached setting:
Feb 25 15:45:20 +0100 OX-4d67c08018284 [ warning] Invalid argument supplied for foreach()

Took a lot of trying, but in the end it turned out I manually had to add the server to the ./var/mysite.conf.php

The standard is:
CODE
[oxMemcached]
memcachedServers=
memcachedExpireTime=


I had to change this to:
CODE
[oxMemcached]
memcachedServers="127.0.0.1:11211"
memcachedExpireTime=


And then it works..

I suppose the OpenX interface needs a 'Server' and 'Port' in the memcached settings part ?
Go to the top of the page
 
+Quote Post
brian.technews
post Mar 9 2012, 10:30 AM
Post #2


Beginner
*

Group: Members
Posts: 2
Joined: 24-February 12
Member No.: 171,682



Figured out where to configure the plugin. But: the plugin is supposed to emit "strEmptyServerList"; which it didn't. It _did_ emit the string about php requiring memcache module... maybe has something to do with <a href=%s> in the .po file?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Locations of visitors to this page