Staredit Network

Staredit Network -> Computers and Technical -> Server
Report, edit, etc...Posted by Felagund on 2007-01-02 at 22:17:20
Well, it appears that I am capable of running a server 24/7 now as I've got 2 decent gaming-level computers in the house for when friends come over.

Here are the stats for the "server" that I'm planning on using:

Pentium 4 2.0 GHz
512mb Ram
60 GB + 40 GB Hard Drives
Windows XP Home
128mb GeForce FX 5200 (not that it's applicable really for servers, but still)

I figure that I'll run Folding@Home on it, at least till I get a domain and website set up. But there are so many possibilities! What should I do with it?
Report, edit, etc...Posted by Deathawk on 2007-01-03 at 11:24:36
SEN should have a F@H group..

You should run F@H on both your computers.. it doesn't slow your computer down, it only uses resources that aren't being used tongue.gif

Uhh, don't run a server on it at all until you actually have a use for it... happy.gif
Report, edit, etc...Posted by ShadowFlare on 2007-01-03 at 14:52:16
What OS do you plan on running the server software in? Also, do you plan on still using it for gaming sometimes?

If the OS you want to use is something other than the XP that is installed on there and you still plan on using the system for gaming sometimes, you could install the OS and server stuff on a virtual computer in Microsoft Virtual Server or Virtual PC (both are free). This will allow you to run your server in Linux, for example, but still play games on it in XP without rebooting.

The reason I'm suggesting these specific Microsoft programs is that in my experience, they are the ones that have the least impact on system performance while the servers are idle (some others still consume much cpu resources even when the virtual computer is idle). This is important if you still want to be able to use the computer for gaming while the server is running.

What I've described above is what I do with one of my systems. Out of those two programs, I prefer to run my server in Virtual Server, since I can just run it in the background without any windows showing on-screen. I have various server programs (web server, FTP server, SSH server, and possibly a mail server later) running on it in Debian Linux.
Report, edit, etc...Posted by Syphon on 2007-01-03 at 15:46:57
QUOTE(Deathawk @ Jan 3 2007, 11:24 AM)
SEN should have a F@H group..
[right][snapback]609390[/snapback][/right]


Want to start one?
Report, edit, etc...Posted by Deathawk on 2007-01-03 at 15:58:32
Maybe I will later, later... I'll look into it.. a forum that I go to has one, and it has a bunch of members.. but it's a tech-forum, so everybody has good computers.. mellow.gif

I haven't really worked much with F@H, but http://fah-web.stanford.edu/cgi-bin/main.p...e&teamnum=53478 is our team... more work can be done later, and stuff...

Somebody else can work with that... and stuff.. I want to get one of those signatures that give team and user stats.. but I don't know how they work...

If anybody wants to, they can create a thread and stuff for F@H...
Report, edit, etc...Posted by ShadowFlare on 2007-01-03 at 15:59:01
BTW, I forgot to mention this. I have a couple of free subdomains set up that point to my IP address. If you don't want to pay for a domain name just yet, that is the way to go. smile.gif No-ip.com seems to be a pretty good service for that type of thing and it is easy to sign up for it; it is the one I've been using.

They give you 5 subdomains on a free account and I've been using a few out of those 5. smile.gif sfrealm.hopto.org is one of them; I've been using it for a PvPGN server that I run sometimes. I also recently added sfsrealm.hopto.org (out of the domains they have available, I like to use hopto.org happy.gif ); I have that one redirect to my web site. I'm planning on using that one to always point to my current web site address.
Report, edit, etc...Posted by Felagund on 2007-01-03 at 16:30:39
Cool, I signed up for our F@H team. It's really for a good cause.

*Edit* I just downloaded Apache web server and registered ShadowLegends.net (I figure I can run any number of things off of that site that I wish to - including information about the books that I'm writing).

So what the heck do I do with this stuff?
Report, edit, etc...Posted by Pie_Sniper on 2007-01-03 at 18:32:10
http://www.staredit.net/index.php?showtopic=35516
http://www.w3schools.com/
http://php.net/

Get to work. tongue.gif
Report, edit, etc...Posted by Felagund on 2007-01-03 at 19:38:05
I get to the part where I type in "Localhost" into my browser and it just brings up a page where it says, "It works!"

However, that is contrary to what is happening... it's not working...
Report, edit, etc...Posted by Doodle77(MM) on 2007-01-03 at 19:46:48
What? Oh, yeah do you mean only `localhost' works?
Report, edit, etc...Posted by IsolatedPurity on 2007-01-03 at 19:49:30
I like wamp... installed apache, mysql, and php for you.
http://www.wampserver.com/en/
Report, edit, etc...Posted by ShadowFlare on 2007-01-03 at 19:55:04
QUOTE(Felagund @ Jan 3 2007, 06:38 PM)
I get to the part where I type in "Localhost" into my browser and it just brings up a page where it says, "It works!"

However, that is contrary to what is happening... it's not working...
[right][snapback]609585[/snapback][/right]

In what way is it not working? What are you doing and what is it doing?
Report, edit, etc...Posted by Felagund on 2007-01-03 at 21:20:21
I did all the stuff in his tutorial that it said to, and then I go to "Localhost" and it just displays "It works!" instead of displaying the default apache page, unless that is in fact the default apache page, because then I feel stupid. However, I also tried the test.php file in my htdocs folder.

Then I made a simple html document and tested that, and localhost/one.htm works just like it's supposed to. How do I get PHP to work?
Report, edit, etc...Posted by Syphon on 2007-01-03 at 21:25:19
QUOTE(Felagund @ Jan 3 2007, 09:20 PM)
I did all the stuff in his tutorial that it said to, and then I go to "Localhost" and it just displays "It works!" instead of displaying the default apache page, unless that is in fact the default apache page, because then I feel stupid. However, I also tried the test.php file in my htdocs folder.

Then I made a simple html document and tested that, and localhost/one.htm works just like it's supposed to. How do I get PHP to work?
[right][snapback]609612[/snapback][/right]


Prepare to feel stupid tongue.gif That's the default page.

To get PHP to work just make sure Apache and php#.ini are configured properly, and start writing .php files. (Or downloading and organising them.)
Report, edit, etc...Posted by Felagund on 2007-01-03 at 21:28:38
I wish I knew what to configure... this is going to take a while to sort out!
Report, edit, etc...Posted by Pie_Sniper on 2007-01-03 at 22:06:36
To get PHP to work (replace Apache folder and PHP folder with real folders tongue.gif):

1. Download and extract PHP to some directory.
2. Rename php.ini-recommended to php.ini. There are lots of things in here that you'll need to decide about yourself.
3. Add the directory php.ini is in to the PATH variable. In XP, this can be accessed by right clicking on My Computer, go to properties, go to the Advanced tab, and click environment variables. Select PATH under System Variables, and add ;<PHP folder>. On other OSs, go to the command prompt and type path %PATH%;<PHP folder>.
4. Go to <Apache folder>\conf\httpd.conf and add the following lines to the bottom:
ScriptAlias /php/ "<PHP folder>"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"

5. Restart Apache if it's running and go check out a PHP file.
6. If it says access is forbidden or something like that, go back to httpd.conf, and find a section below DocumentRoot enclosed in <Directory /> </Directory>tags. Remove the line Order allow,deny and add the line Allow from all to it.
7. Restart Apache, and it should work.
Report, edit, etc...Posted by Felagund on 2007-01-03 at 23:54:53
Cool. I did all that stuff, but now when I try to boot up Apache it says that there are no listening sockets available.

"make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down
Unable to open logs"

I tried a bunch of different combinations in the httpd file.
Report, edit, etc...Posted by Vibrator on 2007-01-04 at 00:43:00
Make sure any firewalls or routers are configured properly.
Report, edit, etc...Posted by Pie_Sniper on 2007-01-04 at 01:29:39
That means there's probably something using port 80 already. Use netstat -a in the command prompt and look for something using port 80 in the Local Address. (Called http by default in XP.) In XP, add the -o switch to it to see what PID (process ID) is using the port. Then take the PID and find it in the Task Manager under the Processes tab. (Actually, I think the switch also displays the file using it, but I'm not using XP so I'm going to be thorough. tongue.gif) If you're not using XP, I don't think the command prompt can identify it by itself.
Report, edit, etc...Posted by Syphon on 2007-01-04 at 22:01:57
QUOTE(Felagund @ Jan 3 2007, 11:54 PM)
Cool. I did all that stuff, but now when I try to boot up Apache it says that there are no listening sockets available.

"make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down
Unable to open logs"

I tried a bunch of different combinations in the httpd file.
[right][snapback]609681[/snapback][/right]
QUOTE(Pie_Sniper @ Jan 4 2007, 01:29 AM)
That means there's probably something using port 80 already.  Use netstat -a in the command prompt and look for something using port 80 in the Local Address.  (Called http by default in XP.)  In XP, add the -o switch to it to see what PID (process ID) is using the port.  Then take the PID and find it in the Task Manager under the Processes tab.  (Actually, I think the switch also displays the file using it, but I'm not using XP so I'm going to be thorough. tongue.gif)  If you're not using XP, I don't think the command prompt can identify it by itself.
[right][snapback]609703[/snapback][/right]


Not necessarily, it might mean he hasn't forwarded his ports.
Report, edit, etc...Posted by Pie_Sniper on 2007-01-05 at 01:01:20
That wouldn't affect simply starting Apache. If localhost isn't connecting to anything and Apache won't open, something else is using it. If localhost is connecting and he's trying to connect to something else, then he needs to forward the port and the thing using port 80 is probably Apache. tongue.gif

:: Edit
-b is the switch to show executable names.
Report, edit, etc...Posted by Syphon on 2007-01-05 at 17:09:42
QUOTE(Pie_Sniper @ Jan 5 2007, 01:01 AM)
That wouldn't affect simply starting Apache.  If localhost isn't connecting to anything and Apache won't open, something else is using it.  If localhost is connecting and he's trying to connect to something else, then he needs to forward the port and the thing using port 80 is probably Apache. tongue.gif

:: Edit
-b is the switch to show executable names.
[right][snapback]610140[/snapback][/right]


Which happened to me the first time.
Next Page (1)