안녕하세요.
제가 서버 이전을 하는데 이전 서버에는 memcached를 쓰고 있었는데 새 서버에 설치하는 과정에서 memcached 설치하려고 했으나 잘 안되더라구요. 그래서 memcached를 사용하지 않고 사이트를 복구해볼려고 하는데요.
백업 파일을 복구하니 아래와 같은 에러메시지가 뜨는데 해결 방법이 좀 없을까요?
Fatal error: Uncaught Error: Class 'Memcache' not found in /home/경로/www/classes/cache/CacheMemcache.class.php:43 Stack trace: #0 /home/경로/www/classes/cache/CacheMemcache.class.php(27): CacheMemcache->CacheMemcache('memcache://loca...') #1 /home/경로/www/classes/cache/CacheHandler.class.php(106): CacheMemcache::getInstance('memcache://loca...') #2 /home/경로/www/classes/cache/CacheHandler.class.php(36): CacheHandler->CacheHandler('object', Object(stdClass), true) #3 /home/경로/www/modules/module/module.model.php(117): CacheHandler::getInstance('object', NULL, true) #4 /home/경로/www/classes/context/Context.class.php(261): moduleModel->getDefaultMid() #5 /home/경로/www/index.php(46): Context->init() #6 {main} thrown in /home/경로/www/classes/cache/CacheMemcache.class.php on line 43
서버환경은
centos7
nginx 1.10.2
php-fpm 7.0.13
mariaDB
입니다.
home/경로/www/files/config/db.config.php 파일에서 memcache 이라고 검색해보면 1줄 혹은 2줄으로 memcache 관련 설정코드가 있을 것 같습니다.
그줄을 삭제 해주시면 됩니다.
'use_object_cache' => 'memcache://localhost:11211',
'use_template_cache' => 'memcache://localhost:11211',
아마 이런형태로 적용되어있을것 같습니다. 이걸 삭제 하시면 될것 같네요.