New Install of Phpmyadmin on Ubuntu 11.04 won't accept log in
I seem to have a working install of Ubuntu Server 11.04 (Samba running without issue on same machine). The lamp stack seems to be running fine as well. (Apache index.html page works, phpinfo() works, mysql works from the mysql command line.)
I have installed phpmyadmin. After install I had to reboot the server (restarting Apache still said error in PHP and couldn't start). After reboot, the welcome screen comes up, but using root with password doesn't work. Using an admin user that I created with privileges in *.* doesn't work either. There are no errors on the screen, it just simply loops back to the beginning screen. There is an error in apache2 error.log saying that it can't find the page http://server/phpmyadmin/ind" which seems strange because you can bring up the welcome page, you just can't log into phpmyadmin with any of the created users that I made from the mysql commandline. I don't see any php errors in syslog (which is where the php errors are being directed) except a notice that CRON is running for some purpose for PHP. I'm a newbie server admin trying to set up a server for a small office to create an office Intranet for employees to use. |
Hi,
How did you configure the config.inc.php? Also if you want php errors to appear on screen, use: Code:
display_errors = On Regards |
bathory,
Good question. I have copied the config.inc.php file below. I also made the change you suggested in the php.ini file it was off before, now it is "On". Will this give me php errors right in the browser window? I'm concerned that I have something messed up in the configuration of phpmyadmin. When I first installed it in Ubuntu it asked if I wanted to configure it using dbconfig-common, I chose yes because it was the suggested default. Then I read a "How To" LAMP install for Ubuntu 11.04 and they suggested not choosing yes for that option. So I did an apt-get purge mysql-server and phpmyadmin (since it wasn't working at this point and I was having the same issues as described above. Did an apt-get install mysql-server and phpmyadmin and noticed that I didn't have to give mysql-server a root password like I did during the first install (used the one from the first install). Phpmyadmin didn't ask me anything about passwords and users like it did during the first install, but I noticed that phpmyadmin did not create a phpmyadmin user or database when it installed like it did the first time. So I created a user "admin" granting privileges on *.* , but I still can't log into phpmyadmin. I am wondering if my PHP install is working right since I have tried installing tikiwiki and it stalls during the install after you make a database connection and put into the install screen your user name and password to the database it dumps you back at the beginning of the install and never completes the installation. I thought that perhaps it was a database issue that is why I have been trying to install phpmyadmin, but perhaps I have something else wrong. Code:
<?php |
I just found the following strange error that relates to PHP in the apache2 error.log:
Code:
[Sat Jun 11 11:12:44 2011] [error] [client 192.168.1.114] File does not exist: /var/www/favicon.ico |
Quote:
Code:
Alias /phpmyadmin/ /usr/share/phpmyadmin Regards |
bathory,
That is the tutorial that I followed except that I used apt-get instead of aptitude which should not have made a difference, I saw all of the same options as were spoken about in the How-To. There is actually an updated on for Ubuntu 11.04 with the same instructions. I got no errors when I followed that How-To and all of the checks that they suggest in the How-To turned out like anticipated, except that I am not able to log into phpmyadmin with "root" or with "admin" the user that I created. Does a special database need to be created first before you can log into phpmyadmin? The set up did create an alias in /etc/apache2/conf.d/phpmyadmin.conf Except it did not include the one backslash in your example it had: Code:
Alias /phpmyadmin /usr/share/phpmyadmin |
Hi,
The backslash was a mistake. Anyway I don't see some other error, so cannot tell what's wrong. You can uninstall the phpmyadmin package and download the latest archive from their site. Extract it under /var/www, rename the directory to something easy for you to remember, but difficult for others to guess, e.g Code:
mv /var/www/phpMyAdmin-X.Y.Z /var/www/mowestusa Code:
$cfg['blowfish_secret'] = 'sdfdfsghjhjgdarxvtvmjjh'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ Regards |
Always use localhost/phpmyadmin to access phpmyadmin on a default (x)Ubuntu installation.
I used dev . com / phpmyadmin and had this problem. |
All times are GMT -5. The time now is 03:38 AM. |