Difficulty with installing the W3 Total Cache compressor YUI

Asked

Viewed 591 times

0

I recently installed the plugin W3 Total Cache, but I’m having trouble installing Java. See screenshot:

SS

I’ve been reading on foreign forums that you need to install the archive YUI compressor on the server, but I’m having trouble figuring out which folder to put, so it won’t fail.

  • 1

    Can you give more details about which server you are using? seems to me a pertinent detail to this question

1 answer

1

If you are a Ubuntu server you could use apt-get itself to do the installation

Ubuntu:

  sudo apt-get install yui-compressor

In another reference I found, the jar file was copied to the folder /usr/share/yui-compressor

  wget http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.6.zip

  unzip yuicompressor-2.4.6.zip

  mv yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar /usr/share/yui-compressor/yui-compressor.jar

Then the file was created yui-compressor in /usr/bin/, creating an environment variable to run your file . jar

#!/bin/sh
YUI_JAR=/usr/share/yui-compressor/yui-compressor.jar
java -jar $YUI_JAR "$*"

There are also several warnings to check your installed java version.

  • Hello dear William, I will do the proper tests and return what I got. Thank you for your help.

  • Dear Guilherme, I’m using the Yuicompressor in the plugin W3 total cache and by the little knowledge about the platform,I didn’t find anything so if you have how to give me a help on how to use chmod to install the Yuicompressor in W3 thank you, in case you don’t know I appreciate your time and consideration.. Your answer has already been worth the Day :) Thanks dear friend...

  • I couldn’t understand that last comment... chmod I know is a command to set permissions for a certain folder in the linux/Unix environment sudo chmod -R 775 minha_pasta/ give you full written permission, for example...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.