sudo /etc/init.d/apache2 reload
sudo vim /etc/apache2/sites-available/default
In the ”<Directory /var/www/>” section, change:
AllowOverride None
To:
AllowOverride All
Reload Apache's configuration:
sudo /etc/init.d/apache2 reload
Ref: Ubuntu documentation: Enabling Use Of Apache Htaccess Files
sudo a2enmod rewrite
Reload Apache's configuration:
sudo /etc/init.d/apache2 force-reload
sudo apache2ctl -M
sudo vim /etc/apache2/sites-available/default
Change:
allow from all
To:
allow from 206.12.30
# enable mod_ssl module sudo a2enmod ssl # configure Apache for HTTPS sudo a2ensite default-ssl # restart Apache sudo /etc/init.d/apache2 restart
Default certificate:
/etc/ssl/private/ssl-cert-snakeoil.key
Reference:
Note: if you need your .htaccess to keep working with HTTPS, enable them in /etc/apache2/sites-available/default-ssl
Example: make /home/jerome/a_site available at http://localhost:8091
/etc/apache2/ports.confListen 8091
/etc/apache2/sites-availablecp default new_site
In new_site:
<VirtualHost *:80> to <VirtualHost *:8091>/var/www to /home/jerome/a_sitecd /etc/apache2 sudo ln -s sites-available/new_site sites-enabled/new_site
sudo /etc/init.d/apache2 restart
lsb_release -a
or
cat /etc/lsb-release
uname -r
cat /proc/cpuinfo
sudo hdparm -i /dev/sda1
sudo lshw
The default ffmpeg (installable via Synaptic) can't convert audio to MP3 (audio format for FLV). A solution is to install ffmpeg from Medibuntu repositories.
Example:
ffmpeg -i movie.avi -ar 22050 -ab 8 -qscale 6 -r 15 -s 320x240 -f flv movie.flv
If it doesn't work, look there.
xset b off xset b 0 0 0