Critical fixes

Fixes: - wrong path, wrong mysql listen port for sphinx (404 errors), 
- memory allocation problems for sphinx (allowing