0

I am quite new to website construction. I have been practicing with MySQL and phpMyAdmin before, but only on localhost. It went well. But when I actually bought myself a domain name and changed the document root of my Apache to some other directory (other than public_html and such), I found it's not working as I expected it to.

It happened when I was trying to manage my database from a remote client. I typed in the URL of mywebsite/phpmyadmin, it gave me a 404 error. I ran a little research and found this page and followed the instructions, added

Include /etc/phpmyadmin/apache.conf
to /etc/apache2/apache2.conf. It worked to an extent that I don't get the 404 error any more. But it went more peculiar in that my website started downloading the raw php code file that looks will be rendered as my phpMyAdmin page, but the page is not showing.

Anyone help?

2

1 Answer 1

1

/etc/apache2/apache2.conf indicates a debian-ish distribution. Did you install the libapache2-mod-php5 and php5-mysql packages? And did you run a2enmod php5?

2
  • Yes I am running Ubuntu. It appears that I have indeed installed all the packages you mentioned, and all my other php files are functioning just fine. I don't think the php interpreter is the problem. :\
    – alxyzc
    Feb 10, 2013 at 11:40
  • Same issue here May 29, 2015 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .