Category Archive for "Unix OS"

How to ensure your WordPress site’s security?

What is Security? Fundamentally, security is not about perfectly secure systems. Such a thing might well be impractical, or impossible to find and/or maintain. A secure server protects the privacy, integrity, and availability of the resources under the server administrator’s control. Your website can never be 100% secure. Hackers are always trying new things and discovering new vulnerabilities to exploit. The online world changes quickly and the same is true of security. Good security is about minimizing risk. If anybody…

Read More

How you can add Cron Job at Cpanel?

Execute Cron Job in Cpanel using PHP script. In cpanel the following will also work: Execute code every minute(Server Time) using following code: * * * * * php -q /home/serverpath/file.php Execute code every five minute(Server Time) using following code: */5 * * * * php -q /home/serverpath/file.php Execute code twice an hour(Server Time) using following code: 0,30 * * * * php -q /home/serverpath/file.php Execute code once an hour(Server Time) using following code: 0 * * * * php…

Read More

301 redirect with htaccess

How to redirect web based page with .htaccess Following are the code to paste (be careful to write on .htaccess it can be messed up whole website if anything goes wrong) into .htaccess file 301 redirection for any domain : RewriteEngine On RewriteCond %{HTTP_HOST} !^www.olddomain.com RewriteRule ^(.*)$ http://www.newdomain.com [R=301,L] newdomainRewriteRule ^$ http://www.newdomain.com [R=301,L] RewriteRule ^index.htm$ http://www.newdomain.com [R=301,L] RewriteRule ^index.php$ http://www.newdomain.com [R=301,L] RewriteRule ^index.html$ http://www.newdomain.com [R=301,L] RewriteRule ^index.shtml$ http://www.newdomain.com [R=301,L] RewriteRule ^index.asp$ http://www.newdomain.com [R=301,L] RewriteRule ^default.asp$ http://www.newdomain.com [R=301,L] RewriteRule ^index.aspx$ http://www.newdomain.com…

Read More

Increase your website speed through .htaccess in LAMP Technology

How to increase my website speed through .htaccess in LAMP Technology Many LAMP(Linux Apache MySQL PHP) driven websites today could easily decrease their bandwidth output and increase their speed through implementing caching and compressing their content. Even with the new high speed connections of today it is still highly important to improve websites efficiency and performance to increase the users experiences. This article goes over will decrease your bandwidth output. Lets get to increasing the performance efficiency of your website…

Read More

How to enable .htacces in localhost?

Enable htacces localhost – How to Enable htaccess in xampp (localhost)? Just go the Terminal and follow the following steps I enabled mod re-write by typing below command and restart the apache server. sudo a2enmod rewrite Now restart your apache2 by typing below command. sudo /etc/init.d/apache2 restart How to enable .htaccess in windows Using a text editor, open the httpd.conf file. In XAMPP, this file is found in the apacheconf directory Locate the following line of code: #LoadModule rewrite_module modules/mod_rewrite.so…

Read More

Install Apache Web Server on Ubuntu 9.10

This step-by-step howto shows a basic setup for Apache 2 web server. Apache is installed on Ubuntu 6.06 LTS Dapper, but instructions will probably work on any Ubuntu. This document is a work in progress, initially only required commands are listed without trough-out explanations. Install Apache $ sudo apt-get install apache2 Test it Surf to your own server on your own local computer: $ firefox “http://localhost” Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation…

Read More

Install MySQL Server 5 on Ubuntu 9.10

Installing MySQL 5 Server on Ubuntu is a quick and easy process. It almost feels like it should be more difficult. Open a terminal window, and use the following command: sudo apt-get install mysql-server If you are running PHP you will also need to install the php module for mysql 5: sudo apt-get install php5-mysql To create a new database, use the mysqladmin command: mysqladmin create Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation…

Read More

Install Google Chrome In Ubuntu

How to install google chrome using wine .Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. The Chromium codebase is the basis for Google’s Chrome browser. First you can use this tutorial to install chromium in Ubuntu using PPAs and after that you can try any one of the following methods. First you need to download .deb package from here using the following command…

Read More

Recursive Permission Changes

To change the permissions of multiple files and directories with one command. Please note the warning in the chmod with sudo section and the Warning with Recursive chmod section. Recursive chmod with -R and sudo To change all the permissions of each file and folder under a specified directory at once, use sudo chmod with -R user@host:/home/user$ sudo chmod 777 -R /path/to/someDirectory Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client server and implementation using PHP, XML, MySQL…

Read More

PHPMyAdmin: Wrong permission on config file (Ubuntu)

When I was trying to access my phpmyadmin in Ubuntu OS,I have encountered a problem: Wrong permissions on configuration file, should not be world writable! I was  thinking of some access control error.  I have searched the web and found article containing this error. There are lot of link available there but after get lot of R&D on commands available on Ubuntu, I thaught problem with the access permission with the file config.inc.php is available in phpmyadmin to set the…

Read More