6 replies [Last post]
lordelric
lordelric's picture
Offline
Regular
Chicago-land
Last seen: 17 years 16 weeks ago
Chicago-land
Timezone: GMT-6
Joined: 2005-03-20
Posts: 37
Points: 0

So I was given a PC from someone for a real cheap price. (long story), and I was thinking of setting up a webserver so I could learn/ test out new code before publishing it.
I was thinking of using RH Linux 9, but I have no idea about what else I might need, and how to set it up. Could anyone help out please.

Tags:
co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 12 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Staging Server

Definitely worth a try. I learnt so much a while ago doing this. I know can confidently troubleshoot and setup a Linux server (which is a bonus when dealing with clients).

RH is a good choice. If the PC can handle it, download a copy of Fedora (Core 3 now I think). It'll probably take you a few false starts to get anything positive out of it, but well worth it.

It'll tune-up your Apache, MySQL, and PHP skills, as well as Unix (or should I say *nix, skills).

Smile

The next sentence is true. The previous sentence is false. Discuss...

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 18 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Staging Server

I run Debian myself with Apache1.3.33. Assuming you get the Gnu/Linux on the box ok, I'd guess installing by the RPM should go fine. Believe it or not, configuring Apache for a single domain with reasonable security is bang easy. Just RTFM a few times before opening httpd.conf in Emacs. You'll want to install PHP, Perl, or Python for scripting and Mysql or PostgreSQL for a database.

Oh, and don't forget The Gimp.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

lordelric
lordelric's picture
Offline
Regular
Chicago-land
Last seen: 17 years 16 weeks ago
Chicago-land
Timezone: GMT-6
Joined: 2005-03-20
Posts: 37
Points: 0

Staging Server

Thank You for the tipe. I was probably going to use Red Hat 9, because that is what we have at work, so I can be doubly productive. (whatever that means).

Quote:

Believe it or not, configuring Apache for a single domain with reasonable security is bang easy.

Is it really that much harder to set it up for multiple doamins. I was thinking of leaving my site, plus whatever design I was working on at the time.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 9 years 41 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Staging Server

If you have a broadband connection, consider gentoo. It will take a little longer to get setup the first time, however updating and adding software packages is extremely easy (emerge mysql php apache). There are step by step tutorials for getting gentoo up and running that are extremely easy to follow.

e.g. http://gentoo-wiki.com/HOWTO_Install_Gentoo_-_The_Gentoo_Developers_Method_with_NPTL_and_2.6_from_Stage1

includes your apache/php/mysql setup.

lordelric
lordelric's picture
Offline
Regular
Chicago-land
Last seen: 17 years 16 weeks ago
Chicago-land
Timezone: GMT-6
Joined: 2005-03-20
Posts: 37
Points: 0

Staging Server

No, unfortunately no broadband connection. But when I can I will look into it.

Also is there any particular advantages with using a particular language over any other. php seems to be the hot thing, so I know there is tins of stuff out there to help you learn, but isn't perl a much more robust language. (i.e. can't you do more with it.)
I have done some stuff with Python, but I would not it any way say that I know what I am doing. Hence this project, to learn more 'real' world stuff.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 18 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Staging Server

There is no rule that says you can't use any or all the languages you want. In the hosting arena, PHP is more commonly offered than the others

I mentioned the single domain setup because it seems some folks have problems configuring virtual domains. It's not that hard, but does confuse some, it seems. For web development, one is all you really need. You have the root domain and all the ~[user]/ directories you want to fool with.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.