Solved

phpmyadmin fedora 8 red hat

Posted on 2009-07-03
3
523 Views
Last Modified: 2013-12-13
Hi I've got dedicated server, where I try to install phpmyadmin, I've done all the following steps:
unpack the package
> tar -xzvf phpMyAdmin.tar.gz
Move it to the appropriate place.
> mv phpMyAdmin /usr/share/
Create the apache config file for phpmyadmin and restart apache.
> echo "alias /webdb /usr/share/phpMyAdmin" > /etc/httpd/conf.d/phpMyAdmin.conf
> service httpd restart
Configure phpMyAdmin
> cd /usr/share/phpMyAdmin
> cp libraries/config.default.php config.inc.php
> nano -w config.inc.php
Locate each of the following lines and be sure each has the following settings.
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (con$
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only nee$
Save the file.

I set my $cfg to :
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';

So now I am meaned to go to url of my website and type
<url>/phpMyAdmin
but I get HTTP 404 error

I don't know how to access phpmyadmin on the server?
0
Comment
Question by:vidda22
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
BrianMM earned 500 total points
Comment Utility
you need to put this into the webroot or make a symbolic link....

it should reside in say /var/www/html/ or similar...

Alternativley it can stay whare you have it, but add a virtual host in apache.

Depends how competant you are... if starting out simply move/extract it to the /var/www/html folder.

In redhat it might be called httpdocs can't remember 100%.

However... if your using redhat - if it's your own server why not use yum to install it? :)
0
 

Author Comment

by:vidda22
Comment Utility
Well I tried to instal it, but that's what I got back:

yum install phpmyadmin
Setting up Install Process
Parsing package install arguments
No package phpmyadmin available.
Nothing to do

I don't know how to add package to linux, I am very beginner in that field...
0
 
LVL 11

Expert Comment

by:BrianMM
Comment Utility
Personally, i would just extract it to the httpdocs and follow http://www.phpmyadmin.net/documentation/

you may have a path like this:

/home/username/public_html/ if you do you could shove it in there

the main web root may be:

/usr/local/apache/htdocs

as i said a while since i've used redhat...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now