Category : 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
This entry was posted on Sobota, Červenec 23rd, 2011 at 16.42
You can follow any responses to this entry through the RSS 2.0 feed.
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>
This entry was posted on Neděle, Červenec 10th, 2011 at 16.00
You can follow any responses to this entry through the RSS 2.0 feed.
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
sudo nano /etc/apache2/httpd.conf
and add the line
ServerName localhost
After that you can do following without warning.
sudo /etc/init.d/apache2 restart
This entry was posted on Sobota, Červenec 9th, 2011 at 20.00
You can follow any responses to this entry through the RSS 2.0 feed.
In case phpmyadmin cannot be 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
http://www.howtoforge.com/ubuntu_lamp_for_newbies
This entry was posted on Sobota, Červenec 9th, 2011 at 19.42
You can follow any responses to this entry through the RSS 2.0 feed.
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.
Tags: eclipse, java, linux, tomcat
This entry was posted on Středa, Červenec 6th, 2011 at 19.58
You can follow any responses to this entry through the RSS 2.0 feed.
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);
}
Tags: GIF, IE, JavaScript, onbeforeunload
This entry was posted on Pondělí, Červenec 4th, 2011 at 13.56
You can follow any responses to this entry through the RSS 2.0 feed.