LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-11-2008, 03:29 PM   #1
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Rep: Reputation: 15
getting phpmyadmin up and running with lamp


Hello,

I've installed a LAMP stack in my 7.10 version of ubuntu using the following commands;

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/

However when I navigate to t http://localhost/phpmyadmin/ I get an error.

Can anyone help?

TIA
 
Old 04-11-2008, 05:14 PM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Peter, can you tell us what the error is? What do you see, it anything, in your Apache logs?
 
Old 04-11-2008, 05:36 PM   #3
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Original Poster
Rep: Reputation: 15
Error...

The requested URL /phpmyadmin was not found on this server.
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 Server at localhost Port 80

apache log

[Fri Apr 11 14:36:31 2008] [error] [client 127.0.0.1] File does not exist: /var/www/phpmyadmin
 
Old 04-11-2008, 05:57 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you restart apache?

Apache needs to load phpmyadmin.conf to set up the aliases

Last edited by billymayday; 04-11-2008 at 05:58 PM.
 
Old 04-11-2008, 07:18 PM   #5
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Original Poster
Rep: Reputation: 15
yes didn't work
 
Old 04-11-2008, 07:51 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What's in /etc/httpd/conf.d/phpmyadmin.conf ? Does the target of the alias exist?

What's in error_log for your apache setup (look in httpd.conf for log location if you can't find them)
 
Old 04-11-2008, 07:53 PM   #7
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
do you have a directory called "phpMyAdmin" in /var/www?

I don't know about installing from the repo, but when installing from source, the directory is called "phpMyAdmin-<version>"?

if that doesn't solve it... what are the contents of /var/www (or /var/www/html or /var/www/htdocs depending on your setup)?

What are the contents of the phpMyAdmin dir?

Can you view any html page on localhost through a browser?
 
Old 04-11-2008, 08:04 PM   #8
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Original Poster
Rep: Reputation: 15
>>do you have a directory called "phpMyAdmin" in /var/www?
No

I have a /usr/share/phpmyadmin

and can create a symlink from this to /var/www this will bring the phpmyadmin page up but with errors

here are the errors;


Warning: Cannot modify header information - headers already sent by (output started at /var/lib/phpmyadmin/config.inc.php:64) in /usr/share/phpmyadmin/libraries/common.lib.php on line 413

Warning: Cannot modify header information - headers already sent by (output started at /var/lib/phpmyadmin/config.inc.php:64) in /usr/share/phpmyadmin/libraries/auth/cookie.auth.lib.php on line 90

Billy,

I don't have a What's in /etc/httpd/conf.d/phpmyadmin.conf directory

Does the target of the alias exist? I don't know what this means "target?" "alias?"
 
Old 04-11-2008, 08:20 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is there a file called phpmyadmin.conf (or similar) in /etc/httpd/conf.d what what I meant. it should look something like

Code:
#
#  Web application to manage MySQL
#

<Directory "/usr/share/phpmyadmin">
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
 
Old 04-11-2008, 08:53 PM   #10
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Original Poster
Rep: Reputation: 15
Hi Billy,

There is no such file in phpmyadmin.conf this directory

if I do a locate phpmyadmin.conf I find it in /etc/apache2/conf.d/phpmyadmin.conf~

and here are the contents of that file

<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<Files setup.php>
# For Apache 1.3 and 2.0
<IfModule mod_auth.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
# For Apache 2.2
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Files>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
 
Old 04-11-2008, 09:00 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's a bit odd.

Try adding

Alias /phpmyadmin /usr/share/phpmyadmin

to the top of that file, restart apache and see what happens

Note - looks like Ubuntu paths for apache are different from RH
 
Old 04-12-2008, 05:14 PM   #12
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
I'm running Ubuntu 7.10 and I installed LAMP, which works, and now phpmyadmin with synaptic. The login screen comes up for the application in localhost but it won't accept my login. I'm the original and only user. Is there a default for 1st time use?
 
Old 04-14-2008, 10:57 AM   #13
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Original Poster
Rep: Reputation: 15
fragos,

it is your mysql password


if you have not set the p-word try login: root and no p-word

FYI Billy and Brian,

I reloaded phpmyadmin and then created a symlink between /usr/share/phpmyadmin and /www/var "don't know why things always have to be so inconsistent between different version s of ubuntu have a lot of issues for 7.10"


Thanks for your help!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 7.04 LAMP +phpmyadmin friskydrifter Linux - Server 2 09-13-2007 04:46 PM
LXer: LAMP vs. LAMP Rematch LXer Syndicated Linux News 0 11-08-2006 03:03 AM
running LAMP GunNam Ubuntu 8 09-29-2006 12:58 PM
LXer: LAMP vs. LAMP LXer Syndicated Linux News 0 08-22-2006 11:33 PM
running phpmyadmin phil81 Red Hat 9 12-31-2003 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration