Tweets from pichat

PichatFollow my new user account @markseu
About 2 months, 3 weeks ago from Pichat (Pichat Software)

Tweets from 600infos

600infosI HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat
About 3 months, 3 weeks ago from 600infos (Wolf)

XAMPP

VirtualBox Additions

sh /media/cdrom0/VBoxLinuxAdditions-x86.run

http://www.apachefriends.org/en/xampp-linux.html

su
wget -o xampp-linux-1.7.4.tar.gz http://www.apachefriends.org/download.php?xampp-linux-1.7.4.tar.gz
tar xvfz xampp-linux-1.7.4.tar.gz -C /opt

/opt/lampp/lampp start

/opt/lampp/lampp stop

# change DocumentRoot to /media/share/www/htdocs
vi /opt/lampp/etc/httpd.conf

mkdir /media/sf_share
mkdir /media/sf_share/www
mkdir /media/sf_share/www/htdocs
# create index.html which is diplayed if share is not mounted
echo ERROR: mount -t vboxsf share /media/sf_share >> /media/sf_share/www/htdocs/index.html

mount -t vboxsf share /media/sf_share
# put this command in a startscript e.g. in init.d

/opt/lampp/lampp start
# put this command in a startscript e.g. in init.d

Autostart

create /etc/init.d/lampp

touch /etc/init.d/lampp 
chmod 755 /etc/init.d/lampp 

edit / vi /etc/init.d/lampp

#!/bin/bash
#
### BEGIN INIT INFO
# Provides: lampp
# Required-Start: $local_fs $network $named $portmap $remote_fs $syslog $time 
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the lampp server
### END INIT INFO


/opt/lampp/lampp $1

activate runlevel scripts:

root@debian:/etc/init.d# insserv -d /etc/init.d/lampp

root@debian:/etc/init.d# update-rc.d /etc/init.d/lampp defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: lampp start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (2 3 5)

#!/bin/sh
/opt/lampp/lampp $1
# ln -fs /opt/lampp/lampp /etc/init.d/lampp 
# update-rc.d lampp
ln -s /etc/init.d/lampp /etc/rc0.d/K02lampp 
# runlevel 1 only singeluser
ln -s /etc/init.d/lampp /etc/rc2.d/S92lampp
ln -s /etc/init.d/lampp /etc/rc2.d/K02lampp
ln -s /etc/init.d/lampp /etc/rc3.d/S92lampp
ln -s /etc/init.d/lampp /etc/rc3.d/K02lampp
# runlevel 4 normally not defined
ln -s /etc/init.d/lampp /etc/rc5.d/S92lampp
ln -s /etc/init.d/lampp /etc/rc3.d/K02lampp
ln -s /etc/init.d/lampp /etc/rc6.d/K02lampp 
  • verify
ls -l /etc/rc2.d | grep lamp

Translate
Advertisment
  • more about Pichat on http://www.pichat.net
  • C4 - Tiny chat software
  • http://600infos.de
  •    Counter:  11683  Online:  6  Your IP:  38.107.179.237  DNS:  unknown  Page generated in    0.17 sec.