Skip to main content

php 경로별 모듈 인식 오류

  1. php경로에 따라서 모듈을 못읽는 경우
    [root@localhost ~]# php -m
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20060613//usr/local/php/lib/' - /usr/local/php/lib/php/extensions/no-debug-zts-20060613//usr/local/php/lib/ cannot open shared object file: No such file or directory in Unknown on line 0
    [PHP Modules]

  2. 해결방안
    $> vi /usr/local/php/lib/php.ini
    ;extension_dir = "./"
    extension_dir = "/usr/local/php/lib/php/extensions/no-debug-zts-20060613/" --> extension실제 경로 로 변경하면 됨.