?
Solved

403 Forbidden error on phpmyadmin and phpadsnew

Posted on 2005-03-02
3
Medium Priority
?
3,759 Views
Last Modified: 2012-06-21
OK, I have linux redhat enterprise with apache.  

php is installed, and so is mysql.

I installed phpnuke with no problem.  However, trying to install phpmyadmin caused a forbidden 403 - you do not have permission to view this page.

The permissions for the folder is set to 777 (only to see if that was the problem - it's not).  

I then tried to install another script called phpads - and got the same denied permission error.

Has anyone encountered this before?  If so, can you guide me how to fix it?

Thank you!!!
0
Comment
Question by:foreverdita
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 1000 total points
ID: 13446558
Make sure that phpmyadmin is installed under apache Document Root dir, the permission
set to 755 for the dir is good enough.

eg:  my installation:
drwxr-xr-x   7 root     nobody      2560 Jan 24 09:14 phpMyAdmin-2.6.1/

then make sure apache ("nobody") can read/run the files.

chown -R root:nobody  phpMyAdmin-2.6.1

replace phpMyAdmin-2.6.1 with your installation dir name.

you also need to edit phpMyadmin config file:  config.inc.php:

to make change for:

 $cfg['PmaAbsoluteUri'] = 'http://www.mydomain.com/phpMyAdmin-2.6.1';
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = 'xxxxxxxxx';  // MySQL password (only needed
                                                        // with 'config' auth_type)

It is good idea to add access control to phpMySQL dir, use .htaccess file etc.

After you "chown", if you still get error 403, check if you have set access control for the dir
or Doc Root.

 
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 1000 total points
ID: 13447456
>  forbidden 403 - you do not have permission to view this page.
either .htaccess problem, or you did not configure the directory in httpd.conf (Alias or whatever)
0
 

Author Comment

by:foreverdita
ID: 13451225
Ok, this is totally bizarre, but apparantly, the system did not like how I unpacked the tar files into their directory.  I dragged them with the mouse rather than extracting them to the folder.

When I extracted them correctly, everything worked fine.  Just in case anyone else comes across this strange error and doesn't know why it is caused.  : )

Thanks for the responses!
0

Featured Post

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 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