PDA

View Full Version : knoppix version: webserver, php & mysql



tazzi
01-24-2004, 09:14 PM
Hi,

I was wondering if anyone has remastered a version of knoppix to include a webserver with php support and a mysql server?

Ive tried to customise it myself, but im having difficulites.

I am not worried about xwindows or anything else, as its sole purpose is for serving web pages/files.

Please let me know!
tazzi@ukonline.co.uk

Many thanks,
Andy

Ghandalfar
01-24-2004, 10:07 PM
tazzi: just download older version of knoppix

tazzi
01-24-2004, 10:17 PM
which version is that?

Why not the new one?

jfitie
01-25-2004, 01:05 AM
The current Knoppix (11-19-03) has Apache and MySQL;

just run

sudo /etc/init.d/apache start
sudo /etc/init.d/mysql start

if you want it to autostart on boot; just add a file /KNOPPIX/knoppix.sh to the Knoppix ISO like this:


#!/bin/bash

sudo /etc/init.d/apache start
sudo /etc/init.d/mysql start

and burn it.

Ambrose
01-25-2004, 03:05 AM
Yep, the 'original' knoppix has everything you need.

A phpinfo will tell you so, once, of course, you start apache.

- Ambrose

tazzi
01-25-2004, 03:35 AM
ok, thanks...

Is there anyway of stopping me having to press enter when i moans about memory problems?
I was hoping for it to just boot straight up and load apache/php/ftp/ssh. I also dont need any xwindows stuff loading, as it seems to take ages doing that before it eventually put me into text mode

Thanks,
Andy

jfitie
01-25-2004, 11:21 AM
ok, thanks...

Is there anyway of stopping me having to press enter when i moans about memory problems?
I was hoping for it to just boot straight up and load apache/php/ftp/ssh. I also dont need any xwindows stuff loading, as it seems to take ages doing that before it eventually put me into text mode

Thanks,
Andy

Sure;

add a file to your knoppix CD called /KNOPPIX/knoppix.sh that looks like this:

#!/bin/bash

/etc/init.d/apache start
/etc/init.d/mysql start
/etc/init.d/ssh start

# Start shell
/bin/bash

# Reboot after logout
/sbin/reboot -f

This will start your services and load a shell BEFORE X gets started. Typing logout or pressing CTRL+D in the shell will reboot the machine.

Ambrose
01-26-2004, 12:29 AM
Woah!

Just put in "/sbin/init 2" instead of that /bin/bash funnyness. Even better if you put that before you start your services.

- ambrose