|
Search Tech-Forums - link takes you to our Forum's search page. Note: The following is only a text archive! To view the actual forum discussion, please visit our website at http://www.tech-forums.net Pages:1 Requirements to set up FreeBSD as a web server(Click here to view the original thread with full colors/images)Posted by: cerberus98 Hi everyone, its been a long time since ive been on these forums, just a quick question. I found an old computer at work (1.4ghz 512 ram etc) its not really fast or special but i was wondering if it would be adequate to run FreeBSD on it and set it up as my hosting server for my site. The site isnt much (about 10 pages) and i only get about 15 hits a day (its a very industry specific site so only a handful of people really need to go onto it). Do you think this would be adequate? and also what would you recommend as my baseline internet connection speed as i can upgrade the companies plan if need be (its currently 1500/256) Thanks for your time hope to hear from somebody soon! Posted by: Sevoma That computer would be way more than enough. Use lighthttpd for the server and php with fast cgi for minimum resource usage and maximum speed. Learn how *nixes work so you can even start to go about administering it. I would recommend just buying hosting for that type of site though. You would get a faster, higher uptime site for less money. You pay a lot overtime powering a computer, enough to pay for a small hosting plan. Posted by: cerberus98 Thanks for the reply, ill look into lighttpd. this is more of a side project just so i can start to learn how to set up a hosting server and stuff, chances are ill just get someone else to host the site while i muck about with learning it all. So cheers for the reply Thanks Posted by: cerberus98 Also could you recommend a good place to Learn how *nixes work because ive been to a few sites and they are jsut rubbish Posted by: Sevoma Well, if you are new to the *nixes, I would recommend starting off with linux. It has a larger userbase and is easy to learn. You can then try out freebsd if you would like. For Desktop or Server use, I would recommend Ubuntu. The server edition can automatically do a lamp setup (linux, apache, mysql, php) and is also easy to use. The forums are helpful and they are fast with the security updates. If you have your heart set on FreeBSD, check out this place: [url]http://howtoforge.com/taxonomy_menu/1/54[/url] If you want to try out Ubuntu, check this out: [url]http://howtoforge.com/lamp_installation_ubuntu6.06[/url] EDIT: For this howto, don't do "sudo apt-get install ubuntu-desktop". It is not a good practice to install a gui for a server. To use webmin, just point a browser of another computer on the network to webmin. The static ip will have to be setup via console instead (see this: [url]http://textsnippets.com/posts/show/319[/url] ). -Dustin Posted by: cerberus98 Hey Dustin Thanks for all your help Ive just installed FreeBSD and im having a little fiddle around with it. Ive installed Putty on another computer and am using that to access it. But i just found an Ubuntu CD that i had shipped to me a while ago so ill give that ago on another computer i have at home and see which one I like better. thanks again for all your help. Cheers Chris p.s why is it a bad idea to install a GUI on a server? Posted by: Sevoma Chris, you really should grab Ubuntu Server edition, not the Desktop. You can download it from here: [url]http://www.ubuntu.com/download[/url] . While you can just to a minimal install with the Ubuntu Desktop cd, the server one has an option for an automated lamp install. It is bad to have a gui on a server because it is another peice of software where security can be breached, it consumes resources (disk and mem), and can also bring the server down if it crashes. EDIT: You also learn to depend on it for administartive use and never learn how it works. Posted by: cerberus98 Dustin, i went with your advice and downloaded Ubuntu server edition it all installed fine but how do i download and install webmin? please help. I have setup my static ip address but i cant seem to get any further. Thanks Chris Posted by: cerberus98 Dustin, I found a site that gives an guide could you tell me if its the right stuff to do, i cant do it right now (Its FRIDAY!!) but im going to jump back in on monday [url]http://www.ubuntuforums.org/showthread.php?t=195093&highlight=webmin[/url] Thanks Chris Posted by: Sevoma Yes, that guide will work. There is a webmin in the Ubuntu repoistories (I believe), but I do not recommend using that one. Webmin seems to break if you install the system package then do a webmin upgrade. I recommend doing an install from webmin.com as that howto illustrates. Edit: That site you linked ([url]www.ubuntuforums.org[/url]) is the official Ubuntu forums. They are very helpful if you need it and havemany howto's available. Just saying this as I thought you might not realize that because you referred to it as some site. Posted by: cerberus98 Good morning everyone, I finnaly got webmin istalled and apache up and running, but my problem noe is when i type in my WAN ip into firefox instead of displaying the apache 2 default page it pops up with a loging box. Does anyone know why this is, im thinking it might have something to do with my ISP?(maybe). Any help would be appreciated. Thanks It must really be early my spelling is terrible I finally got webmin INSTALLED....ops up with a LOG IN box Thanks *edit* after a bit of looking around i realised it was my routers login box that was coming up apparently it wasnt forwarding it propeerly or something im still haveing a bit of trouble with it. Also when i try and setup proftpd i can installl it fine but when ever i try to use a ftp program it say "cannot connect connection actively refused by server" or something like that Any ideas?? Thanks Posted by: Sevoma [url]http://www.smartftp.com/support/kb/connection-refused-f58.html[/url] My recommendation? Set your ftp software to use passive ftp. It can be the solution to a lot of problems you may run across. Posted by: cerberus98 smartftp is set to connect in passive mode (PASV) but it still wont connect, im also still having trouble trying to access my WAN ip address im still getting the log in popup and ive tried every combination of user&password that i can think off. I must admit having these problems is helping me learn a lot about running a linux system. This is the same way i learnt to use a windows box (create a problem then try and dig myself out of the hole i put myself in) Hoping for a reply soon Chris Posted by: Sevoma The problem may be incorrect networking settings. Try resetting your /etc/network/interfaces for dhcp. [code]auto eth0 iface eth0 inet dhcp[/code] You can then find out your lan ip address with ifconfig. Try connecting to the server now. If you can connect, you had incorrect settings for static networking. We can fix that. -Dustin Posted by: Sevoma For correct static networking (I did not realize that the link I sent was not descriptive at the time), try this: [code] auto eth0 iface eth0 inet static address 192.168.1.56 netmask 255.255.255.0 gateway 192.168.1.1 [/code] address=Tthis is the ip you want for the pc on the network. If your router config is 192.168.1.1, you need to set it to 192.168.1.<insert number> gateway=Router's config ip. netmask=Find this in your router's config. Usually 255.255.255.0 is correct Posted by: cerberus98 Dustin Thanks for the reply Im at home at the moment but ill try your suggestions as soon as i get to work. Ill keep you posted BY the way thanks for all the help you've been a life saver! Also will your suggestions help me with both my problems (the login box pop up and the problem with ftp, im starting to think they are some how related) Thanks Chris Posted by: Sevoma Glad to be a help. You've been doing great for a new linux user. I do agree, the problems are problably related. What is the server at work for anyway? Posted by: cerberus98 Hey Dustin that didnt seem to work my lan ip is 10.0.0.8 netmask 255.255.255.0 and my gateway is 10.0.0.138 its a speedstream 4100/4200 router that im using is there something special that i have to enable on it or something? Ive tried turning off teh routers firewall but that didnt help. Chris Posted by: Sevoma You need to forward the correct ports to access it form the outside or set it up as the dmz host. Posted by: cerberus98 Hi Dustin This is starting to get a bit frustrating, ive forwared the ports (im pretty sure i did it correctly and it still wont work. any more ideas as im stuck at what else i should try and do Thanks Helpless Posted by: Sevoma I am not sure what the problem might be. I have problably helped you all I can. There are some real linux guru's over at linux questions you might want to ask. Here is the link: [url]http://www.linuxquestions.org/questions/[/url] Good luck, Dustin vBulletin Copyright ©2000 - 2003, Jelsoft Enterprises Limited. PPC Management vB Easy Archive Final - Created by Xenon |