Hi,
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 127.0.0.1 -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.