How to remove index.php from codeigniter in UBUNTU?

This tutorial will show you that how to remove index.php from codeigniter in UBUNTU or how to enable url rewriting. Step 1 : Add this in htaccess file <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule> Step 2 : Remove index.php in codeigniter config $config[‘index_page’] = ”; Step 3 […]

Angular.js How to remove hash from url?

Configuration: $locationProvider .html5Mode(true); .htaccess file in root directory: RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ – [L] # If the requested resource doesn’t exist, use index.html RewriteRule ^ /index.html In this mode you can use links […]

How to Change Bootstrap Carousel Slide Speed

The speed cannot be controlled by the API. Though you can modify CSS that is in charge of that. find in the bootstrap.css file: .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } and change 0.6s to the time […]

How to lock screen orientation to portrait or landscape?

This article will show you how to lock screen orientation to one direction. Environment Details: – Phonegap Build – cli-5.2.0 – Device: iPhone S5 9.3.2 For locking orientation to portrait add following code into your config.xml: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationPortraitOmg</string> </array> </gap:config-file> For Landscape: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </gap:config-file> Source:

SSH: How to stop a script running in the background?

Open/Login SSH into the server Type in ps x See the list of processes currently on your server Get the PID(process id) from that list and type kill xxxxx That should do it. Source: StackOverflow Tested on Linux / CentOS 6.7 x 64

PHP: How to run / execute a script in the background forever through SSH ?

You can execute a php script in the background forever by using SSH through PHP but for that you have to make sure first that SSH2 extension is available. PHP DOCS: $connection = ssh2_connect(‘’, 22); ssh2_auth_password($connection, ‘username’, ‘password’); /* if you want to execute script from a different directory then use commands in same line […]

SSH: how to run a PHP script in background forever in Linux (CentOS) ?

If you want to run a PHP script in the background forever through SSH then follow these steps: If you are using a SSH terminal (PuTTY) then directly run following command: // Notice ‘&’; that operator will help to run this script forever. php server.php & // make sure that you are in the root directory […]

CentOS: how to execute a php file with different php version than the php version of OS

To execute a php file with different php version than the version installed on the main php of your Server follow this: You should know that where is that php version located so that you can add the path. In my case I want to use PHP 7 that is installed in the plesk hosting […]

How to install Plesk on Linux CentOS?

Download the autoinstaller from our website: wget Add execute permissions to the autoinstaller: chmod +x plesk-installer Launch the autoinstaller: ./plesk-installer If upgrading Plesk from a lower version: Command line: /usr/local/psa/admin/sbin/autoinstaller –all-versions GUI (Graphical user interface): /usr/local/psa/admin/sbin/autoinstaller –all-versions –web-interface For more information, please refer to Plesk Installation guide. Tested on CentOS 6.7 x64 Source: