Click to See Complete Forum and Search --> : problem


ziekte
07-23-2003, 12:28 PM
hello

first i installed apache 2.....
typed http://localhost and it said apache was running properly

then i installed php 4.2.2 from the windows binary

i a phpinfo.php file

<?php phpinfo(); ?>
and putted in my htdocs folder

when i want to open the file using ie it wants to download the phpinfo.php file instead of really opening it

what can i do??

thanks in advance



ps i use ie 6 and winxp home

stolzyboy
07-23-2003, 12:41 PM
you aren't going File-Open-Browse for the file, are you

go to http://localhost/phpinfo.php

ziekte
07-23-2003, 12:43 PM
no i am not
if i click your link my browser opens and the download popup pops up

thanks anyway

stolzyboy
07-23-2003, 12:45 PM
do you have this line in your httpd.conf

AddType application/x-httpd-php .php .php3

ziekte
07-23-2003, 12:46 PM
no i don't think so

where do i have to place it?

stolzyboy
07-23-2003, 12:47 PM
search for your httpd.conf, then search for other addtypes

and put it underneath those, then make sure and restart apache for the changes to take affect

ziekte
07-23-2003, 01:22 PM
i changed it, restarted apache
and still same problem

ziekte
07-23-2003, 01:33 PM
does this have to do something with my php itself

i installed it from the windows binary and did not do anything more

stolzyboy
07-23-2003, 01:41 PM
if you are truly green with this sort of stuff, i suggest you go here (http://www.foxserv.net) and download version 3.0 and run it, it will install Apache/PHP/MySQL/Perl/Python in one step

ziekte
07-23-2003, 02:39 PM
i think there is something rwon gwith my php itself

can anyone give an exact thing to do to make php working

(i do not do anything cuz i tought if you start apache php starts automticly too)

stolzyboy
07-23-2003, 03:48 PM
do you have this line in your httpd.conf

LoadModule php4_module C:\Path\to\the\dll\php4apache2.dll

ziekte
07-24-2003, 10:40 AM
when i now go to http://localhost

i recieve a list of all files in my folder

with phpinfo.php in it

when i click in phpinfo.php

it asks for downloading php

see attachment

stolzyboy
07-24-2003, 11:21 AM
hmmm... you got me baffled, maybe you should try the foxserv way and reinstall the whole works, it is not a difficult process, and the installer will do all the work/config for you and get it running

ziekte
07-24-2003, 11:47 AM
k now i receive blank pages
in place of download popups

that's a step further

stolzyboy
07-24-2003, 11:48 AM
what are you trying

ziekte
07-24-2003, 12:09 PM
i uninstalled all, installed foxserv (doesn't work -> same problem)

now i installed php and apache again
apache works

and same problem with php
it won't work

stolzyboy
07-24-2003, 01:55 PM
when you uninstalled, did you get rid of everything php/apache, all dlls, php.ini's, my.ini's, config files, everything, search for php and apache, there are likely some of these files hiding before you installed foxserv, i have installed foxserv on numerous machines, not cuz it's the best way to do it, but cuz it's fast and manageable

do you have any other webservers running like IIS, that is making things crazy

ziekte
07-24-2003, 01:57 PM
nothing at all running

i deleted really everything all dll's ini's,...

ziekte
07-25-2003, 09:42 AM
k i found whats wrong it's something with php4apache.dll

i added

### PHP

LoadModule php4_module C:/WWW/Php/sapi/php4apache.dll

to my httpd.conf

and apache wouldn't start anymore

it's the right location of php4apache.dll

stolzyboy
07-25-2003, 10:27 AM
did you install the cgi version of apache or the apache module

bmarlin
08-08-2003, 12:01 PM
PROBLEM SOLVED!!!

Make sure when you add those 3 lines of text to http.conf that you put it AFTER the LAST!! AddModule line

I noticed that when I did a test apache configuration I was getting an error that the module was already loaded so I searched for faq on that. I found that someone else had the same problem running this on win2k with apache.

Now the page runs automatically, also make sure you have the php.exe file set to allow everyone access.