Run the below given command
sudo pear install PHP_CodeSniffer-1.3.4
Makes sure that the the server has got php pear installed in it
If php pear is not installed run the below given command
sudo apt-get install php-pear
Run the below given command
sudo pear install PHP_CodeSniffer-1.3.4
Makes sure that the the server has got php pear installed in it
If php pear is not installed run the below given command
sudo apt-get install php-pear
PHP_CodeSniffer is a PHP5 script that tokenises and “sniffs” PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.
A coding standard in PHP_CodeSniffer is a collection of sniff files. Each sniff file checks one part of the coding standard only. Multiple coding standards can be used within PHP_CodeSniffer so that the one installation can be used across multiple projects. The default coding standard used by PHP_CodeSniffer is the PEAR coding standard.
PHP_CodeSniffer requires PHP version 5.1.2 or greater.
it can also be used to define a set of Coding Standards for your project.
Run the below given comand
sudo apt-get install memcached php5-memcache
1) Chnage directory to /usr/local/
cd /usr/local/
2) Download ionCube loaders
wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
3) Extract the file
tar zxvf ioncube_loaders_lin_x86.tar.gz
4) Add reference to your php.ini file
a) Chnage sirectory to apache2
cd /etc/php5/apache2/
b) Make sure that you have the back up of php.ini file
sudo cp php.ini php.ini.bck
c) Edit the php.ini file and add the referance
sudo gedit php.ini
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
5) Restart apache
/etc/init.d/apache2 restart
1) give permissions to the /var/www/ directory
sudo chown -R $USER:$USER /var/www/
2) Install the Apache module mod_rewrite
a2enmod rewrite
3) Chnage the directory and keep the back up of the file “000-default”
cd /etc/apache2/sites-enabled/
sudo cp 000-default 000-default1
4) Edit the file 000-default
sudo vi 000-default
Look for the below given code
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from all
Modify “AllowOverride none” to “AllowOverride All”
5) Restart Apache
sudo /etc/init.d/apache2 restart
du -sch FOLDER-NAME
1) Goto terminal and type the command sudo apt-get install rar
OR
2)Goto System->Administration->Synaptic Package Manager
Search for the package named rar and mark for installation. Then Apply.
sudo apt-get install tasksel
For eg : export some_var=some_value