+ Reply to Thread
Results 1 to 3 of 3

Thread: vps help - Apache 2 not parsing php

  1. #1
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    vps help - Apache 2 not parsing php

    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 by allofus; 07-19-2009 at 09:26 PM. Reason: Automerged Doublepost

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,152

    Re: vps help - Apache 2 not parsing php

    How did you compile PHP?
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,152

    Re: vps help - Apache 2 not parsing php

    Fixed it before I replied :P Glad it's sorted.
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

+ Reply to Thread

Similar Threads

  1. [PHP] Basics of PHP Scripting
    By jeeter in forum Tutorials
    Replies: 21
    Last Post: 02-03-2010, 04:29 PM
  2. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  3. Enabling apache and php in addon domains ?
    By beauvafr in forum Free Hosting
    Replies: 3
    Last Post: 08-23-2007, 08:30 AM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers