Openbasedir

Discussion in 'Installation/Configuration' started by francoisPE, Feb 21, 2022.

  1. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Hello,

    I want to use YIUcompressor.
    So, I need to open java to my wordpress website.
    My idea was to create a symlink
    ln -s /var/www/mysite.fr/private/javabin /pathtojavabin/
    But, it doesn't work !
    I try include /pathtojavabin in open_basedir. It works...
    Is there a way to avoid modify open_basedir with symlink or something else ?
    Many thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this an ISPConfig server? As you posted in the forum for non-ispconfig installations.
     
  3. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Yes, my mistake. This is ISPC.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take care that /var/www/mysite.fr/private/javabin is owned by the website user and not root or any other user. And the open_basedir of a website can be configured don the options tab of the site, there you can see if the private folder is listed in open_basedir or not.
     
  5. francoisPE

    francoisPE Active Member HowtoForge Supporter

    /private is in open_basedir
    I check right : root root drwxr_xr_x java
    For me, open_basedir modification is more difficult to track...
    With a symlink I can do, for example: `find -name javabin`
     
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    First, I have no idea what YIUcompressor is, so this may be obvious to others, but how is it this is run? open_basedir is a php setting, it has nothing to do with a java app (unless maybe you have a php script with is making calls to java cli in the background or similar).
     
  7. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Yes, that's what W3 Total Cache is doing !

    For YUI Compressor, let look at http://yui.github.io/yuicompressor/
    It is a very powerfull tool for optim

    Finally, I kept open_basedir... even if more complex to maintain !
     

Share This Page