Score:0

lampp installed,Can't open php by browser and it just download it

br flag

I have installed XAMPP on my ubuntu virtualdesktop,and i can successfully open html on my browser.But I found that when I want to open php by browser,it just ask me where to download it.

I have checked httpd.conf in apache2 but it just include this:


Alias /bitnami/ "/opt/lampp/apache2/htdocs/" Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/opt/lampp/apache2/htdocs"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all


I have searched some solutions ,someone change to add this:{DirectoryIndex index.html index.htm index.php},but i cant see it in my config. Also,it's no use to add :{AddType application/x-httpd-php .php} to my config. And I cant find answer on google for it has been forbidden,so i'm trying to ask you ,and i hope you won't be annoyed by a Chinese student's poor English. Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.