PDA

View Full Version : Problems with 4.1.1 binaries and Apache 1.3.23


TECK
02-24-2002, 10:18 PM
first i want to apologise for posting this thread here, and not in the PHP forum, but i know that PPN and FireFly look first here... ;)
PPN, i know you run a localhost on your pc (or anyone expert on this area), i need your help configuring again my server.

here it is the tale:
once upon a time, nakkid decided to reformat his pc and install again winXP... ok let's get serious... ;)

01. i reformated the pc and installed winXP pro

02. downloaded Apache 1.3.23 server .msi file and install it. configured succesfully the httpd.conf file and got an Syntax OK when i ran a test config.

03. downloaded the PHP 4.1.1 binaries and ran the install.

04. made sure the MSVCRT.DLL is in /system32

05. copied "php.ini-dist" to c:\windows and rename it "php.ini"

06. oppened again the httpd.conf file and added the following lines:
(under LoadModule)
-------------------------------------
LoadModule php4_module "c:/program files/php/sapi/php4apache.dll"

(under AddModule)
-------------------------------------
AddModule mod_php4.c

(under AddType)
-------------------------------------
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

07. did a test config and got again the Syntax OK.

08. made a index.php file with the content:<HTML>
<HEAD>
<TITLE>PHP Version Information</TITLE>
</HEAD>
<BODY>
<?php phpinfo(); ?>
</BODY>
</HTML> and place it in C:\Program Files\Apache Group\Apache\htdocs

09. deleted all C:\Program Files\Apache Group\Apache\htdocs folder contents (except the index.php ;))

10. restarted the server.

now, when i try to load the http://localhost i get to view the index.php file but it will not load it. what did i do wrong?

i tested individually the apache and php install, all ok, got the classic zillion long printout that rolls down at the prompt. let me know where i went bad. thanks.

TECK
02-24-2002, 10:41 PM
whohoooooo!!!!!! i got it working, thanks guys :D

TECK
02-24-2002, 10:56 PM
hmmmm, i still have a problem. if i refresh, it doesnt go automatically to index.php file posted as attachment above. any idea why? but is listed there... if i click on it, it will show the info. thanks alot for your help :)

TECK
02-24-2002, 11:16 PM
the syntax... ok.

TECK
02-25-2002, 12:06 AM
the mySql check.. ok

TECK
02-25-2002, 12:06 AM
the mySql report... ok

FWC
02-25-2002, 02:26 AM
Originally posted by nakkid
hmmmm, i still have a problem. if i refresh, it doesnt go automatically to index.php file posted as attachment above. any idea why? but is listed there... if i click on it, it will show the info. thanks alot for your help :) Did you add index.php to Module mod_dir.c?

Admin
02-25-2002, 04:55 AM
Bahh use IIS. :D

And Win2k what's up with this WinXP...

Oh, and I do look in the PHP forum first. ;)

TECK
02-25-2002, 06:27 AM
FWC.. i dont have the module mod_dir.c... hmm i had previously configured my pc by one of my friends and since i upgraded to winXP i only have problems..

but winXP is alot more stable and interactive. is here to stay for me. i have to find a way to get it back on track. it's not a rush anyway. so if you are kind enough to give me an extra tip, you can post it here.. thanks.

Admin
02-25-2002, 06:35 AM
Add this to your httpd.conf (be sure to restart Apache):
DirectoryIndex index.shtml index.shtm index.php index.php3 index.phtml index.php4 index.html index.htm default.htm default.html home.html

TECK
02-25-2002, 06:49 AM
that did the trick. thanks alot.

FWC
02-25-2002, 05:00 PM
Originally posted by FireFly
Add this to your httpd.conf (be sure to restart Apache):
DirectoryIndex index.shtml index.shtm index.php index.php3 index.phtml index.php4 index.html index.htm default.htm default.html home.html Hey, that's what I said. Oh well... :)

M.Smith
02-25-2002, 07:16 PM
if you are running apache 1.3.23 then could you atatch your httpd.conf?
i cant seem to get it to work so your file would save me all the fuss.

TECK
02-26-2002, 04:13 AM
just a little problem with unlink. i will start a separate thread for this....
done. read this:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=35550

TECK
02-26-2002, 07:18 AM
Originally posted by FWC
Hey, that's what I said. Oh well... :) i know.. i know. i'm a moron sometimes.. i didnt understood.. :) thanks FWC

TECK
02-26-2002, 07:21 AM
Originally posted by Sn2
if you are running apache 1.3.23 then could you atatch your httpd.conf?
i cant seem to get it to work so your file would save me all the fuss. http://www.thesitewizard.com/archive/apache.shtml

M.Smith
02-26-2002, 10:00 AM
nice one! you are now one of the peole who i fully respect

M.Smith
02-26-2002, 10:33 AM
damn, it aint workin.
ill just try a different method.

TECK
02-26-2002, 10:45 PM
sorry to hear this. that's what i used and is working great for me.

M.Smith
02-27-2002, 05:33 AM
i got most of it workin but when i tell it to open a php file it tries to download it:(

TECK
02-27-2002, 05:47 AM
scroll up and read firefly's post.