I installed Inotify for php using the command pecl install inotify and I added this statement extension=inotify.so in php.ini file. When I run a php file with $fd = inotify_init(); ,it is showing server error "The website encountered an error while retrieving" and if I remove the inotify_init() statement is fine. Can any tell me where is wrong.
If the installation was ok, restarting the server should probably solve it. On Apache:
sudo service apache2 restart