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 [email protected]

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 [email protected]

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.