mkenyon2 Posted December 15, 2007 Share Posted December 15, 2007 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> Link to comment https://forums.phpfreaks.com/topic/81828-2-sites-on-apache-2-with-php-but-only-one-works-with-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.