이 글은 다음 버전에 해당되는 내용이다.

phpldapadmin 1.1.0.4
php 5.1.6


 phpldapadmin을 설치해서 config.php 파일을 적절히 수정한 후 접속해 보면,

Your php memory limit is low - currently

 위와 같은 형태의 메세지가 나올 수 있다.

 이 부분이 제대로 작동했다면 "currently 5M" 와 같은 식으로 현재 제한이 걸려 있는 메모리 크기가 나와야 하는데, 아예 아무 것도 나오지 않는 경우이다.

 이것은 추측하기로 Zend Memory Manager가 설치되어 메모리 관리를 해주는 모듈이 따로 존재해서 php.ini의 memory_limit 로 설정된 값을 사용할 수 없게 되어 발생하는 문제점으로 보인다.

 해결하는 방법은 간단하다. memory_limit 값을 체크하는 부분을 주석처리 해버리는 것이다.

 phpldapadmin의 lib/functions.php 파일의 약 342라인을 보면 아래와 같이 되어 있는데,

        # Check the memory limit parameter.
      if (ini_get('memory_limit') < $config->GetValue('session','memorylimit'))
                system_message(array(
                        'title'=>_('Memory Limit low.'),
                        'body'=> sprintf('Your php memory limit is low - currently %s',ini_get('memory_limit'),false),
                        'type'=>'error'));
 이 부분을 아래와 같이 주석처리 한다.

        # Check the memory limit parameter.
/*      if (ini_get('memory_limit') < $config->GetValue('session','memorylimit'))
                system_message(array(
                        'title'=>_('Memory Limit low.'),
                        'body'=> sprintf('Your php memory limit is low - currently %s',ini_get('memory_limit'),false),
                        'type'=>'error'));
*/
 이렇게 해 주면 위에서 본 에러 메세지 없이 잘 동작한다.
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 이린

2008/01/19 17:17 2008/01/19 17:17
,
Response
No Trackback , No Comment
RSS :
http://eerien.com/blog/rss/response/144


블로그 이미지

기괴한황혼.

- 이린

Notices

  1. 이린.

Archives

Authors

  1. 이린

Calendar

«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
414792
Today:
11
Yesterday:
10