Categories
Server

Debian 7 (WheezY) Cheat Sheet

Check php version (command line):

php -i

unzip a .tar:

tar -xvf file.tar

unzip a .tar.gz:

tar -xzvf file.tar.gz

Virtual Host Setup:
1. Place the WebSite Files in /var/www/[Folder name]
2. Navigate to /etc/apache2/sites-available
3. Create a new file [SiteName], and nano the vhost
4. Create a symlink in /etc/apache2/sites-enabled with:
a2ensite [siteName]
5. Restart apache:
service apache2 restart graceful or
service apache2 reload

Change a single folder name:
mv [old folder] [new folder]

Install php gd:
aptitude install php5-gd

Install php pear:
aptitude php-pear

Install php imagick:
aptitude install php-imagick

Install php alternative PHP coding:
php install php-apc

Resume Stopped jobs:
fg

Best Site for unix Commands: