PHP error log file Warning: PHP Startup: Unable to load dynamic library ...

As my source compiler environment through the installation, configuration information and the installation of other extensions do not install or set up;
php.err file has been these tips, while not affecting the service starts, but looked tired heart ah, decided to destroy them.

Problem Description:

The reason:

The above error map file There are two types of error, a .dll a .so; I'm using centos7, so the problem .dll files only need to use php.ini configuration profiles; comment out the line;
.so I have this file installed mcrypt extension, see the next path error does not mcrypt.so this file.

     1. cd /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303 ;
     2.  ls 

solution:

method one:

Find the file where to run find / -name mcrypt.so
to create a soft link to find the path just after the error.

So sad, the way I failed, or the error in the error.

Method Two:

I reported here is mcrypt problem if other .so file, if the extension does not need to comment out directly in the php.ini file; if necessary, the folder name into the corresponding error file name;
first, make sure you install the appropriate extension;
secondly, here need to phpize, also you need to install Oh phpize

First enter ext php files in the installation directory folder to see is not there mcrypt folder, if present:

     1. cd mcrypt ;
     2. /usr/local/php/bin/phpize ;
     3. ./configure --with-php-config=/usr/local/php/bin/php-config ;
     4.  make && make install

The results obtained below can be friends ~ ~ ~

PHP and it is then re-open service NGINX

Guess you like

Origin www.cnblogs.com/xinxinmifan/p/php_error_question.html