Jump to content

2 sites on Apache 2 with PHP, but only one works with PHP


Recommended Posts

I just upgraded from Ubuntu 6.10 to 7.4.

Before the upgrade my two sites, http://mark.phillk.net and http://www.greatwhitedata.com were working.

 

Now only http://mark.phillk.net works with PHP. I know greatwhitedata.com works with regular html, here's a sample.

http://www.greatwhitedata.com/testPage.htm

I'm using sites-enabled and sites-available just as I was before.

 

Here are some of my configs:

mark@linux800:/etc/apache2/conf.d$ more virtual.conf

#

# We're running multiple virtual hosts.

#

NameVirtualHost *

 

mark@linux800:/etc/apache2/sites-enabled$ ls

000-default mark.phillk.net mark.phillk.net~ www.greatwhitedata.com

 

mark@linux800:/etc/apache2/sites-enabled$ more mark.phillk.net

#

# mark.phillk.net (/etc/apache2/sites-available/mark.phillk.net)

#

<VirtualHost *>

ServerAdmin qwert231@yahoo.com

ServerName mark.phillk.net

ServerAlias mark.phillk.net

 

# Indexes + Directory Root.

DirectoryIndex index.html index.php index.htm

DocumentRoot /web/

 

# CGI Directory

# ScriptAlias /cgi-bin/ /web/cgi-bin/

# <Location /cgi-bin>

# Options +ExecCGI

# </Location>

 

<Location /GreatWhite>

Order Deny,Allow

Deny from all

</Location>

# Logfiles

ErrorLog /home/www/web/logs/error.log

CustomLog /home/www/web/logs/access.log combined

</VirtualHost>

 

mark@linux800:/etc/apache2/sites-enabled$ more www.greatwhitedata.com

#

# www.greatwhitedata.com (/etc/apache2/sites-available/www.greatwhitedata.com)

#

<VirtualHost *>

ServerAdmin qwert231@yahoo.com

ServerName www.greatwhitedata.com

ServerAlias greatwhitedata.com

 

# Indexes + Directory Root.

DirectoryIndex index.php

DocumentRoot /web/GreatWhite/

 

<Directory /web/GreatWhite/>

Options Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

Allow from all

DirectoryIndex index.html index.php index.htm

</Directory>

 

# Logfiles

ErrorLog /home/www/GreatWhite/logs/error.log

CustomLog /home/www/GreatWhite/logs/access.log combined

</VirtualHost>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.