vps help - Apache 2 not parsing php

allofus

New Member
Messages
183
Reaction score
2
Points
0
Hi,

I have configured my vps to carry a subdomain.

http://shoutcast.4allofus.com

When I visit
http://shoutcast.4allofus.com/index.html

it works

http://shoutcast.4allofus.com/index.php

tries to download the file instead of parsing it in the browser.



What have I done wrong please?

Code:
#
# shoutcast.4allofus.com (/etc/apache2/sites-available/shoutcast.4allofus.com)
#
<VirtualHost *>
ServerAdmin webmaster@4allofus.com
ServerName shoutcast.4allofus.com
ServerAlias shoutcast.4allofus.com

# Indexes + Directory Root.
DirectoryIndex index.php index.html index.htm
DocumentRoot /home/allofus/public_html/shoutcast.4allofus.com/
# CGI Directory
ScriptAlias /cgi-bin/ /home/allofus/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>

# Logfiles
ErrorLog /home/allofus/logs/error.log
CustomLog /home/allofus/logs/access.log combined
</VirtualHost>
Edit:
nvm I fixed it

Code:
apt-get install php5
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Fixed it before I replied :p Glad it's sorted.
 
Top