Title: Linking wordpress to apache
Last modified: August 31, 2016

---

# Linking wordpress to apache

 *  [luanl](https://wordpress.org/support/users/luanl/)
 * (@luanl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/)
 * I installed WP correctly and it worked fine, until i tried to export the database
   using localhost/phpmyadmin. But it wasnt finding that so i entered some commands
   on the terminal ( im using Ubuntu 15.04 ), but this was a few days ago so i dont
   recall, but it was something along the lines of adding include phpmyadmin to 
   a text file (it didnt exist i created it). And when i tried to go to my localhost/
   wordpress, it says unable to connect. Funny enough if i close the tab and then
   pres the shortcut to reopen last closed tab the page loads fine. I do this with
   all of my pages on my website (services,contact etc), they wont load at first
   but when i close and reopen the tab it works fine, until i click to go somewhere
   else on the site. I think i screwed up my apache2 configuration, or somehow broke
   the link to the wordpress directory. Any idea what i did wrong.

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198695)
 * > Any idea what i did wrong.
 * Not without knowing exactly what you did.
 * > until i tried to export the database using localhost/phpmyadmin. But it wasnt
   > finding that so i entered some commands on the terminal
 * That’s way to vague to even guess what’s happened. It’s also not something you
   would normally encounter if phpMyAdmin was properly installed and operating correctly.
 * Find yourself a good “WordPress on Ubuntu 15.04” tutorial and have another go
   at it.
 * If you’ve installed WordPress by using the “apt-get install wordpress” command,
   or from the package manager, do yourself a huge service and look for a tutorial
   that helps you install it properly in /var/www/html instead
 *  Thread Starter [luanl](https://wordpress.org/support/users/luanl/)
 * (@luanl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198700)
 * The wordpress directory is in /var/www/html. But apache2 wont find it (when i
   enter localhost/wordpress it’s as if i have no connection).
 * The closest thing i can say about what i exactly did is that i added Include /
   etc/phpmyadmin/apache.conf in /etc/apache2/conf-available/phpmyadmin.conf. I 
   did not have phpmyadmin installed at the time when i tried this so it created
   a new file that did not exist.
 * I thank you for taking time to reply.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198703)
 * – What are you seeing when you try `http://localhost`
 * – Did you configure a virtual host for the wordpress directory in /etc/apache2/
   sites-available/ or did you leave the server in its default configuration
 * > ..they wont load at first but when i close and reopen the tab it works fine,
   > until i click to go somewhere else on the site.
 * – is that behavior accompanied by an error code or message when it doesn’t work?
 *  Thread Starter [luanl](https://wordpress.org/support/users/luanl/)
 * (@luanl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198707)
 * When i try [http://localhost](http://localhost) it takes me to the default “It
   Works” page.
 * I know your going to hate me because i use the word think, but i don’t think 
   i created a virtual host. I followed a [tutorial](https://mkhuramj.wordpress.com/2015/07/14/installing-wordpress-on-ubuntu/)
   but i don’t remember doing anything in the “sites-available” diretory.
 * When it doesn’t work it simply says Unable to connect (like when i’m not connected
   to the internet).
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198710)
 * > When i try [http://localhost](http://localhost) it takes me to the default “
   > It Works” page.
 * Well, at least that tells us Apache is still working. 🙂
 * `http://localhost/wordpress` failing only intermittently or prior to a refresh
   is certainly a mystery. I’m afraid I don’t have a clue as to what’s actually 
   happened.
 *  Thread Starter [luanl](https://wordpress.org/support/users/luanl/)
 * (@luanl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198711)
 * I think i somehow screwed up the link between apache2 and the WP directory. Anyway
   i thank you for your feedback 🙂
 *  Thread Starter [luanl](https://wordpress.org/support/users/luanl/)
 * (@luanl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198787)
 * I fixed the problem by actually installing phpmyadmin. Then the “include phpmyadmin”
   line made sense. Now everything is working fine.

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

The topic ‘Linking wordpress to apache’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [luanl](https://wordpress.org/support/users/luanl/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/linking-wordpress-to-apache/#post-7198787)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
