Solved

phpmyadmin fedora 8 red hat

Posted on 2009-07-03
3
558 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
ID: 24770970
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
ID: 24771001
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
ID: 24771090
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

749 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