Webservers

How would you set up a windows computer to use Apache, php, mysql, and etc…, and make it become a webserver also?

I’ve used phpdev, which includes all the above and then some, but I’ve never been able to have apache run my stuff from my computer publicly.

*Originally posted by Raven_Writer *
**How would you set up a windows computer to use Apache, php, mysql, and etc…, and make it become a webserver also?

I’ve used phpdev, which includes all the above and then some, but I’ve never been able to have apache run my stuff from my computer publicly. **

Go to

http://www.mysql.com

Download the appropriate files, read the appropriate installation instructions, do what they say, and then you have yourself a web server. :slight_smile:

*Originally posted by Brandon Martus *
**Go to

http://www.apache.org
http://www.mysql.com
http://www.php.net

Download the appropriate files, read the appropriate installation instructions, do what they say, and then you have yourself a web server. :slight_smile: **

Thank you. I’ll post back and say how it went.

im not sure if you wanted this to be a testing server or an actual webserver so punch me in the face if im stupid :stuck_out_tongue:

to set it up as a local testing server you need to set the ServerName field in your apache config file to 127.0.0.1 (or localhost)

to have it accessable to everyone else on the web you would need to change ServerName to your ip address which can be found using ipconfig in a dos prompt of you choice.

oh, and i suggest getting apache 1.3 as apache 2.0 has some problems with php. while there is versions for 2.0 they are buggy and kinda hard to configure.

hope i helped in any way possible. :slight_smile:

*Originally posted by Trashed20 *
**im not sure if you wanted this to be a testing server or an actual webserver so punch me in the face if im stupid :stuck_out_tongue:

to set it up as a local testing server you need to set the ServerName field in your apache config file to 127.0.0.1 (or localhost)

to have it accessable to everyone else on the web you would need to change ServerName to your ip address which can be found using ipconfig in a dos prompt of you choice.

oh, and i suggest getting apache 1.3 as apache 2.0 has some problems with php. while there is versions for 2.0 they are buggy and kinda hard to configure.

hope i helped in any way possible. :slight_smile: **

an actual webserver is what i’m looking for. I am currently using phpdev w/ apache v1.3.27. It includes mysql, php, apache, and everything.

I installed a server on my desktop using all the files downloaded individually. Took me about 3 hours to get set up right… on my laptop, I found a program called “FoxServ” that installs and configures everything for you in about 5 minutes. Check this program out, and look for others that do the same…

http://www.foxserv.net/portal.php

*Originally posted by AJ Quick *
**I installed a server on my desktop using all the files downloaded individually. Took me about 3 hours to get set up right… on my laptop, I found a program called “FoxServ” that installs and configures everything for you in about 5 minutes. Check this program out, and look for others that do the same…

http://www.foxserv.net/portal.php **

I’m trying it out right now (DSL is god!!!). I’m downloading it right now, and when it’s done, I’ll check it all out.

Edit:

Well, I have it installed. But no one besides me can view it still ( test it here and please tell me what u see / what happens: http://php-test.homeunix.com/ )

*Originally posted by Raven_Writer *
**[Edit] Well, I have it installed. But no one besides me can view it still ( test it here and please tell me what u see / what happens: http://php-test.homeunix.com/ ) [/edit] **
“The page cannot be displayed” Perhaps you need to wait a day for DNS updates?

How hard is it to do this sort of thing? I’d really like to run my own web server. I have cable modem for my internet connection. If you’d let me know all of what is involved in this I’d really appreciate it.

*Originally posted by sanddrag *
**“The page cannot be displayed” Perhaps you need to wait a day for DNS updates?

How hard is it to do this sort of thing? I’d really like to run my own web server. I have cable modem for my internet connection. If you’d let me know all of what is involved in this I’d really appreciate it. **

Maybe…I’m going through dyndns.org by the way.

For me, as you may have realized, it’s a big pain in the arse.

I’ve got a 1.5 meg DSL connection, which is pretty good.

Download the stuff from the links brandon gave, and try to set it up yourself, it’s all I can say. Chances are that I’m dead wrong on this point.

Hmm. Make sure you have a line like this:
ServerName php-test.homeunix.com

and

ServerType standalone

…in your httpd.conf file.

Also, you need to restart it after changing the conf file, if you didn’t know.

*Originally posted by evulish *
**Hmm. Make sure you have a line like this:
ServerName php-test.homeunix.com

and

ServerType standalone

…in your httpd.conf file.

Also, you need to restart it after changing the conf file, if you didn’t know. **

Ok, thanks.

yea, I knew about restarting apache after (after like, 20 times of confusion).

Thanks again

Edit:

It should work now. The page should just say hi!

It’s ‘forbidden.’ Hmm. Not totally positive how to fix that on a Windows system without permissions. Make sure you have your DocumentRoot set correctly.

*Originally posted by evulish *
**It’s ‘forbidden.’ Hmm. Not totally positive how to fix that on a Windows system without permissions. Make sure you have your DocumentRoot set correctly. **

What should it be?

DocumentRoot “C:\path\ o\webpage”

No trailing slashes, either (and yes, there are supposed to be two)

*Originally posted by evulish *
**DocumentRoot “C:\path\ o\webpage”

No trailing slashes, either (and yes, there are supposed to be two) **

Ok, thank you.

I’ll try that in a bit

Edit:

I did that, and hopefully it works now

*Originally posted by Raven_Writer *
**How would you set up a windows computer to use Apache, php, mysql, and etc…, and make it become a webserver also?

I’ve used phpdev, which includes all the above and then some, but I’ve never been able to have apache run my stuff from my computer publicly. **

A) Wipe your hard disk
B) Installc FreeBSD
C) Marvel at the effervescent power of two tone command line happiness.

–Petey

*Originally posted by Petey *
**A) Wipe your hard disk
B) Installc FreeBSD
C) Marvel at the effervescent power of two tone command line happiness.

–Petey **

I would like to state that before, anyone else says to install a server o/s like freebsd, or unix, I am not allowed to. This is not my computer, and my parents won’t let me install Linux even, which is why I’m screwed on this webserver issue.

pfffft get win 2k3 web server…woohoo iis 6.0 & .NET!!!

win 2k3 server… that would be total ownage… If u have DSL / cable note … ur IP address is probally dynamic. which mean everytime you turn your comp off u get new ip address… I just use my apache for testing new site layouts, as a DL mirror for WHSGG, and holding school projects incase one of our schools comps desides the floppy or zip disk is corrupted … which happens 2x a semister.
NOTE: Also dont try apache on winME my friend did and nada happened.
NOTE2: You may have to set your router to enable http server. Which may be under virtural server settings or something with the word server in it… It varies from router to router…

As of now, it’s “Forbidden” meaning you don’t have a DirectoryIndex:

<IfModule mod_dir.c>
    DirectoryIndex **index.html**
</IfModule>

replace index.html with whatever you want (i.e. main.html or start.html

Keep in mind that for EVERY directory you need that file in it or you will get either Forbidden or the Folder Contents.

To give open access (Which will show Folder Contents to folders without an DirectoryIndex file):
If I’m not mistaken:

Options +Indexes FollowSymLinks MultiViews

is the default value.
Remove the + so that it now reads:

Options Indexes FollowSymLinks MultiViews

This will allow directory browsing for folders without the DirectoryIndex