hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : start-stop-daemon procedure for memcached?

Forum Jump

start-stop-daemon procedure for memcached?

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 08-07-2006, 12:58 AM
Teckinno Teckinno is offline
Junior Guru Wannabe
Join Date: Jul 2006
Posts: 73

start-stop-daemon procedure for memcached?


I'm on a shared host. So far I installed fine PHP with APC and memcache.
I can start the daemon from shell and execute commands from web pages with no problems.

However, I'm concerned with one aspect of the shared hosts.
I manually started the daemon:
memcached -d -m 64 -l -p 11211

I'm sure it will come soon the day when the Apache server will be restarted and my process will be gone, breaking my site (memcached functions are used in pages).

I'm not sure in what file I need to insert the start command for memcached... .bashrc or .bash_profile one?
I was thinking also to run a cronjob every 5min with start-stop-daemon... but that's really not efficient, IMO.

What I want to do is this:
When Apache restarts, the memcached command is issued automatically, while read from a file, etc.
Please keep in mind that I'm on a shared account, I cannot create a user to execute this command or play with any rc.local files.
I only have access to .bashrc or .bash_profile files, related to unix commands.

If you have questions about the actual config, please ask.
Thank you for your help.

Reply With Quote

Sponsored Links
Old 08-07-2006, 01:17 AM
foobic foobic is offline
Community Liaison 2.0
Join Date: Feb 2005
Location: Australia
Posts: 5,719
I can't imagine any shared host will allow you to run your own copy of memcached. What you need is a VPS.


"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Reply With Quote
Old 08-07-2006, 07:36 AM
eth00 eth00 is offline
Web Hosting Master
Join Date: Apr 2003
Location: NC
Posts: 2,951
Aside from the point of your shared host may not want you to be doing this you could write a crontab script that checks if it is running and if not go and and start it.

MS Information Security and Assurance - Managed VPS and Dedicated Servers with VIP Service - Server Admin Info

Reply With Quote
Sponsored Links
Old 08-07-2006, 10:57 AM
Teckinno Teckinno is offline
Junior Guru Wannabe
Join Date: Jul 2006
Posts: 73
Thank you the information posted.
I can run cron jobs on my host, could you guys give me a script example?

Reply With Quote
Old 08-07-2006, 01:23 PM
TheVoice TheVoice is offline
Web Hosting Master
Join Date: Oct 2002
Posts: 702
Apache being restarted has nothing to do with Memcached. Its a seperate process. Your host my have a problem with you running it since its a long running process so you may want to check with them first.

The World's first server mating experiment
We give new meaning to I/O intensive and hot swap

Reply With Quote
Old 08-07-2006, 05:04 PM
Teckinno Teckinno is offline
Junior Guru Wannabe
Join Date: Jul 2006
Posts: 73
Thank you for the process tip, TheVoice. I wanted to make sure the memcached process is not killed if Apache is restarted.
About the host, I will follow your advice and will contact them, again.
It's been one week I run memcached daemon at 64MB only.

I know for sure they allow me to run APC 3.1.10 (set at 64MB also) because I showed them how you can enable it on their shared host.
I searched like crazy on Google until I found all answers to install APC and memcached daemon in a shared environment.

That's how I found this website...

Reply With Quote

Related posts from
Title Type Date Posted
UK2 Partners with Start-Up Loans to Offer Free Hosting to New Businesses Web Hosting News 2014-03-14 16:00:21
GigeNET Goes Down After Smoke Detected in Data Center Web Hosting News 2013-10-10 09:58:59
PHP And MySQL Scaling: Preparing A Startup For Growth Blog 2014-04-24 13:27:35
Web Host Ubiquity Servers Solutions Launches Year-long Server Giveaway for Online Start-ups Web Hosting News 2013-01-08 15:46:00
Web Hosting Jobs - New Hiring Methods for the New Year Blog 2012-12-13 12:08:55

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?