Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old March 11th, 2007   #11
ztirffritz
A Carafe of Ubuntu
 
ztirffritz's Avatar
 
Join Date: Jul 2005
Location: Yakima WA USA
Beans: 99
Ubuntu 8.04 Hardy Heron
Re: Installation of MYSQL/phpMyAdmin

Quote:
Originally Posted by Corvillus View Post
Getting a LAMP stack on Ubuntu is fairly straightforward
Code:
sudo apt-get install mysql-server
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
After doing that phpMyAdmin should be installed at http://localhost/phpmyadmin/
When I try to go to http://localhost/phpmyadmin it just tries to download a file. It acts as if it has not finished installing. The file that it tries to download is
1n0nhifs.phtml

**EDIT**
I got in by going to http://localhost/phpmyadmin/index
__________________
Mac OS X...because making UNIX user friendly was easier than fixing Windows.

Last edited by ztirffritz; March 11th, 2007 at 04:12 PM.. Reason: found answer
ztirffritz is offline   Reply With Quote
Old March 11th, 2007   #12
Nikron
Way Too Much Ubuntu
 
Join Date: Jan 2007
Beans: 235
Re: Installation of MYSQL/phpMyAdmin

Quote:
Originally Posted by ztirffritz View Post
When I try to go to http://localhost/phpmyadmin it just tries to download a file. It acts as if it has not finished installing. The file that it tries to download is
1n0nhifs.phtml
Make sure your apache server is loading the php5 module... If you have apache2 and php5, there is an apache command to enable it, but I can't think of it. If you want to do what I did.. do this

sudo mv /etc/apache2/mods-available/php5 .load /etc/apache2/mods-enabled && sudo mv /etc/apache2/mods-available/php5 .conf /etc/apache2/mods-enabled && sudo /etc/init.d/apache2 reload
__________________
Disregard anything I post...

Last edited by Nikron; March 11th, 2007 at 04:19 PM..
Nikron is offline   Reply With Quote
Old March 11th, 2007   #13
kg1
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 7
Ubuntu 7.10 Gutsy Gibbon
Re: Installation of MYSQL/phpMyAdmin

Rather than moving the files as Nikron suggests, I think the preferred method is to make symbolic links from the mods-enabled directory.
Code:
cd /etc/apache/mods-enabled
sudo ln -s /etc/apache2/mods-available/php5.conf php5.conf
sudo ln -s /etc/apache2/mods-available/php5.load php5.load
for whatever mods you need enabled.

And don't forget to restart apache2
kg1 is offline   Reply With Quote
Old March 11th, 2007   #14
Nikron
Way Too Much Ubuntu
 
Join Date: Jan 2007
Beans: 235
Re: Installation of MYSQL/phpMyAdmin

Quote:
Originally Posted by kg1 View Post
Rather than moving the files as Nikron suggests, I think the preferred method is to make symbolic links from the mods-enabled directory.
Code:
cd /etc/apache/mods-enabled
sudo ln -s /etc/apache2/mods-available/php5.conf php5.conf
sudo ln -s /etc/apache2/mods-available/php5.load php5.load
for whatever mods you need enabled.

And don't forget to restart apache2
Actually, wouldn't it just be easier to

Code:
a2enmod php5
My bad for not remembering the command earlier..
__________________
Disregard anything I post...
Nikron is offline   Reply With Quote
Old March 28th, 2007   #15
neerolyte
First Cup of Ubuntu
 
Join Date: Mar 2007
Location: Canberra, Australia
Beans: 10
Re: Installation of MYSQL/phpMyAdmin

Any suggestions for what to do if the php5 module is not installing correctly?

Code:
# apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

# a2enmod php5
This module does not exist!

# ls /etc/apache2/mods-available/ | grep php | wc -l
0
I found the fix:
Code:
# apt-get install libapache2-mod-php5

Last edited by neerolyte; March 28th, 2007 at 12:58 AM.. Reason: Fixed it
neerolyte is offline   Reply With Quote
Old March 28th, 2007   #16
szj
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 2
Re: Installation of MYSQL/phpMyAdmin

Hello,

I was looking for a tutorial showing me how to install phpMyAdmin and MYSQL on Ubuntu and stumbled on your forum (which i'm glad i did!) i followed the instructions and had no problem installing

mysql-server
apache2
php5
php5-mysql

but when i came to install phpmyadmin i got the following problem...

$ sudo apt-get install phpmyadmin

Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package phpmyadmin

and now i'm a bit stuck!! i would appreciate any help you can give me on this subject and many thanks in advance

Thank you.
szj is offline   Reply With Quote
Old March 28th, 2007   #17
neerolyte
First Cup of Ubuntu
 
Join Date: Mar 2007
Location: Canberra, Australia
Beans: 10
Re: Installation of MYSQL/phpMyAdmin

Quote:
Originally Posted by szj View Post
$ sudo apt-get install phpmyadmin

Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package phpmyadmin
I think that's because you don't have the universe apt source enabled... try something like this:
Code:
$ sudo nano -w /etc/apt/sources.list
*uncomment* this line: deb http://au.archive.ubuntu.com/ubuntu/ edgy universe
*save file*
$ sudo apt-get update
$ sudo apt-get install phpmyadmin
You need the apt-get update in there to make sure it downloads the new headers.

Give that a go.

If I haven't given you the right source it has to be in one of these (because they are all I have enabled):
Code:
deb http://au.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ edgy main restricted
deb http://au.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb http://au.archive.ubuntu.com/ubuntu/ edgy universe
deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted
Make sure you run apt-get update after every source that you change.

Post back which one works so that I can correct this post
neerolyte is offline   Reply With Quote
Old March 28th, 2007   #18
szj
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 2
Re: Installation of MYSQL/phpMyAdmin

Quote:
Originally Posted by neerolyte View Post
I think that's because you don't have the universe apt source enabled... try something like this:
Code:
$ sudo nano -w /etc/apt/sources.list
*uncomment* this line: deb http://au.archive.ubuntu.com/ubuntu/ edgy universe
*save file*
$ sudo apt-get update
$ sudo apt-get install phpmyadmin
You need the apt-get update in there to make sure it downloads the new headers.

Give that a go.

If I haven't given you the right source it has to be in one of these (because they are all I have enabled):
Code:
deb http://au.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ edgy main restricted
deb http://au.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb http://au.archive.ubuntu.com/ubuntu/ edgy universe
deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted
Make sure you run apt-get update after every source that you change.

Post back which one works so that I can correct this post

FANTASTIC!!

deb http://au.archive.ubuntu.com/ubuntu/ edgy universe

was the one that did it!

Thats very much for all your help fantastic forum
szj is offline   Reply With Quote
Old May 10th, 2007   #19
jvisaac
First Cup of Ubuntu
 
Join Date: Apr 2007
Beans: 3
Re: Installation of MYSQL/phpMyAdmin

First things first. These forums have been extremely helpful.

I have an IMac running ubuntu.
I have Apache, mysql, VNC, putty and everything else running on it and it is great.

I had phpmyadmin on it and I messed something up and now it is gone.
I tried installing it again and it appears like it worked but when I go to /var/www there is no directory phpmyadmin.

Any suggestions???

Thanks in advance for any recommendations.
jvisaac is offline   Reply With Quote
Old July 27th, 2007   #20
robbekema
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 1
Re: Installation of MYSQL/phpMyAdmin

## ALLREADY GOT THE SOLUTION!!
My source.list was not correct.
Thnx anyway, this forum is a great help!

I have done all the things on this page.
I have php5 running because I can see my localhost.
But why can't I get phpmyadmin running!
My list of services says that PHP5 and phpmyadmin are running.
But I can't see http://localhost/phpmyadmin.

Does somebody has an solution for my problem?

Last edited by robbekema; July 27th, 2007 at 07:52 AM..
robbekema is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:27 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry