How to set up a http server

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

How to set up a http server

#1 Post by Fallen »

ok i got as far as creating a ftp server :) , now i hoped that would also allow me to host a website, unfortunatly it didn't :evil: , now i need help deleting a ftp user, and configuring my computer to act as a server for ftp and http using the ip address of course.

i still am very new to linux still i tried debian for about a week, this distro seems to be more newb friendly, thank you for that john.




If it ain't broke, don't fix it...upgrade it!
&
If it ain't open-source, its not linux!

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

ghttpd

#2 Post by raffy »

Inside /root, you will see ghttpd - just click on it to launch the server. You may configure first your IP address in the conf file beside it. The htdocs folder is there also.

In console, "ifconfig eth0 IP.number.etc.etc" sets your IP address, or use the Network wizard.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

re:ghttpd

#3 Post by Fallen »

i have seen that file before when looking around, i tried to open it before also, but i will try to configure my ip into the conf file first then try again, thx.

also another note, i tried to share the files in my ftp, and they downloand with 0 kb, i set the permissions on the ftp folder public, no write, used the firewall wiz opened ports 20-21 tcp/udp 80-80 tcp/udp, still nothing it allows me to upload, but not download...

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#4 Post by r__hughes »

It has been noted before that the pup2.0x beta-ftpd ftp server does not work. See here for a suitable alternative (pure-ftpd ftp server) -
http://www.murga.org/~puppy/viewtopic.p ... t=pureftpd

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

http and ftp help

#5 Post by Fallen »

my http server is now running, atleast on my end it shows it, and thank you for helping with the ftp, i will definitely use that package instead, -edited onto original- i got it installed and i am about to test it thx a lot.

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

Re: ghttpd

#6 Post by Fallen »

raffy wrote:Inside /root, you will see ghttpd - just click on it to launch the server. You may configure first your IP address in the conf file beside it. The htdocs folder is there also.

In console, "ifconfig eth0 IP.number.etc.etc" sets your IP address, or use the Network wizard.
raffy i got the server up, on the computer hosting the web site the images are shown, but on my other compter that uses windows, that is connected directly to the dsl modem, the images are not shown.

i have tried
/images/"image name".bmp (did not display images at all)
img src="ulr/folder/imagename.bmp (displayed on host computer only)

but it still does not show on the other compter what is it i am doing wrong and how do i host my images on the server itself?

take a look here, to see it

http://72.49.19.180/index.htm

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#7 Post by GuestToo »

everything seems to be accessible at that address

index.htm will not be displayed automatically by ghttpd ... index.html will

i don't think bmps will work in your web pages ... jpgs, gifs, and probably pngs should work

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

seeing images

#8 Post by raffy »

I already see images - nice pages you have there :)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

Re: seeing images

#9 Post by Fallen »

raffy wrote:I already see images - nice pages you have there :)
thanks raffy, if you see the images, you must be seeing them all, and guest i will try changing the index from htm to html and i see if it helps out, at the moment i have my images linked to the old site that was with freewebs, but i want them to be served from one place how can that be done with the ghttpd.

also the bmp files have been working before and work now, all but 4 of them, maybe ghttpd isn't fully compatible with frames? however i will change the format of the files just to be sure.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#10 Post by GuestToo »

i don't think ghttp cares about frames or not ... it just delivers the files the browser asks for

index.html is being sent automatically as your home page now

you renamed Home.htm to Home.html ... you don't have to do that, but you can if you want to ... if you rename files, you will have to edit your links to them ... the link to Home.htm in index.html is broken now

to link to the images on your server, just change the links in your web files ... for example:

img src="/images/main.bmp"

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

re:

#11 Post by Fallen »

GuestToo wrote:you renamed Home.htm to Home.html ... you don't have to do that, but you can if you want to...
img src="/images/main.bmp"
ok i renamed the pages all to html, and all of a sudden the pages that showed no images started to work, and before you knew it everything is right take a look.


http://clix.to/uxd

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Great

#12 Post by raffy »

Great - now, what kind of hardware setup do you have there? Or, to put it another way, how small can a Puppy server be?
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

Re: Great

#13 Post by Fallen »

raffy wrote:Great - now, what kind of hardware setup do you have there? Or, to put it another way, how small can a Puppy server be?
not certain what you mean, but basically, a 6 gig and 15 gig hdd, old hp 6653c tower, and a p3 500mhz processor, thast about it. another thing i found out raffy no one responds on that bb that was posted for me to look at, and pure-ftpd can't run while i serve my website. and my images still won't load from my server, /image.png or /img/image.png, but if i make it a link to the image and have it open in a new window, it works fine from my server, got any idea why this is?

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

OK

#14 Post by raffy »

OK, thanks. Later, if you have more time, you can try using 1.08r1 or 1.09 and Nathan's grafpup LAMP server, so you'll have a fully capable server. He also has built-in PHP code there.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Fallen
Posts: 9
Joined: Wed 16 Aug 2006, 05:40
Location: Hamilton, Oh.
Contact:

Re: OK

#15 Post by Fallen »

raffy wrote:OK, thanks. Later, if you have more time, you can try using 1.08r1 or 1.09 and Nathan's grafpup LAMP server, so you'll have a fully capable server. He also has built-in PHP code there.
thanks raffy, i think maybe 1.09 sounds like a good choice.

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#16 Post by Nathan F »

I strongly recommend using something better than ghttpd if it's going out over the internet. The best two choices that are available would be lighttpd or one of the packages that include apache. The main reason is security, ghttpd will run as root while apache runs as either 'nobody' or 'apache' depending on your configuration.

The pureftpd server should not have any problem running alongside an http server since they use different ports. Make sure you use the correct commands to start it and check out the log files/error messages in the console. If it's not running the error has to lie elsewhere.

Nathan
Bring on the locusts ...

Post Reply