0

I created a virtual host in apache2 (LAMP) as shown below and the php files are downloaded by the browser instead of processed by apache. I created an HTML file and it worked.

/var/www/myvirtualhost.com/public_html

ServerAdmin webmaster@localhost.com

DocumentRoot /var/www/myvirtualhost/public_html/

 ServerName myvistualhost

abcy122
  • 123
  • 1
  • 3
  • 12

1 Answers1

1

Check this question out. It's for Apache on Ubuntu, and you don't specify what system you are on, but maybe you can get a tip from there.

Basically it describe how to install the PHP module for Apache, which is probably not installed if PHP-files are downloaded.

Community
  • 1
  • 1
pusle
  • 1,393
  • 14
  • 18