cannot open a local file with .php ext.

Asked by Chip W

I want to install gallery2 manually, the instruction say to open index.php stored in the extracted files folder. So I browser to the file - File/Open File/Opt/Lampp/htdocs/gallery2/install.php - and firefox asks me how to handle it or to download the file. I have no problem with all kinds of php files on the web, so why this problem with local files?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firefox-3.0 Edit question
Assignee:
No assignee Edit question
Solved by:
Guillermo Belli
Solved:
Last query:
Last reply:
Revision history for this message
Guillermo Belli (glock24) said :
#1

In order to process a .php file you need a running Apache/PHP setup; if not, the file will be treated as a regular text file.

Revision history for this message
Best Guillermo Belli (glock24) said :
#2

Also, you need to load the .php file trough the http server (eg: http//mywebserver/myphpfile.php), not from the "open file" dialong in yourweb browser.

Revision history for this message
Chip W (chip-wiegand) said :
#3

Guillermo Belli wrote:
> Your question #74567 on firefox-3.0 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/firefox-3.0/+question/74567
>
> Guillermo Belli proposed the following answer:
> Also, you need to load the .php file trough the http server (eg:
> http//mywebserver/myphpfile.php), not from the "open file" dialong in
> yourweb browser.

Of course, dummy me, I knew that (been a few years since I've played
with this stuff).
Thanks,
Chip

Revision history for this message
Chip W (chip-wiegand) said :
#4

Thanks Guillermo Belli, that solved my question.