I have installed Wordpress by downloading the latest version of Wordpress, installing WampServer (64 bit), setting up the DB, and successfully got through the famous 5-minute installation. This all worked. This is all on localhost.
Now, however, I want to work on a different website that was sent to me as a zip file. This zip file included the wordpress folder and the SQL file to import the DB stuff. I pasted in the wordpress folder as "wordpress2" into the www directory and imported the database in through PHPMyAdmin. I edited the wp-config.php file to use the imported database name, root, and the password for root. However, when I go to localhost and select wordpress2 from the list of projects, Chrome simply downloads a file while showing me a "This site can't be reached" page. What do I need to do to make this work? If it's not possible to have multiple projects within the www folder, that's ok, I just need to get this one site working so that I can work on it.
Edit Ok so I think I've found the problem. This site was given to me by a client to work on. Inside their .htaccess file, it looks like the below. I think the problem is that localhost can't find index.php (or any file, for that matter) because it is getting "porterp6" added onto the URL. How can I temporarily modify this and still have it working for when I send this back to the client?
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteBase /~porterp6/
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~porterp6/index.php [L]
</IfModule>
# END WordPress
AddHandler
directive may be causing an issue, typically when php files get downloaded it's because the server doesn't know what to do with that file extension.