can't open .php5 files (show text)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

can't open .php5 files (show text)

Postby ajog » 06. December 2010 14:59

Hello,

I've installed WAMPP 1.7.3 and works fine, but a can't open .php5 files (show text).

I need help. Thanks in advance.

ajog
ajog
 
Posts: 3
Joined: 06. December 2010 14:37

Re: can't open .php5 files (show text)

Postby Nobbie » 06. December 2010 17:55

WAMPP or XAMPP? (It's not the same!)
Nobbie
 
Posts: 8768
Joined: 09. March 2008 13:04

Re: can't open .php5 files (show text)

Postby ajog » 06. December 2010 18:45

I'm sorry,

I have installed "apache friends - xampp for windows" version 1.7.3

Thanks.

ajog
ajog
 
Posts: 3
Joined: 06. December 2010 14:37

Re: can't open .php5 files (show text)

Postby Altrea » 06. December 2010 22:32

Apache can't know, that this filetype (.php5) had to be parsed by the php parser first.

The easiest way will be to rename your files from .php5 to .php

The other way is to define, that .php5 files should be parsed too:
- Open your file \xampp\apache\conf\extra\httpd-xampp.conf
- Search for "<FilesMatch "\.php$">" (~line 22) and change this line to
Code: Select all
<FilesMatch "\.(php|php5)$">

- Search for "AddType text/html .php .phps" (~line 46) and change this line to
Code: Select all
AddType text/html .php .phps .php5


If you want to use PHP as CGI Module in the future, you have to do the first change in ~line 36 too.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: can't open .php5 files (show text)

Postby ajog » 06. December 2010 22:57

Hello Altrea.

I accepted the second suggestion and changed the \xampp\apache\conf\extra\httpd-xampp.conf and was working.

Thanks for help.

Regards.

ajog
ajog
 
Posts: 3
Joined: 06. December 2010 14:37

Re: can't open .php5 files (show text)

Postby Altrea » 06. December 2010 23:00

You're welcome.

Have fun with XAMPP and all the stuff :D
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests