> sudo /etc/init.d/apache2 restart
or
> sudo service apache2 restart
or
> sudo apachectl restart
> sudo /etc/init.d/apache2 restart
or
> sudo service apache2 restart
or
> sudo apachectl restart
serverSo on a Debian based system we can edit the file /etc/hostname and change the name of the system and then run:
/etc/init.d/hostname.sh start
to make the change active. The hostname saved in this file (/etc/hostname) will be preserved on system reboot.
sudo mount /dev/cdrom /media/cdrom
cd /media/cdrom
sudo ./VBoxLinuxAdditions.run
sudo reboot
cd /usr/lib
sudo tar xvfz /media/host/apache-ant-1.8.2-bin.tar.gz
sudo ln -s apache-ant-1.8.2 apache-ant
sudo update-alternatives --install /usr/bin/ant ant /usr/lib/apache-ant/bin/ant 1
sudo mkdir -p /usr/lib/jvm/
cd /usr/lib/jvm/
tar xvfz /media/host/jdk-7u2-linux-x64.tar.gz
ln -s jdk1.7.0_02 jdk
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install update-java
sudo update-java
and select /usr/lib/jvm/jdk
cd /var
sudo rm -rf run lock
sudo ln -s /run run
sudo ln -s /run/lock lock
(reboot)
$ModLoad imudp
$UDPServerRun 514
:HOSTNAME,isequal,"192.168.1.252" /var/log/spa3102.log
> sudo service rsyslod restart<VirtualHost *:80>
ServerAdmin jerome.gallinari@gmail.com
ServerName fart.ulticom.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>sudo a2ensite fart
sudo /etc/init.d/apache2 reload127.0.0.1 localhost fart
> sudo ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device> sudo ifconfig eth1 up> sudo /etc/init.d/networking restart
> sudo apt-get install libzip-dev> sudo apt-get remove libzip-dev> apt-cache search libzip> dpkg -l | grep libzip