Monthly Archives: Červenec 2011

5 years, 10 months ago 0
Posted in: Programování

Run these commands:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-jdk
5 years, 10 months ago 0
Posted in: Programování

First, run

sudo a2enmod rewrite

You have to restart Apache now:

sudo /etc/init.d/apache2 restart

Then edit /etc/apache2/sites-available/default:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
# changed from None to FileInfo AllowOverride FileInfo Order allow,deny allow from all
</Directory>
5 years, 10 months ago 0
Posted in: Programování

If you suffer with following message when restarting Apache, the solution is following:

 * Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Then run

sudo nano /etc/apache2/httpd.conf

or any other preferred text editor and add the line:

ServerName localhost

After that you can run following command without warning.

sudo /etc/init.d/apache2 restart
5 years, 10 months ago 0
Posted in: Programování

In case phpmyadmin is not accesible after installation do the following:

sudo dpkg-reconfigure -plow phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

Source of this tip: http://www.howtoforge.com/ubuntu_lamp_for_newbies

5 years, 10 months ago 0
Posted in: Programování

I’ve run through several issues while trying to set Tomcat 6 running embedded in Eclipse on Ubuntu 11.04. This solution worked for me.

sudo apt-get install tomcat6 tomcat6-*
sudo ln -s /var/lib/tomcat6/conf /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo ln -s /var/log/tomcat6 /usr/share/tomcat6/log
sudo chmod -R 777 /usr/share/tomcat6/conf

After running this you are now able to embed Tomcat in Eclipse and use it as usually. Pffff.

5 years, 10 months ago 0
Posted in: Programování

When unloading a page with animated GIF, this image stops its animation in the moment of sending new redirect request. Luckily there is a workaround.

function refreshAnimatedImage() {
	var image = document.getElementById('animated-image-id');
        image.src = image.src;
}
window.onbeforeunload = function() {
	window.setTimeout(refreshAnimatedImage, 1);
}