Bunch of problems, please help quickly
| From: | George Krasselt | Date: | Sat, 17 Jan 2004 20:42:55 +0000 |
| Subject: | Bunch of problems, please help quickly | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12520@lists.php.net to get a copy of this message | ||
Nutshell: I have a windows2000/nt server (it's win2000, but the systemroot is c:\winnt)
Anyway, I'm trying to put apache and php on it. I downloaded the apache 1.3.29 version and
installed it, and added my virtual hosts, though it can't resolve any of my domain names.
Further more, it says php is running, yet when I access my page on the server, which is just a basic
page with a submit button which echo's out a string to test the php, it doesn't work.
My questions are further down if you'd like to skip ahead!
What I've done: (if anything is incorrect, PLEASE email me and let me know, this is my first
time, and I relaly don't know what I'm doing)
This is what I've done to my httpd.conf file under apache:
I've added 5 virtual hosts in this manner
<VirtualHost www.mydomain.com>
ServerName my.servername.com
DocumentRoot /directory with index.html
</VirtualHost>
I also added:
LoadModule php4_module c:/php/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
*******************************************************
my php.ini file has been copied to c:\winnt
my php4apache.dll and php4ts.dll are in c:\php, where my php.exe file is
I've done this to my php.ini file:
extension_dir = "c:\php" (do i need the quotes?)
doc_root = "c:\apache\htdocs" (same question)
browscap = c:\winnt\system32\inetsrv\browscap.ini
(though I don't know what PWS or IIS is)
I placed the "MIBS" folder in c:\usr\mibs, even though c:\usr didn't exsist, I
created it.
I downloaded and installed MDAC, and I didn't touch any extentions in php.ini.
***************************************************
My questions are as follows:
1. as far as my domain names picking up my index files on my servers. I registered the names and
pointed them to the DNS' at my hosting company, but when I type in the address I get a not
found thing. Does my index file need to be in a certain folder, other than what my virtual host
declares, or do I need to tell my hosting company what domain names I have so they can forward them
from the DNS to my server? I don't get how any of that works.
2. does my html page have to be some where in particular for the php to work, or possibly the
script? I'll place my code below, perhaps it's an error in the code.
When I run apache it says my domain names aren't recongized and it's "ignoring!"
and that "php is running..." and that's it. Someone please help... I just want to
start coding so I can build my sites, but I can't do that until I get this apache and php
recognition working!!! Below is my test code to see if php works on my machine:
"testphp.html"
<html>
<title>Georges order form</title>
<body>
<h1> George's Order form</h1>
<h4> order something, ya prick</h4>
<form action="c:\home\processorder.php" method= post>
<table border = 0>
<tr bgcolor=#cccccc>
<td width= 150> item</td>
<td width= 15> Quantity</td>
</tr>
<tr>
<td>Tires</td>
<td align="center"><input type="text" name="tireqty"
size="3" maxlength="3"></td>
</tr>
<tr>
<td>Oil</td>
<td align="center"><input type="text" name ="oilqty"
size="3" maxlength="3"></td>
</tr>
<tr>
<td>Spark Plugs</td>
<td align="center"><input type="text" name="sparkqty"
size="3" maxlength="3"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
value="submit order"></td>
</tr>
</table>
</form>
</body>
"processorder.php"
<html>
<head>
<title>George's Order form - results</title>
</head>
<body>
<h1>George's order form</h1>
<h2>Order results</h2>
<?php
echo '<p>order processed.</p>';
?>
</body>
</html>
I welcome all critiques!!!
George
---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes