Page 1 of 1

can't open .php5 files (show text)

PostPosted: 06. December 2010 14:59
by ajog
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

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

PostPosted: 06. December 2010 17:55
by Nobbie
WAMPP or XAMPP? (It's not the same!)

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

PostPosted: 06. December 2010 18:45
by ajog
I'm sorry,

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

Thanks.

ajog

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

PostPosted: 06. December 2010 22:32
by Altrea
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.

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

PostPosted: 06. December 2010 22:57
by ajog
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

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

PostPosted: 06. December 2010 23:00
by Altrea
You're welcome.

Have fun with XAMPP and all the stuff :D