• 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)
  • 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

    (@luanl)

    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.

    – What are you seeing when you try https://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

    (@luanl)

    When i try https://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 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).

    When i try https://localhost it takes me to the default “It Works” page.

    Well, at least that tells us Apache is still working. ??

    https://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

    (@luanl)

    I think i somehow screwed up the link between apache2 and the WP directory. Anyway i thank you for your feedback ??

    Thread Starter luanl

    (@luanl)

    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.