Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
-1
rated 0 times [  -1] [ 0]  / answers: 1 / hits: 352  / 1 Year ago, mon, may 8, 2023, 2:42:56

I installed LAMPP a couple of weeks ago. Everything works fine when it comes to html files, but when I try to open a php file, the browser asks me where to download it. :/



I tried with my php files, and I also made a test.php which calls phpinfo() with no results. localhost/xampp and localhost/ also ask me for download location.



I added the following line to httpd.conf:



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


But still no results. What could be wrong?


More From » php

 Answers
7

LAMPP will not work perfectly on Ubuntu.



You should try



sudo apt-get install apache2 php5 apache2-php


and then you have a PHP enabled server!


[#31390] Monday, May 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
mouedi questions
Mon, Mar 28, 22, 20:06, 2 Years ago
Sat, Dec 3, 22, 15:04, 1 Year ago
Thu, Mar 10, 22, 05:12, 2 Years ago
Wed, Jul 20, 22, 15:05, 2 Years ago
;