initially i could able to log in phpmyadmin before i excecute the installtion of wordpress using .But after i had install wordpress environment ,i have issue on wordpress and phpmyadmin

wordpress issue :

<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' );) 

phpmyadmin :

Not Found The requested URL /phpmyadmin/index.php was not found on this server. Apache/2.4.18 (Ubuntu) Server at 127.0.0.1 Port 8888) 

Please help ,i m a newbie on linux

2 Answers

They are 2 different sites. I will try to explain this as best as I can. PhpMyAdmin is held in one location and when you loaded WordPress it writes it's own location. You need to go into the apache sites and create a new site to point to the the PhpMyAdmin directory.

I totally butchered that explanation. But I am pretty sure that is what happened.

It has been awhile since I worked with WordPress. So I am trying to remember all this. After closer look at my apache config. There is a conf file in /etc/apache2/conf-enabled/phpmyadmin.conf with the directive Alias /phpmyadmin /usr/share/phpmyadmin .

This is supposed to allow any virt server dir "phpmyadmin" and direct it to the phpmyadmin directory. WordPress is probably overriding that directive.

I would create a new site in /etc/apache2/sites-enabled/ (note that you really should create it in available then link it) and then point it back to the default (/var/www/html/) and set it on a different port. And you should get it back.

2

According to this guide, you just need to add the line:

sudo ln -s /usr/share/phpmyadmin /var/www/html 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy