Profile cover photo
Profile photo
Gayan Tharaka
3,425 followers
3,425 followers
About
Gayan's posts

Post has attachment
Labeling files for writing with SELinux (fopen failed to write file)
Warning : fopen(newfile.txt): failed to open stream: Permission denied in  /var/www/public_html/test.php  on line  2 Unable to open file! fopen gives above  error while opening stream for following code <?php
$myfile = fopen("newfile2.txt", "w") or die("Una...

Post has attachment
How to Change keyboard Language in CentOS 7 (Keymap)
check current keyboard map information use following command recently i installed CentOS 7 and accidentally installed en_gb by default loadkeys us localectl status # to display locale settings localectl set-locale LANG=en_GB.utf8 # to set the Language local...

Post has attachment
empty a file in linux
use following command to empty file named sample.txt #truncate -s 0 sample.txt

Post has attachment
Install mod_security in Centos 7
In Fedora Core, CentOS, and Red Hat Enterprise Linux you just need to run following # yum install mod_security when installation complete we can see mod_security.conf file in apache folder # ls -l /etc/httpd/conf.d include this line to httpd.conf file LoadM...

Post has attachment
Install LAMP stack on CentOS 7
first need to install epel-release repo on centos 7
just run following command to install epel yum install epel* after that we can start install LAMP stack on CentOS7 LAMP stand for followings L - Linux (CentOS) A - Apache(httpd) M - Mysql(mysqld) P - PHP n...

Post has attachment
Linux Networking on terminal and Back with CentOS 7
recently i installed centos 7 and happy to say back to play with linux. so as first step after installation was the configure network.

first need to check what are the available interfaces in current system. to check that we can use ifconfing -a command [...

Post has attachment

Post has attachment
Browser එකේ save කරපු password එකක password field එකට තරු වැටුනම Safe කියල හිතනවද?
අද කියන්න යන්නේ පොඩි Security සීන් එකක් ගැන. කට්ටිය ලේසියට Browser එකේ පාස්වර්ඩ් සේව් කරන් ඉන්නවනේ. මේ ක්‍රමේ ටිකක් අනතුරුදායකයි. මුලින් කියන්නම් මේ තරු විදියට තියෙන පාස්වර්ඩ් බලන්න විදියක්. ඕන නං javascript එකකින් බලන්න පුලුවන්. මං නං කියන්නෙ ඒකත් ඕන නෑ. c...

Post has attachment

Post has attachment
Wait while more posts are being loaded