Ok people, it's now again time for the newbie question of the day. First of all, let me reassure you, I have indeed read the manual ( I printed all 1800+ pages of it off and binded it in 2 binders lol ), and have thoroughly inspected the Install.txt file included with php 4.2.3.
Here is the breakdown:
Using:
Windows 2000 Advanced Server
PHP 4.2.3
Apache HTTP 1.3.26
Now, what I did was ( and yes, this is all from memory, as I'm not at home and only at work ), I reformatted my pc and installed windows 2000 advanced server. Then, I installed Apache 1.3.26 ( I did not download v2.0 as everytime I tried to find the download, I could only find the "please compile me" version, whcih I did now want to do.. ).
After installing these, I then downloaded PHP 4.2.3, and extracted it to my C:\PHP. The readme file says that I need to set paths in the php.ini-dist, and so I did. I set the paths that it asked for, renamed php.ini-dist to php.ini, and copied the php.ini to my C:\winnt\ directory. I then copied all my DLL's in c:\php\dlls\ directly to my c:\winnt\system32\ directory.
After doing this, I read on. It says that I then should just use PHP as a module for Apache, which I assume is correct. So, I added the 3 lines of code into Apache Configuration ( yes, I stopped the server before doing this ).
After just pasting the 3 lines into the file at the first given spot ( since it does not even start to explain where in the hell you are to dump these 3 lines at ), I started Apache up, and it gave me a message saying something like "Module PHP has already been started... Skipping".
So, I re-read the Apache Config Page, and found that I should put the LoadModule statement with the other LoadModule Statements, and the AddModule Statements on down the page with the others.
Upon doing this, I no longer got this message when Apache started up, and instead just got "Server Starting".
"GREAT!" I thought to myself, "it's Finally gonna work!".
So, I rushed on over to my c:\inetpub\wwwroot\ directory, and I created a page with the following code:
Code:
<html>
<head><title>Example 101</title></head>
<body>
<?php echo "HELLO!!!!!!!!!!!!!!!"; ?>
</body>
</html>
But alas, it was only a false insight... When I load this page, it will display the title "Example 101" at the top of the page, but the entire page is blank, showing nothing as an output. In other words, I did not get Hello!!!!!!!!! posted nicely on the page...
This discouraged me. So, I copied the index.php page that I created to every-single-directory on my c:. And when I say every single page, I mean just that. I went through every directory on my winnt directory ( including the root ), InetPub Directory, program files, desktop, Apache Group\Apache Directory, and exhausted myself just KNOWING that it was I was putting it in the incorrect directory... But I wasn't.
So, I follow the steps again from the Insall.txt file, making sure I did step by step what it said. Still, same result.
So, I figure "must be a problem with win2k", so, I say "hell with it", and nuke the machine, re-install win2k, apache, and commence to re-installing php, and damnit if it didn't have the same result.
At this point, I was getting frustrated. So, instead of just using the php.ini-dist file like the install.txt and the php manual says, I instead did what it also recommended, and used the php.ini-recommended file. I followed the same steps as before, copied it to the directory, prayed, and got slapped in the face one more time.
I then started looking at the extensions, thinking it was something to do with that in the PHP.INI file. So, I uncomment every-single extension ( except for the mysql and odbc as it is not needed ), thinking this was the issue. Rebooted win2k, re-started apache ( just in case! ), tried, held my breath, and nothing...
So, I checked to make sure the LoadModule string was pointing to the correct directory, and it was...
I then made sure also that I did put the php4apache.dll in the apache directory ( all directories actually, even system32 ), but did not help.
There was also a php4 file ( can't remember the exact name ), but it was also a dll, that wanted you to put it in the root of winnt, maybe it was system32, can't remember, but, yes, I did that as well LOL.
Another problem, that may/maynot be the cause, is even though I have Apache Started, when I type http://localhost/index.php in IE, it just promts me if I want to connect to the internet or work offline. I choose work offline, and then it gives me the message "This page cannot be displayed".
I then tried to [url]ftp://localhost[/url] and I then get the message "The computer is not connected to the network".
Is this a problem with my setup, my apache server, or my win2k server?
I have tried uninstalling the Win2k Web Server Component, but that does not help. Tried re-installnig, and that does not help.
I have made NO OTHER server configurations....
.... Basically, i'm getting the same problem. Blank page. If someone could help me out here, tell me where I'm screwing up, or tell me what I need to try differently, that would be great...
Sorry for the long write up, but wanted to ensure everyone that I am following the instructions, just something isn't working right....
Please help me!... begs on hands and knees
Thanks :eek: