By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,547 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

Upgraded php, lost php file association

P: n/a
Hi,
I just upgraded my php but ran into a problem. Never seen this
before.

Somehow it seems I lost php file association. When I do a
http://localhost/something.php I get a prompt for dowload of a file.
I went to folder options, and changed file associations so that
".php" is associated with php interpreter, but still get the same
problem.

I am missing someting obvious. Can someone help. Thanks.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Upgraded...ict138694.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=463590
Jul 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Upgraded PHP from what version to what version? What OS? What webserver?

The fact that your web server (Apache, I presume) is trying to download your
..php files instead of interpreting them points to an Apache problem, not a
file association problem in Windows (I assume).

You must check your Apache httpd.conf file and check that the 'LoadModule'
entry is pointing to the right place.

For php 4 I use LoadModule php4_module f:/php4/sapi/php4apache2.dll

For php 5 I use LoadModule php5_module f:/php5/php5apache2.dll

HTH.

--
Tony Marston

http://www.tonymarston.net

"steve" <Us************@dbForumz.com> wrote in message
news:41**********@news.athenanews.com...
Hi,
I just upgraded my php but ran into a problem. Never seen this
before.

Somehow it seems I lost php file association. When I do a
http://localhost/something.php I get a prompt for dowload of a file.
I went to folder options, and changed file associations so that
".php" is associated with php interpreter, but still get the same
problem.

I am missing someting obvious. Can someone help. Thanks.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbForumz.com/PHP-Upgraded...ict138694.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=463590

Jul 17 '05 #2

P: n/a
"steve" wrote:
Hi,
I just upgraded my php but ran into a problem. Never seen this
before.

Somehow it seems I lost php file association. When I do a
http://localhost/something.php I get a prompt for dowload of a file.
I went to folder options, and changed file associations so that
".php" is associated with php interpreter, but still get the same
problem.

I am missing someting obvious. Can someone help. Thanks.


Problem solved. Uninstalled everything, and did a fresh install.
Everything is ok now.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Upgraded...ict138694.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=463685
Jul 17 '05 #3

P: n/a
steve wrote:
Problem solved. Uninstalled everything, and did a fresh install.


Ah, working the Windows way.

Regards,
Matthias
Jul 17 '05 #4

P: n/a
"Matthias Esken" wrote:
steve wrote:
Problem solved. Uninstalled everything, and did a fresh install.


Ah, working the Windows way.

Regards,
Matthias


Yes, Tony and Matthias. I should’ve provided more info. Apache on
Windows. Looks like it is very sensitive to reinstalls, and must be
uninstalled first.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Upgraded...ict138694.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=463929
Jul 17 '05 #5

P: n/a
.oO(steve)
Yes, Tony and Matthias. I should’ve provided more info. Apache on
Windows. Looks like it is very sensitive to reinstalls, and must be
uninstalled first.


Un-/re-installing something is the absolutely last possible measure and
in most cases _not_ necessary. Configuration errors can be fixed without
starting from scratch again.

Micha
Jul 17 '05 #6

P: n/a


steve wrote:
"steve" wrote:
> Hi,
> I just upgraded my php but ran into a problem. Never seen this
> before.
>
> Somehow it seems I lost php file association. When I do a
> http://localhost/something.php I get a prompt for dowload of a file.
> I went to folder options, and changed file associations so that
> ".php" is associated with php interpreter, but still get the same
> problem.
>
> I am missing someting obvious. Can someone help. Thanks.


Problem solved. Uninstalled everything, and did a fresh install.
Everything is ok now.

good good
i guess i am not so sure that problems can be solved but
glad everything is ok now
Jul 17 '05 #7

P: n/a
Michael Fesser wrote:
.oO(steve)
Apache on Windows. Looks like it is very sensitive to reinstalls,
and must be uninstalled first.


Un-/re-installing something is the absolutely last possible measure
and in most cases _not_ necessary. Configuration errors can be fixed
without starting from scratch again.


Erm, did you see the "for Windows" bit above? ;-)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.