Ubuntu - Installing LAMP

sudo apt-get update
sudo apt-get upgrade

Install Apache
sudo apt-get install apache2

Install PHP
sudo apt-get install php5 libapache2-mod-php5

Install MySQL
sudo apt-get install mysql-server
sudo pico /etc/mysql/my.cnf

sudo apt-get mc
sudo apt-get install libapache2-mod-auth-mysql php5-mysql

Installing Webmin


Basis Crontab Commands

crontab -e    Edit your crontab file, or create one if it doesn’t already exist.
crontab -l      Display your crontab file.
crontab -r      Remove your crontab file.

Install FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder on debian squeeze

Install FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder ...

Add the following to your /etc/apt/sources.list:
deb squeeze main non-free
deb-src squeeze main non-free
deb squeeze-backports main


and run the command:

apt-get update

You will get an error about a missing signature, install it and update package list with:

Install Auth MySQL - Apache 2 and Debian

Install Auth MySQL

apt-get install libapache2-mod-auth-mysql

# enable module  mod-auth-mysql
a2enmod auth_mysql

Setting multiple IPs on Debian

All the network info is stored in the file /etc/network/interfaces

Before making changes to this file, check your values at least 3 times! If you have made a mistake and trying to do it from a remote location, YOU WILL LOCK YOURSELF OUT!

Use your own IP numbers, If you are not sure contact your ISP (Internet Service Provider).

Change your default locale on Debian

To check which locale you currently have as your default just run:

# locale

How to change your default locale on Debian

Check also your locale with command
# cat /etc/default/locale

or type to see a list of installed locales

Set the Time and Date on Debian

Set the Time and Date on Debian and Change TimeZone

Set the Time and Date
To see the current time on Debian, use the command date

To see the time in UTC, use command date -u.

Set the time manually with the command date --set
The date is given in ISO 8601 standard format YYYY-MM-DD for Year-Month-DayOfMonth, and time of day using 24 hour clock.

Set the datum as:

Installing NTP on Debian

Installing NTP on Debian

To install NTP on debian use commando

apt-get install ntp

And to configure ntp edit file


and change lines:
server iburst
server iburst
server iburst
server iburst

Multiple SSL Web Sites On One IP Address With Apache 2.2

Generate SSL Key, CSR and Self Signed Certificate

Debian 5.0 Lenny with Apache2

If you want to convert your website from HTTP to HTTPS, you need to get a SSL certificate from a valid organization like Verisign or Comodo. You need first to generate self signed SSL certificate .crt


Install first openssl and check if apache2 is installed

apt-get install apache2
apt-get install openssl ssl-cert

# create folder /etc/apache2/ssl

Syndicate content
Black Friday 2017