CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf

With a DirectAdmin install on CentOS 6, you may encounter this error:

    CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf

In this specific case, it’s not a missing yum.conf, but rather a broken link to the newer curl library from python.

Until a decision is made whether or not to exclude curl from custombuild, the solution is the following:

  cd /usr/local/lib
mv libcurl.so.4.2.0 /root/libcurl.so.4.2.0.moved
ln -s /usr/lib/libcurl.so libcurl.so.4.2.0

cd /usr/local/directadmin/custombuild
./build update
./build set curl no

 

cd /root
mkdir curl
cd curl
mv /usr/local/lib/libcurl* .
mv /usr/local/include/curl .
ldconfig

[root@rambi ~]#  ldd /usr/local/bin/php | grep curl
      libcurl.so.4 => /usr/lib/libcurl.so.4 (0x005df000)

 yum install libcurl-devel

 

 

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.conf

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork me on GitHub