Announcement

Collapse
No announcement yet.

How to fix font installation permissions problem?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to fix font installation permissions problem?

    Im having trouble installing fonts and having them work correctly. Here is what Im doing:

    Code:
    # wget [URL]https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJK.ttc.zip[/URL]
    
    # sudo mkdir -p /usr/share/fonts/opentype/noto
    
    # sudo cp *otf *otc *ttc /usr/share/fonts/opentype/noto
    
    # sudo fc-cache -f -v # optional
    
    # chmod a+r /usr/share/fonts/opentype/*
    But the fonts are not displaying correctly on the websites on this server. Any idea what I may be doing wrong?

    I am using a phantomjs script that uses the font and if I run the phantomjs on shell it works fine and displays the fonts correctly, but via a browser it fails. So is there a permissions problem?

    I also tested this on a CentOS 7.x server and it worked fine, so Im thinking cloudlinux deals with user permissions differently?

  • #2
    I tested this again today on my CentOS 7 box to confirm and it works very easily, but somehow on CloudLinux a website within a user account doesn appear access to the fonts. Any other ideas why?

    Comment


    • #3
      Do you use CageFS on this CL server? Is /usr/share/fonts/opentype/ available inside CageFS? Maybe cagefsctl --force-update is needed?

      Comment

      Working...
      X