TheOgre 77 Posting Whiz

OK, in your httpd.conf, look for:


AddHandler cgi-script .cgi


and add .pl:


AddHandler cgi-script .cgi .pl


Restart Apache by doing (as root):

apachectl restart

then try running the commandline again. If you got the same stdout that I posted earlier, you should be able to run the .cgi in the browser.

TheOgre 77 Posting Whiz

OK, try this as well:

from a console on your *nix box, navigate to your cgi-bin directory, and manually run the .cgi script.

This is the stdout when I just did it:

kevin@mars$ cd /usr/local/www/cgi-bin
 kevin@mars$ ./hello.cgi
 Content-type: text/plain
 
 Hello World!
 kevin@mars$
TheOgre 77 Posting Whiz

I just found this:

Generally, when you get this type of error from a cgi it means
you did not generate the header properly.


If you did not modified the script, I don't see how this could
have happened; if you did, make sure the first "print" line
does a:


print "Content-type: text/html\n\n";


URL: http://www.opensrs.org/archives/resellers-list/0002/0054.html

TheOgre 77 Posting Whiz

http://anti-trojan.com/

Check the "Removal Database" for SubSeven. I have no idea what version you've been infected with, but that at least gives you a start on what to look for...

TheOgre 77 Posting Whiz

You're infected with Sub7, which is a RAT,or, Remote Access Trojan, sorta like NetBus.

Check your Registry, specifically, the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN

and

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNSERVICES

Make a backup of that key before removing anything, then delete any key you KNOW shouldn't be there. If you happen to make a mistake, restore the backup of that key, then start again.

Actually, it would be easier if you could paste a snapshot of that key so I can look at it and see if I can spot it...

Also, just by removing that key (if it exists) in the registry won't fix it. You'll also notice that you can't run any executable files, which requires another registry edit. I'll see if I still have the instructions here or paste a URL that walks you through the repair process.

TheOgre 77 Posting Whiz

Make sure you have:

AddHandler cgi-script .cgi

in your httpd.conf or they won't be executed properly, which is happening in this case. I believe I already checked for that in the httpd.conf I modified for you.

TheOgre 77 Posting Whiz

Please paste the output of ifconfig so I can see the cirrent configuration for eth0

Example:

root@loaclhost# ifconfig eth0 > ~/ifconfig.txt

Then paste the contents of ifconfig.txt.

TheOgre 77 Posting Whiz

WindowsXP is trying to use the drivers for the motherboard your friend had in his system. Boot your box into Safe Mode, remove all System devices that are relational to the motherboard, including the video adapter, USB, NIC, modem, etc. and reboot. When WinXP reboots, it will detect the current devices and load the appropriate drivers, and all should be well.

Also remember to load the chipset drivers for your motherboard (usually on the CD as "4+1") IMMEDIATELY reboot the system after installign those drivers without doing anything else.

TheOgre 77 Posting Whiz

Yes, they do block 80, which is why I have the firewall listening on another port. I had to create a firewall/nat rule that redirects the packets to the right IP:port on the internal net for web, but mail (25 and 110) works just fine.

Let me know if you want to see how I did it :)

TheOgre 77 Posting Whiz

I sent you the edited file back with notes in the e-mail message. Please let me know if it works.

TheOgre 77 Posting Whiz

What directory are your files residing in? /var/www/ or /var/www/html/ ?

TheOgre 77 Posting Whiz

Do you have a file named .htaccess in your web directory?

TheOgre 77 Posting Whiz

Rename your existing httpd.conf to httpd.conf.bak and replace it with this one I've edited for you. The changes I made are:

Renamed:
ServerName dns1.xxxxxxx.com
To:
ServerName www.xxxxxxx.com

(dns1 indicates a DNS server. www is used for a normal http server)

Changed Listen *:80 to Listen 80

In fact, I'm editing your httpd.conf and will send it back to you to try out.

TheOgre 77 Posting Whiz

If you edited the file under Linux (or in a term session) you shouldn't see the "^M" characters - these are created under Windows only, and are inserted by a Win32 text editor to indicate a line break/return. Linux/UNIX doesn't recognize that, and therefor doesn't process those characters, which adds the error line in httpd-errors.log regarding the "premature end of script header."

Either something within your httpd.conf is misconfigured, or there's a problem with the directory structure/permissions on directories that are preventing the script from being executed, and unless I had access to that box, it would be difficult for me to tell.

Try running one of the included .cgi scripts to see if they work (if any were included), or save your httpd.conf and reinstall Apache (replacing your saved httpd.conf file and dropping in your script) to see if it works. Either way, I don't think the problem is with your script.

Sorry I wasn't able to get it working for you, but your script DOES work (at least on my server :)

TheOgre 77 Posting Whiz

You don't have to change the owner/group of the file, just the permissions. httpd (the process/daemon) is recommended to RUN as apache for security reasons, but the entire .../www/ directory doesn't need to be chown to anyone in particular. In fact, my entire directory (+ contents + subdirs) is owned by my normal user account, and all files are 755 as far as permissions go.

Is this on a public site so I can check it from an outside IP?

As I said, the only thing I did to get your script to work on my server was to remove the ^M characters from the line ends (I created the file with Editpad under Windows and copied it to a samba share) and chmod 755 hello.cgi.

If you did that, then we have to assume to problem lies in your httpd.conf somewhere. Can you mail me your httpd.conf file? I have a spare Apache 2.x server I can test it on to see if I can get it to work, if you want...

TheOgre 77 Posting Whiz

If you couldn't check mail before this, then I would think it had something to do with the way OE was configured. Since I don't know who your mail provider is, nor how your system was configured before, I can't tell you what to fix, since I don't know where the problem lies.

As far as your Display Name, please see #'s 4 and 5 above. If you are asking about your Display Name in Hotmail, you'll have to log in to Hotmail and edit your preferences to make any changes/view your current settings.

TheOgre 77 Posting Whiz

I host my personal website and mail server on cable (OptOnline) and the only investment of time I've spent on it is the initial configuration to the servers, which was about 3 hours total, once I got the DNS working.

The reason (I think) you need such a beefed up server for the forum is because of the database. I former collegue of mine ran a site on a 486 with 128 MB of RAM on FreeBSD and the server was serving an average of 40,000 hits per day. Of course, that was a few years ago, so I have no idea what the site's running on now (I don't even remember the URL to even check it.)

My point is, it all depends on what your site is going to be serving (content-wise.) If you plan on having a few .html pages, or even .php, you shouldn't need a high-end system. If you're going to be accessing databases, then that's where the performance issue comes into play, requiring a server-class system.

If you enjoy tinkering with webservers and the like, you probably won't even mind the time you spend working on it.

...just my 2 cents...

TheOgre 77 Posting Whiz

The "premature end of script header" was in my httpd-errors.log before I edited the script and removed the ^M characters from the line ends. After I did that and chmod 777 it worked fine.

TheOgre 77 Posting Whiz

Did that help?

TheOgre 77 Posting Whiz

I no longer have a Hotmail account, or I'd do some further checking on it for you. I know that in the past, as of about a year ago, I was able to check Hotmail from Outlook Express, but it would seem as though they've made changes to their environment. Is there a FAQ you can check to see if checking Hotmail from OE is even supported still? Sorry I couldn't be more help...

TheOgre 77 Posting Whiz

WinXP HOME doesn't have the ability to login to a server/network, a feature they left out so you'd have to buy XP Pro or Windows 2000.

The hosts file you need to edit resides in C:\WINDOWS\system32\drivers\etc\

TheOgre 77 Posting Whiz

Are you able to download your Hotmail messages from Outlook Express? I'm not sure if Hotmail allows sending mail from OE, but it should be able to check for messages on that account.

TheOgre 77 Posting Whiz

OK, here's what I did to get it to work:

Once you transfer it to your Linux box, re-edit the file (using a text editor such as vi or pico on your Linux box) to make sure there's no ^M characters at the line ends, then chmod 755 hello.cgi

Have a look: http://www.geekis-kahn.net/cgi-bin/hello.cgi

TheOgre 77 Posting Whiz

Can you send me your hello.cgi file so I can check it on my server? If I can get it working on my 2.x server, I'll know what to tell you to look for/check on your server.

TheOgre 77 Posting Whiz

Are you accessing this box from a Windows machine? If so, I highly recommend installing Samba. Once you have Samba installed, you can share your www directory, and map that shared directory as a drive on your Windows box and just copy the files to it.

If you're transferring the files from another *nix box using FTP, you need to give your Linux user +w access to that directory, or even chmod -R 777 /var/www/*

Also, check the section of httpd.conf where it deals with the cgi-bin directory, as it might be aliased to another directory - ensure the entry is pointing to the proper path for your cgi-bin directory.

TheOgre 77 Posting Whiz

To add a Hotmail account in Outlook Express, follow these simple steps:

1. Open Outlook Express
2. Click Tools | Accounts
3. Select the Mail tab
4. Click on Add | Mail...
5. Enter your Display Name (this appears as the From name when people receive your e-mail) and click Next
6. Enter your Hotmail address and click Next
7. Click the first dropdown menu item and select HTTP as the incoming mail server.
8. Select Hotmail as the HTTP mail service provider from the dropdown menu and click Next.
9. Enter your Hotmail e-mail address and password in the fields, and check the "remember password" box and click Next.
10. Click Finish

Enjoy :)

TheOgre 77 Posting Whiz

Try commenting the line about ScriptSocks log/cgi and do:
apachectl restart

You don't have to reboot the box to restart Apache :) ...rebooting is for adding hardware :P

TheOgre 77 Posting Whiz

What e-mail account are you wanting to configure Outlook Express for? You can configure it for Hotmail, but I don't think you can configure it to check your AOL mail, although I'm not sure about that, since I haven't used AOL since about version 1.0.

TheOgre 77 Posting Whiz

Are you restarting httpd after making changes to httpd.conf ?
(apachectl start|stop|restart)

TheOgre 77 Posting Whiz

Heh.. you were reading my mind while I was posting that :P

TheOgre 77 Posting Whiz

RedHat 9 is the distribution of Linux that Apache is running on, not the Apache version. Do you know which version of Apache you have? I don't use RedHat, so I don't know which version it ships with. (Look at the bottom of the error page, and if you have the server signature turned on in httpd.conf, it'll say something like "Apache 1.3.27 at www.mydomain.com Port 80" or something similar.)

TheOgre 77 Posting Whiz

n e time :)

TheOgre 77 Posting Whiz

Which version of Apache are you running?

TheOgre 77 Posting Whiz

If you had Spybot installed and installed it's hosts file protection, you'll find a lot of ad sites get blocked (like ad5.doubleclick.net)

To check this, have a look at your hosts file, located in:

Windows2000: C:\WINNT\system32\drivers\etc\hosts
WindowsXP: C:\WINDOWS\system32\drivers\etc\hosts

Also note that Spybot marks the file as READ-ONLY, so if you decide to remove the extra ad-blocking sites, you'll ahve to remove the RO attribute from the file before you can save any changes you make to it.

TheOgre 77 Posting Whiz

You can run Apache on Win32, or search SourceForge for httpd servers. I remember using TinyHTTP for awhile on a dinosaur of a system (P-75, 32MB RAM, 2.1GB HDD, Win95) and it ran very well.

Personally, I prefer Apache on *nix, but that's just my favorite. The config file may look confusing at first, but if you take the time to actually read it, it's extremely well documented and pretty much holds your hand with all the options. It also defaults to install as a service on Windows NT/2000/XP, and there *ARE* GUI configuration utils to help you, if you don't want to read the documentation within the config file (Apache Commander @ SourceForge to name one.)

TheOgre 77 Posting Whiz

Because you don't get paid until after they've called the buyer to verify they've received whatever service they bought from you. If the buyer wanted to save money (read: screw you) all they'd have to do is claim they never received the product, and you wouldn't get paid. Period.

I signed up with them for about a week, and then I got curious why the test purchase I made never went through. After reading (again) their FAQ, I found that statement. If you're selling service-type items (i.e.: labor), or non-physical items (i.e.: web hosting) and the customer never "receives" the merchandise, you don't get paid. They also only pay you once per month, instead of x days after they receive payment from the customer, like a regular merchant account.

TheOgre 77 Posting Whiz

I wouldn't recommend them if I got paid to :)

TheOgre 77 Posting Whiz

There are a few alternatives to PayPal, but I can't think of their names at the moment. They don't have the world-wide recognition PP does, nor the built-in interfacing to things like eBay, but they are an alternative to receiving online payments. I'll let you know when I find out what they are.

TheOgre 77 Posting Whiz

Yes, ma'am :)

TheOgre 77 Posting Whiz

Seriously though, I don't know a thing about sendmail. Have you tried Google.com or the Sendmail FAQ? I'd love to help, but I've never used Sendmail - only qmail, postfix, and exim. I'll see if I can find anythig for you, though, and let you know if I do.

TheOgre 77 Posting Whiz

Yeah. Use qmail :P

TheOgre 77 Posting Whiz

-I'm not the idiot who shelled out $17 for a crappy PS to go into a system with a RAID card, a high-end ATI card, and an Audigy II card.

-You get what you pay for.

-If you don't like the replies you get when posting, don't read them. You GET opinions when you post, or haven't you realized that yet?

-I've never had a system get fried due to a lousy part that I put in it, and if it did, I'd be mad at myself for being so stupid.

If you want to post your rants about it, get some free space on GeoCities and have at it. This forum is for questions and answers, not for badmouthing a company that sold you a cheap part that happened to be defective.

TheOgre 77 Posting Whiz

This forum isn't meant for arguments, so I won't post any comments about that, except that any network that doesn't have some kind of firewall or antivirus protection deserves to get owned/infected.

TheOgre 77 Posting Whiz

It gets saved in the Kazzaa directory as a .part file, or something similar. I haven't used Kazzaa since it came out, so I don't recall exactly, but I remember it's in your downloads directory, and the file extension is like .part or something like that.

TheOgre 77 Posting Whiz

I'm not taking anything personally, and there's no tension building within me. I'm not starting an arguement, either. What I *am* doing is letting you know that the way you spoke to freeman2381 was uncalled for and unprofessional. That's it.

TheOgre 77 Posting Whiz

It's generally good practice (and good netiquette) to post the original URL you pasted the text from, so users can visit the site for further information.

TheOgre 77 Posting Whiz

freeman - try (as root) chmod 755 /dev/dsp

If you want to start Debian in commandline mode, remove gdm (Gnome Display Manager) or prevent it from starting up by removing it's +x attribute.

When you installed Debian, did it skip the part about detecting and (possibly) installing the sound module? If you don't remember, that's fine. Another thing to do is to examine the dmesg output and search for ac97:

user@host$ dmesg > ~/dmesg_today.txt
 user@host$ cat ~/dmesg_today.txt | grep ac97

Paste me the output (if any) from that so I can see what's going on at boottime.

TheOgre 77 Posting Whiz

That always brings them back to try again.....it's a slap to the face.

That's just it - DON'T slap anyone in the face, regardless of what outcome you *HOPE* to achieve by doing it. It's not only rude, but when people see that, they don't WANT to come back.

TheOgre 77 Posting Whiz

That information came from the dedicated server version from Microsoft.

I pasted it from the README file that gets extracted after you install it.

Re-read my previous post...

TheOgre 77 Posting Whiz

More advanced does not always mean more stable, just like easy doesn't always mean unstable.

More advanced does NOT mean more user-friendly. Try Slackware to see what I mean.

Also, keep in mind that packages do BREAK. Not always, but happens sometimes. If you don't know how to fix it when it DOES break, you're going to have problems. ALL packages break at one time or another, from Debian to Slackware to FreeBSD. Knowing what to do when that happens is the important thing.

The point I was trying to make was just because something is easy doesn't mean it isn't good. Do your homework, look at more than one distro, and see which one YOU like the best. If you like the way Slackware resembles UNIX, great! If you like Mandrake's interface better than Debian's, great! If you prefer a .deb system as opposed to a .rpm system, go for it!

They're ALL Linux. There's just a lot more flavors of Linux than there are of anything else, which means you have more CHOICE. Take them all for a test ride and see which one you feel the most comfortable with, then learn everything you can about it. When you get bored with that one, try another one. Have some fun with it, too - you'll learn more ;-)