Title: PHTML problems with localhost/wordpress
Last modified: August 19, 2016

---

# PHTML problems with localhost/wordpress

 *  Resolved [WebmistressM](https://wordpress.org/support/users/webmistressm/)
 * (@webmistressm)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/)
 * Im currently trying to install WordPress onto my own computer (Ubuntu Hardy Heron).
   I got all the way through the process with LAMP but now I get problems when accessing/
   localhost/wordpress to start installation:
 * Instead of the index page, I get a prompt asking me whether to open or save the
   phtml file. How do I get around this?
 * I did already try editing /etc/apache2/apache2.conf, adding the below lines to
   the bottom of the document:
 * AddType application/x-httpd-php .php .phtml
    AddType application/x-httpd-php-
   source .phps
 * Sadly this still yields the same results. 🙁 Any information would be appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-936912)
 * Open up a terminal window and run this
 *     ```
       sudo a2enmod php5
       ```
   
 * That should let load up the php5 apache2 module.
 *  Thread Starter [WebmistressM](https://wordpress.org/support/users/webmistressm/)
 * (@webmistressm)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-936933)
 * Oh dear. It says “this module does not exist”. Hmm…well that might be a clue.
   😉
 * I know PHP5 is installed
 *  Thread Starter [WebmistressM](https://wordpress.org/support/users/webmistressm/)
 * (@webmistressm)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-936937)
 * Addendum
 * I just followed these instructions from here:
    [https://help.ubuntu.com/community/ApacheMySQLPHP](https://help.ubuntu.com/community/ApacheMySQLPHP)
 * “You may also need to actually enable it, by doing sudo a2enmod php5 followed
   by sudo /etc/init.d/apache2 restart. If sudo a2enmod php5 returns “$ This module
   does not exist!”, you should purge (not just remove) the libapache2-mod-php5 
   package and reinstall it. “
 * That did help me get “[http://localhost&#8221](http://localhost&#8221); to come
   back with “It works!” and “[http://localhost/wordpress&#8221](http://localhost/wordpress&#8221);
   to return the following error:
 * “Your PHP installation appears to be missing the MySQL extension which is required
   by WordPress.”
 * …which is an entirely different problem. Thanks,Jan. 🙂
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-936938)
 * That’s not bad actually. You’ve gotten PHP5 installed not try (if you have not
   already):
 *     ```
       sudo apt-get install php5-mysql
       ```
   
 * Just like before, you will have to restart apache2.
 *  Thread Starter [WebmistressM](https://wordpress.org/support/users/webmistressm/)
 * (@webmistressm)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-936949)
 * Jan
 * That sure worked. strange is that I checked to make sure php was installed and
   it was. Strange that it wouldnt “see” that until I used the command you just 
   asked me to try.
 * At any rate, everything is up and 2.7 is up. HOLY cats! The UI changes look fantastic.
 * Mary
 *  [charlls](https://wordpress.org/support/users/charlls/)
 * (@charlls)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-937306)
 * `sudo /etc/init.d/apache2 restart`
 * just restarted apache and worked right away for me

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHTML problems with localhost/wordpress’ is closed to new replies.

## Tags

 * [local install](https://wordpress.org/support/topic-tag/local-install/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [charlls](https://wordpress.org/support/users/charlls/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/phtml-problems-with-localhostwordpress/#post-937306)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
