When you see Segmentation Fault in different random places it could be caused by bad/broken libz* and libxml2.
It usually happens on DirectAdmin server, when libraries are placed into /usr/local/lib/ directory.
To fix:
mkdir /usr/local/lib_back mv /usr/local/lib/libz* /usr/local/lib_back mv /usr/local/lib/libxml2.* /usr/local/lib_back