Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED man whatis missing

Discussion in 'General Discussion' started by rhm.geerts, Dec 8, 2017.

  1. rhm.geerts

    rhm.geerts Well-Known Member

    Joined:
    Jul 29, 2008
    Messages:
    91
    Likes Received:
    6
    Trophy Points:
    58
    Location:
    Maastricht
    cPanel Access Level:
    Root Administrator
    Hello.

    I installed newly a Centos 6 minimal server.
    Then did a fresh cpanel installation.

    Now this error occurs:
    Code:
    /etc/cron.daily/makewhatis.cron:
    
    cp: cannot create regular file `/var/cache/man/whatis': No such file or directory
    /usr/sbin/makewhatis: line 446: /var/cache/man/whatis: No such file or directory
    chmod: cannot access `/var/cache/man/whatis': No such file or directory
    The file /usr/sbin/makewhatis exists but the directory /var/cache/man does not exist, neither does any "whatis" file.
    The command "man whatis" and "man makewhatis" does work.

    On our other Cpanel server with Centos 5, there is a /var/cache/man directory with lots of content.

    How can we fix this?
     
  2. rhm.geerts

    rhm.geerts Well-Known Member

    Joined:
    Jul 29, 2008
    Messages:
    91
    Likes Received:
    6
    Trophy Points:
    58
    Location:
    Maastricht
    cPanel Access Level:
    Root Administrator
    Addition: Created a /var/cache/man directory manually and did a yum reinstall man and yum reinstall man pages.
    Got content in there now, but still no "whatis" file.
     
  3. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    618
    Likes Received:
    192
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Try running /usr/sbin/makewhatis as root and see if it builds your /var/cache/man/whatis file (can take several minutes to complete)
     
    rhm.geerts likes this.
  4. rhm.geerts

    rhm.geerts Well-Known Member

    Joined:
    Jul 29, 2008
    Messages:
    91
    Likes Received:
    6
    Trophy Points:
    58
    Location:
    Maastricht
    cPanel Access Level:
    Root Administrator
    Tried running the cron again which only made a 0 byte whatis file.

    Your solution worked, the whatis file is present and filled now, thank you!
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see the earlier response helped. I've marked this thread as solved.

    Thank you.
     
Loading...

Share This Page