PDA

View Full Version : Web Hosting on Apache Server



nipuna316
09-29-2005, 04:56 PM
Hi,

I have been using Knoppix for 5 days ( Yippeee ). Still tryin' out new things and it's great. Managed to save my Knoppix Configuration and create a persistance Home on my USB thumb drive.

I'm tryin to host my web site (ALL HTML) using apache server built into Knoppix. I can't copy my files to /var/www cos i'm running off my Live-CD and it's write protected (I think). The index page for apache (http://localhost) says that i can create a public_html folder in my /home to host my web site. I did that but somehow i get a error.

Can someone pls tell me what i'm doin wrong???

In my web browser I'm typing "http://localhost/user/foldername.

Thanx in advance.

markpreston
09-29-2005, 08:01 PM
You need to be root to do this.
You can do it graphically by running these commands from a terminal window as user knoppix
su root <enter>
then, at the root prompt
konqueror<enter>
Then you can browse the filesystem and write/copy files to the /var/www directory from within konqueror.

Once you've got plain html pages working you might like to try out the link below and give php, perl and bash cgi scripting a whirl.

http://www.knoppix.net/forum/viewtopic.php?t=21221

Regards,
Mark