Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: The meaning of life, Perl and SML

by Util (Priest)
on Nov 25, 2008 at 01:45 UTC ( [id://725749]=note: print w/replies, xml ) Need Help??


in reply to The meaning of life, Perl and SML

You should be able to run it on your own server (Linux or Mac); your DSL connection will only be a factor if your application ever reaches high traffic.

  1. Get a "Free Dynamic DNS" account from DynDNS.com (who have been big-time Perl supporter, BTW), and configure your server to update your account whenever it detects a change in its IP address.
  2. Install and configure Apache. You should not need ModPerl for low-traffic development; CGI will do fine.
  3. Get a simple "Hello World" CGI Perl program running, that you can run via your web browser.
  4. Extend the "Hello World" program to exchange some of its data with a simple SML program via system, qx, or some other IPC method.
  5. Keep modifying the "Hello World" Perl/SML pair of programs, until you reach your research Nirvana.
    1. Come back here with any *specific* problems you have with the Perl parts of the development
      (See I know what I mean. Why don't you? and How (Not) To Ask A Question when the time comes.)
  6. Come back and tell us all about your success!

Replies are listed 'Best First'.
Re^2: The meaning of life, Perl and SML
by noknok (Novice) on Nov 25, 2008 at 10:07 UTC
    Dear Util,

    I just added you to the list of my seven favorite utilities. Thank you!

    Almut pointed me to the VPS options, I consider to do that and I am busy studying the details and comparing the offers.
    But running my own server at home is something I regularly think about every now and then, too. When the first "Mac mini" came out, I purchased one, hoping I could use it as a permanent, silent and economical web machine. But the promised built-in server never worked for me.
    I installed the Xampp suite from apachefriends.org and the I didn't explore CGI and SML on it yet, but HTML and PHP documents work fine under http://localhost. But when I try to reach it from outside, I receive an error message. There must be some mistake in my thinking about the mechanics, maybe you can give me a hint:
    Well, suppose Xampp is running fine and http://localhost works locally, i.e. in the mac mini browser itself. I go to whatismyip.com and see that my current IP is say 77.250.13.83. I don't have a permanent IP, but that one should be my IP as long as I am online, right? But when I take my laptop and type http://77.250.13.83 into the firefox, it returns an error message. The one it just gave me was: The server under 77.250.13.83 takes too long to post an answer. I guess, this also has to do with the setup of my home environment. The ADSL line from the (tv-cable) modem goes into a wireless router, one line from there enters the mac mini and my laptop is connected wireless.

    Sorry Util, of course you are not my personal utility and you shouldn't feel obliged. Thank you again for your kind reply.
      When you go to whatismyip.com it will give you the IP of your ADSL connection, not your computers. You will get the same address for both your laptop and your mini if you try that. To see a computer's local ip you will have to look in your Control Panel, or type ifconfig in a command line terminal (the command is ifconfig on Mac/Linux and ipconfig in Windows). Then you will have the local network address for your computer. Sorry if I'm just telling you stuff you already know, but I wanted to make sure.

      You will need to configure the firewall on your router to allow http access from outside connections. Use NAT (network address translation) to put HTTP traffic (port 80) through to the local address of your mac mini. You should set it up so that the mini is always assigned the same IP address, it should be under DHCP settings on your router configuration. Once you configure the firewall properly you may be able to use the 77.250.13.83 address to reach your mini's website even from within your network, but I can't remember the exact router option that is needed to do that kind of thing. I think it may just be called loopback.

      I can't remember what the default firewall options were on my own mac (I'm now running Ubuntu on it anyway), but you should also try to access the mini from your laptop while connected to the same network to make sure that the mini is allowing HTTP connections through its own firewall. There are options to allow different kinds of networking through the Mac's firewall in the Control Panel, you should have a look at them.
        Thank you, blues. No, you are not telling me things I know. In fact, this is probably the point where I got lost so many times in the past. When I now browse through my router settings and books again, things start to make sense. I hesitate to try out all the suggested changes yet, but I'll due that soon. I also have about a hundred new questions now, but let me do my own homework first.

        Allright then, just one more tiny question. You mentioned the ifconfig/ipconfig. My laptop is an Eee PC with its original Xandros Linux, but that hasn't got neither. Doing an apt-get attempt terminates with a message that the package couldn't be found. Is there an alternative?

      Make sure to read the Terms of Service for your provider. Few of them, if any, allow users to run websites from their home machines/connections. If they don't, you could probably do it ethically if your bandwidth was going to be low or the usage was chiefly personal but if your account got suspended you might be out a lot of time and effort and have to start over with a new provider or a VPS.

      These guys are in the US but I had a very good 2-year experience with them on a VPS account: JohnCompanies. If I needed one again, I'd go back to them in a second.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725749]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found