We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
  • 4
What is PHP?; Are they related?
Topic Started: Dec 4 2005, 03:22 AM (2,015 Views)
Tom.
Member
[ *  *  *  * ]
I downloaded Apache HTTP server and extracted all the files from the .tar but I can't seem to find how to install the program, I can't find .exe program anywhere.
Offline Profile Quote Post Goto Top
 
ABeakyboy
Member Avatar
Computer wiz and freak
[ *  * ]
Yes, well if you are running linux, you will have to recompile the source I believe.

If you are running Windows, then you didn't download the binary distribution. Go back to the web site and download the windows binaries.
Offline Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
Ok, thanks for that.
Offline Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
Qj
December 5, 2005 05:55 AM
To host a website, you only need a webserver program running.
Apache would be the best choise.
At http://httpd.apache.org/download.cgi, you can download a Apache Installer.

Once that is done, you can go to to via http://localhost/ (Only if you are on your PC) or http://[your.ip]/. (If you have a router, you will need to forward port 80.)

Now, you can host your own websites on you own PC.
To get a domain name, you will need to register one and forward it to your IP.
There is lots of info on that here.

To run PHP and MySQL, you will need to install them.
Info on that can be found here.

Ok, So all I need is apache? All I want to do at the moment is host some web pages.
Offline Profile Quote Post Goto Top
 
ABeakyboy
Member Avatar
Computer wiz and freak
[ *  * ]
If you are looking to host web pages, all you need is Apache. You only need PHP or MySQL if you want to use them. If you're not sure if you need PHP, check if you have .php files that you want to serve from your web server. If you don't have any .php files, Apache will do fine.

Apache is the web server. Php is just the interpreter for php codes. If you don't have php codes, you don't need it.

When you set up Apache, make sure you configure the web server. When I set it up on my computer, I turned off a bunch of virtual directories. You also should disable the directory listings feature. (In Apache, the default behavior is that if a person navigates to a folder being served and there is no Index.html, it will show all the files in the directory, which is unsecure in my opinion. That is, if I remember correctly, it does)

Hope this help you.
Offline Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
Excellent, I won't be using php then, just going to host web pages for the time being. I already have set up a index.html in my directory, but I have a little problem.

If I go to http://localhost it will show up what ever is on the index page, but what is the real url for this? I can access but others cannot.

I hope that's not to confusing, as I make no sense.
Offline Profile Quote Post Goto Top
 
Sani
Member Avatar
Member
[ *  *  *  *  * ]
Your ip address would be url you need to give your friends..

http://www.whatismyip.com/

;)
Online Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
So would it just be http://my ip address?
Offline Profile Quote Post Goto Top
 
Sani
Member Avatar
Member
[ *  *  *  *  * ]
Yeap, Just like http://100.001.100.001 :)

Note that the above is just some random numbers I put.. It doesnt go anywhere...



Or does it? :ph34r:
Online Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
Ok, thanks for your help, but i've tried this and when I click go it infact takes me to my ISP account.

Which in away makes sense.
Offline Profile Quote Post Goto Top
 
ABeakyboy
Member Avatar
Computer wiz and freak
[ *  * ]
Well, first off, is your computer directly connected to the internet? That is, if you run IP config (click start then run. Enter "cmd" if you are running 2000/XP or "command" if you are running 98/ME. Type "ipconfig" and press enter) does the IP address reported match the one found by www.whatsmyip.com? If it doesn't, you will have to forward port 80 in your router (if you have one) to your computer. If you don't have one, then you might have a broadband modem that's acting like a router.


Make sure your firewall is not blocking port 80.


You should also be warned that every time you connect to the internet, your IP address will be different unless you buy a static IP address. I'm assuming you have some sort of always-on connection, so you probably aren't connecting/disconecting all the time, but your IP address will still probably change every so often.

I've overcome this problem by using a free service like www.dyndns.org. My linksys router can interface with that site's service automatically, so it automatically keeps my IP address updated and referring to something like http://somename.dyndns.org
Offline Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
One again thank you so much for your help. I have a DSL connection with a static IP address, I even checked to make sure it was the same IP today and sure was.

I use to have a router connected, but it only had 4 ports, I don't even have any settings to change the router, it just came with a cd to enable the router.

I have Windows Xp and I typed in "cmd" but all that came up was the following:

Code:
 
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>


It doesn't show me an IP address. I pretty much spent all night contemplating on how to fix this, I've searched around but can't find my answers.
Offline Profile Quote Post Goto Top
 
Rory
Member Avatar
i;m a mess
[ *  *  *  *  *  *  * ]
to find your IP address from the CMD window, type:

Code:
 
ipconfig /all
Offline Profile Quote Post Goto Top
 
ABeakyboy
Member Avatar
Computer wiz and freak
[ *  * ]
Rory
December 7, 2005 06:57 PM
to find your IP address from the CMD window, type:

Code:
 
ipconfig /all

yeah that'd be key >_<


Edit:

Most routers can be accessed by typing 192.168.1.1 in your browser's address bar and hitting enter. If that doesn't bring up a password screen, try 192.168.0.1 also.
Offline Profile Quote Post Goto Top
 
Tom.
Member
[ *  *  *  * ]
Thank you both Rory and ABeakyboy.

Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2
  • 4