Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to access phpmyadmin. I have access it before but, now, I'm just getting a blank page and I really don't get why.

I've installed phpmyadmin using

sudo apt-get install phpmyadmin

I've run

sudo gedit /etc/apache2/apache2.conf

And there added:

#Include phpmyadmin: 
 include /etc/phpmyadmin/apache.conf

But I was getting a warning when I restart apache, telling me:

The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.

How can I solve this, so that I can see phpmyadmin interface again, when I do http://localhost/phpmyadmin instead of seeing a blank webpage?

Dump -

  • I've tried apt-get remove phpmyadmin and then apt-get install phpmyadmin - still the same blank page. :(

  • /etc/phpmyadmin - I've chmod o+w permissions to phpmyadmin folder and it's contents. - still the blank page...

share|improve this question
    
Did you try it before you added include /etc/phpmyadmin/apache.conf? If not, can you try to remove that line and restart to try again? –  Kris Harper Aug 26 '11 at 13:39
    
@root45 - Yes I've try it before without that line. And then with it, and now, I've remove that line. :( –  MEM Aug 26 '11 at 13:49
    
I should have asked this above, but did removing that line get rid of the message "The Alias directive in /etc ... an earlier Alias" that you get when you restart? I think there may be two separate issues here. –  Kris Harper Aug 26 '11 at 14:21
    
@root45 - Yes. Removing that line, removed the message. –  MEM Aug 26 '11 at 15:02
1  
@root45: ls -ld /etc/phpmyadmin is the right way to get a single line of information on a folder. –  Lekensteyn Aug 27 '11 at 8:47

2 Answers 2

up vote 1 down vote accepted

Try running

sudo dpkg-reconfigure phpmyadmin

To set up the phpmyadmin files, database connections and create the phpmyadmin databases

share|improve this answer
    
I cannot test this any longer. If someone find this answer an answer, please shared and I will mark it as a correct answer. cheers. –  MEM Nov 11 '11 at 18:30

This problem occurred to me because I modified the php.ini (/etc/php5/apache/php.ini) and introduced a wrong format. Specifically, I needed to upload a bigger file so I modified this line:

upload_max_filesize = 2M

with:

upload_max_filesize = 20

As you can see, I missed an M. After restarting apache (sudo service apache2 restart), I was getting the blank page.

** In general, it might be that a mistake in the php.ini produces a silent (blank page) output in php. **

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.