fbpx

SVN Tips & Tricks

These are some the commands used for SVN. Checkouts repo code via file protocal svn co file://svn/PROJECT_NAME/ /TARGET_DIR/XYZ/ OR svn checkout file://svn/PROJECT_NAME/ /TARGET_DIR/XYZ/ Checkouts repo code via http protocal svn co --username USERNAME http://svn/PROJECT_NAME/ /TARGET_DIR/XYZ/ OR  svn checkout http://svn/PROJECT_NAME/ /TARGET_DIR/XYZ/ checkout repo code from external url svn checkout http://localhost/repos/PROJECT_NAME/ --username=USERNAME --password=PASSWORD Create new folder in repo svn mkdir -m "ABC" http://svn/PROJECT_NAME/ Adding...

Read more...

How to install and configure SVN on Ubuntu

Subversion – another name we known as SVN, is an open source version control system. SVN is a really easy to use Revision control/version control/source control and store changes of your project files such as coding and documentation. In this tutorial we will discuss how to install subversion on Ubuntu...

Read more...

Server Migration Process

This is a tutorial for moving of server data from one server to another. i consider you have setup the server using guide http://zain.pk/setup-of-ubuntu-server-or-ubuntu-desktop-on-virtualbox/ The link shows how to install server on virtualbox. Production server is not much different then running server on virtual machine. Things we will consider moving from...

Read more...

MySql Database Size

This query will get mysql database size in mb. Replace the DATABASE_NAME with actual database name in query below   SELECT CONCAT( sum( ROUND( ( ( database_info.data_lenght + database_info.index_lenght - database_info.data_free_lenght ) / 1024 / 1024 ), 2 ) ), " MB" ) AS Size FROM ( SELECT sum( CAST(DATA_LENGTH AS UNSIGNED) ) AS data_lenght, sum( CAST(INDEX_LENGTH AS UNSIGNED) ) AS index_lenght, sum(CAST(DATA_FREE AS UNSIGNED)) AS data_free_lenght FROM INFORMATION_SCHEMA. TABLES WHERE TABLE_SCHEMA LIKE '%DATABASE_NAME%' ) AS database_info;

Read more...

.htaccess tips & tricks

If your .htaccess does not work. Open your apache configuration and find the block <Directory "/var/www/"> .... .... .... </Directory> Add the following line to activate htaccess AllowOverride All Its good to turn on rewrite engine in apache RewriteEngine on secure your .htaccess file <Files .htaccess> order allow,deny deny from all </Files> Don't list files in index pages IndexIgnore * You can specify the...

Read more...

Install and configure Memcache

Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. Once the data is requested again, memcache speeds up...

Read more...

Install IonCube Encoder

This is the guide to install ioncube on ubuntu server. Create a temp directory or moving into one already created cd /tmp/ Get 32 bit ioncube to download. You can decide which type of OS is installed on your server. wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz You can get 64 bit ioncube to download. wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz Now unzip the download...

Read more...

How to mount windows directory in VirtualBox Ubuntu

In this article, we’ll configure Apache on the VirtualBox in order to use this shared folder to run website from windows folder. Prerequisite for this article is 'Setup of ubuntu server or ubuntu desktop on VirtualBox' You need to share the directory in VirtualBox. To access the shared folder properties, simply click...

Read more...