Ubuntu: OpenJDK 8 – Unable to locate package

UPDATE: installation without root privileges below I advise you to not install packages manually on ubuntu system if there is already a (semi-official) repository able to solve your problem. Further, use Oracle JDK for development, just to avoid (very sporadic) compatibility issues (i’ve tried many years ago, it’s surely better now). Add the webupd8 repo to your … Read more

How to restart remote MySQL server running on Ubuntu linux?

SSH into the machine. Using the proper credentials and ip address, ssh [email protected]. This should provide you with shell access to the Ubuntu server. Restart the mySQL service. sudo service mysql restart should do the job. If your mySQL service is named something else like mysqld you may have to change the command accordingly or try this: sudo /etc/init.d/mysql restart

localhost/phpinfo.php

I had a similar problem but the reason was because I had just restored my files into www from a Windows NTFS backup drive. Naturally, with NTFS we don’t have the same permissions of Ubuntu or any other Linux system. Looking at the folders using nautilus showed incorrect owners and permissions. How I fixed it… … Read more

“sed” command in bash

sed is the Stream EDitor. It can do a whole pile of really cool things, but the most common is text replacement. The s,%,$,g part of the command line is the sed command to execute. The s stands for substitute, the , characters are delimiters (other characters can be used; /, : and @ are popular). The % is the pattern to match (here a literal percent sign) and the $ is the second pattern … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)