tornike@bill:~$ dpkg -l |grep apache
ii  apache2                  2.2.3-4+etch5                      
Next generation, scalable, extendable web se
ii  apache2-mpm-prefork      2.2.3-4+etch5                       
Traditional model for Apache HTTPD 2.1
ii  apache2-utils            2.2.3-4+etch5                        utility
programs for webservers
ii  apache2.2-common         2.2.3-4+etch5                        Next
generation, scalable, extendable web se
ii  libapache2-mod-php5      5.2.0-8+etch11                      
server-side, HTML-embedded scripting languag

tornike@bill:~$ dpkg -l |grep mysql
ii  libdbd-mysql-perl        3.0008-1                             A Perl5
database interface to the MySQL data
ii  libmysqlclient15off      5.0.32-7etch6                        mysql
database client library
ii  mysql-client-5.0         5.0.32-7etch6                        mysql
database client binaries
ii  mysql-common             5.0.32-7etch6                        mysql
database common files (e.g. /etc/mysql
ii  mysql-server-5.0         5.0.32-7etch6                        mysql
database server binaries
ii  php5-mysql               5.2.0-8+etch11                       MySQL
module for php5

tornike@bill:~$ dpkg -l |grep ssl
ii  libssl0.9.8              0.9.8c-4etch3                        SSL
shared libraries
ii  openssl                  0.9.8c-4etch3                        Secure
Socket Layer (SSL) binary and related
ii  ssl-cert                 1.0.14                               Simple
debconf wrapper for openssl

tornike@bill:~$ dpkg -l | grep ftp
ii  proftpd                   1.3.0-19etch1         Versatile,
virtual-hosting FTP daemon

openssl  req -new -x509 -days 3650 -nodes -out apache.pem -keyout apache.pem
a2enmod ssl
a2ensite ssl

apt-get install apache2
apt-get install apache2
apt-get --purge remove apache2

netstat -anp
top -d1
dpkg -l | grep apache

///////esaa sslis chartva
(as root)

# aptitude install ssl-cert
# mkdir /etc/apache2/ssl

Hardcoding cert lifetime based on this patch:

# make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem

(Answer questions)

# a2enmod ssl

# cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl

Modify it so it looks something like this

NameVirtualHost *:443

ServerAdmin webmaster@localhost

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

DocumentRoot /var/www/

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128

# sudo a2ensite ssl

don't forget to modify /etc/apache2/sites-available/default

NameVirtualHost *:80

ufaso ssl sertifikatis generireba

openssl  req -new -x509 -days 1825 -nodes -out apache.pem -keyout apache.pem