Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


403 Forbidden error on phpmyadmin and phpadsnew

Posted on 2005-03-02
Medium Priority
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!!!
Question by:foreverdita
LVL 38

Accepted Solution

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.

LVL 51

Assisted Solution

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)

Author Comment

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!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

571 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