WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running ubuntu 10.04 desktop, php5.3, and wordpress 3.2.1. I copied the wordpress directory to /var/www/sitename/blog. I have set up mysql, and edited wp-config.php appropriately. But when I navigate to http://localhost/sitename/blog/wp-admin/install.php, I am only offered to save or download the install.php file. I can run php scripts in any /var/www/ directory, including /var/www/site/blog/wp-admin/.

I have been searching for a solution, but have not found anything relevant. What do I need to do in order to make the installation run?

share|improve this question

Two things I would try:

  1. Create a test.php file and only put <?php phpinfo(); ?> in it.

  2. If that doesn't work I would create an .htaccess file and put:

    AddType application/x-httpd-php .php .htm .html

    AddHandler x-httpd-php .php .htm .html

When you are asked to download a php file, it usually means that php isn't working.

share|improve this answer

This was driving me a little bit nuts as well, so I'm commenting here to populate the google with an answer to it.

Rename install.php to something else. I believe this to be a caching issue from trying to run install.php before php was properly installed, but I'm not sure.

In any case, renaming install.php to iinstall.php worked fine for me.

(So did moving wordpress to a different directory)

share|improve this answer
You are a god. Thanks – Tyler Feb 29 '12 at 3:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.