1.错误:
$ sudo /etc/init.d/apache2 restart
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/mod-security_back.load: Cannot load /usr/lib/libxml2.so.2 into server: /usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
2.解决:
2.1.运行:
find /usr/ -name libxml2.so.2
我的结果是:
/usr/lib/i386-linux-gnu/libxml2.so.2
ln -sf /usr/lib/i386-linux-gnu/libxml2.so.2 /usr/lib/libxml2.so.2
再启动apache2就ok了。