Install apache2 and php on Dapper
sudo apt-get install apache2 libapache2-php5
The problem is that the php plugin is not enabled. To enable it, you have to run the command
sudo a2enmod php5
And restart the server:
sudo /etc/init.d/apache restart
Hello, I am Jacques Fontignie. I am a PHD student at the University of Geneva. This blog is a quite a memo. Here are some of the problems I got and some of the solutions I found. I have work on the malariacontrol.net project. You can go here to see how to configure a boinc server and you can go here to participate to the project.
sudo apt-get install apache2 libapache2-php5
sudo a2enmod php5
sudo /etc/init.d/apache restart
.globl _start
_start:
arm-thumb-elf-as prog.s -o prog.o -gdwarf2
arm-thumb-elf-ld prog.o -o prog.elf
arm-thumb-elf-insight prog.elf
vba -Gtcp
***: error while loading shared libraries: libpng.so.2:
cannot open shared object file: No such file or directory
sudo apt-get install libpng3
sudo ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl
gstreamer0.10-plugins-base gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly
gksudo "update-manager -d"
%Use the latin1 encoding
\usepackage[latin1]{inputenc}
%accents
\usepackage[cyr]{aeguill}
%yes, I am french
\usepackage[francais]{babel}
public static void sort(byte toSort[], int offset, int length) {
//If we have less than this number of elements, we do the
//default sort else we use the countingsort algorithm
if (length < 45) {
Arrays.sort(toSort, offset, length);
return;
}
//It can go faster if we keep in memory an other array,
// but the class has to be synchronized.
//We initialize a new array
int temp [] = new int[256];
Arrays.fill(temp, 0);
//Count the number of elements
for (int i = offset; i < offset + length; i++) {
temp[toSort[i] + 128]++;
}
byte value = -128;
int ind = 0;
//Insert the bytes in the good order
for (int i = offset; i < offset + length;) {
while (temp[ind] == 0) {
ind++;
value++;
}
for (int j = 0; j < temp[ind]; j++) {
toSort[i++] = value;
}
value++;
ind++;
}
}
sudo apt-get install gstreamer0.8-mad
sudo apt-get <package>
#!/bin/sh
IPTABLES=/sbin/iptables
case "$1" in
start)
echo -n "Starting IPTABLES... "
# Clear old rules
$IPTABLES -X
$IPTABLES -F
$IPTABLES -Z
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport ssh -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport 443 -j ACCEPT
$IPTABLES -A INPUT -j DROP
echo "done."
;;
stop)
echo -n "Stopping IPTABLES... "
$IPTABLES -X
$IPTABLES -F
$IPTABLES -Z
echo "done."
;;
restart)
echo -n "Restarting IPTABLES... "
$0 stop > /dev/null
sleep 1
$0 start > /dev/null
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
sudo update-rc.d iptables start 99 1 .
Adding system startup for /etc/init.d/iptables ...
/etc/rc1.d/S99iptables -> ../init.d/iptables
sudo apt-get install gcc build-essential
sudo apt-get install webalizer
HostnameLookups Off
HostnameLookups On
LogFile /var/log/apache2/access.log.1
LogFile /var/log/apache2/access.log
sudo webalizer
sudo crontab -e
0 * * * * webalizer
ar cru libxerces-c.a `find . -name "*.o"`
cvs import newdir vendor version
where @mydir@ is the name you want to access from the internet and @path@ is the path to your the directory containing sources.LoadModule php4_module extramodules/libphp4.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
ServerName "localhost"
alias /@mydir@/ "@path@"
<directory>
Order deny,allow
Allow from all
</directory>
/etc/init.d/apache2 restart