403 Forbidden You don't have permission to access
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
403 Forbidden You don't have permission to access
I get "403 Forbidden You don't have permission to access" after attempting an installation of phpmyadmin.
CentOS 5.4
Permissions for directory set to 755 recursively (chomd -R 755 )
Directory is in /var/www/html/
I have other test pages in the /var/www/html/ directory that I can access ... I know this seems like a permission issue and in fact the error log states this is a permission issue, but I cannot figure what is the problem here. Maybe someone else has seen this type of behavior before that can help me out.
Thanks for your time
CentOS 5.4
Permissions for directory set to 755 recursively (chomd -R 755 )
Directory is in /var/www/html/
I have other test pages in the /var/www/html/ directory that I can access ... I know this seems like a permission issue and in fact the error log states this is a permission issue, but I cannot figure what is the problem here. Maybe someone else has seen this type of behavior before that can help me out.
Thanks for your time
-
- Posts: 661
- Joined: 2009/01/18 00:39:15
- Location: 44 49′14″N 20 27′44″E
Re: 403 Forbidden You don't have permission to access
You may wish to check out the following configuration file:
[b]/etc/httpd/conf.d/phpmyadmin.conf[/b]
for line beginning with [b]Allow[/b] and modify it accordingly.
EDIT: Followed by [b]service httpd restart[/b]
[b]/etc/httpd/conf.d/phpmyadmin.conf[/b]
for line beginning with [b]Allow[/b] and modify it accordingly.
EDIT: Followed by [b]service httpd restart[/b]
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
Re: 403 Forbidden You don't have permission to access
there does not appear to be a /etc/httpd/conf.d/phpmyadmin.conf file. not sure where to go from here...
Thanks
[quote]
milosb wrote:
You may wish to check out the following configuration file:
[b]/etc/httpd/conf.d/phpmyadmin.conf[/b]
for line beginning with [b]Allow[/b] and modify it accordingly.
EDIT: Followed by [b]service httpd restart[/b][/quote]
Thanks
[quote]
milosb wrote:
You may wish to check out the following configuration file:
[b]/etc/httpd/conf.d/phpmyadmin.conf[/b]
for line beginning with [b]Allow[/b] and modify it accordingly.
EDIT: Followed by [b]service httpd restart[/b][/quote]
-
- Posts: 1478
- Joined: 2006/05/29 16:50:11
- Location: San Francisco, CA
403 Forbidden You don't have permission to access
I just did a test install of the phpmyadmin package from rpmforge, and it did install a /etc/httpd/conf.d/phpmyadmin.conf file. Where did you install from?
[code]
mail:/var/log# yum --enablerepo rpmforge install phpmyadmin
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirrors.xmission.com
* base: mirrors.versaweb.com
* extras: mirrors.usc.edu
* rpmforge: fr2.rpmfind.net
* updates: mirrors.kernel.org
rpmforge | 1.1 kB 00:00
201 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.10-2.el5.rf set to be updated
--> Processing Dependency: php-mcrypt for package: phpmyadmin
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.7-1.2.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
phpmyadmin noarch 2.11.10-2.el5.rf rpmforge 4.3 M
Installing for dependencies:
libmcrypt x86_64 2.5.7-1.2.el5.rf rpmforge 182 k
php-mcrypt x86_64 5.1.6-15.el5.centos.1 extras 16 k
Transaction Summary
====================================================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-mcrypt-5.1.6-15.el5.centos.1.x86_64.rpm | 16 kB 00:00
(2/3): libmcrypt-2.5.7-1.2.el5.rf.x86_64.rpm | 182 kB 00:00
(3/3): phpmyadmin-2.11.10-2.el5.rf.noarch.rpm | 4.3 MB 00:07
----------------------------------------------------------------------------------------------------
Total 488 kB/s | 4.4 MB 00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmcrypt 1/3
Installing : php-mcrypt 2/3
Installing : phpmyadmin 3/3
Installed:
phpmyadmin.noarch 0:2.11.10-2.el5.rf
Dependency Installed:
libmcrypt.x86_64 0:2.5.7-1.2.el5.rf php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1
Complete!
mail:/var/log# rpm -ql phpmyadmin | grep conf
/etc/httpd/conf.d/phpmyadmin.conf
/usr/share/phpmyadmin/config.inc.php
/usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/contrib/packaging/Fedora/phpMyAdmin-http.conf
/usr/share/phpmyadmin/libraries/auth/config.auth.lib.php
/usr/share/phpmyadmin/libraries/config.default.php
/usr/share/phpmyadmin/show_config_errors.php
mail:/var/log#
[/code]
[code]
mail:/var/log# yum --enablerepo rpmforge install phpmyadmin
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirrors.xmission.com
* base: mirrors.versaweb.com
* extras: mirrors.usc.edu
* rpmforge: fr2.rpmfind.net
* updates: mirrors.kernel.org
rpmforge | 1.1 kB 00:00
201 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.10-2.el5.rf set to be updated
--> Processing Dependency: php-mcrypt for package: phpmyadmin
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.7-1.2.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
phpmyadmin noarch 2.11.10-2.el5.rf rpmforge 4.3 M
Installing for dependencies:
libmcrypt x86_64 2.5.7-1.2.el5.rf rpmforge 182 k
php-mcrypt x86_64 5.1.6-15.el5.centos.1 extras 16 k
Transaction Summary
====================================================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-mcrypt-5.1.6-15.el5.centos.1.x86_64.rpm | 16 kB 00:00
(2/3): libmcrypt-2.5.7-1.2.el5.rf.x86_64.rpm | 182 kB 00:00
(3/3): phpmyadmin-2.11.10-2.el5.rf.noarch.rpm | 4.3 MB 00:07
----------------------------------------------------------------------------------------------------
Total 488 kB/s | 4.4 MB 00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmcrypt 1/3
Installing : php-mcrypt 2/3
Installing : phpmyadmin 3/3
Installed:
phpmyadmin.noarch 0:2.11.10-2.el5.rf
Dependency Installed:
libmcrypt.x86_64 0:2.5.7-1.2.el5.rf php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1
Complete!
mail:/var/log# rpm -ql phpmyadmin | grep conf
/etc/httpd/conf.d/phpmyadmin.conf
/usr/share/phpmyadmin/config.inc.php
/usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/contrib/packaging/Fedora/phpMyAdmin-http.conf
/usr/share/phpmyadmin/libraries/auth/config.auth.lib.php
/usr/share/phpmyadmin/libraries/config.default.php
/usr/share/phpmyadmin/show_config_errors.php
mail:/var/log#
[/code]
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
Re: 403 Forbidden You don't have permission to access
I installed form http://dev.antoinesolutions.com/phpmyadmin
maybe I need to do an install from where you did yours... can you give me the link...
this is what I have with a yum info
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirrors.serveraxis.net
* base: yum.singlehop.com
* epel: mirrors.rit.edu
* extras: pubmirrors.reflected.net
* updates: pubmirrors.reflected.net
100 packages excluded due to repository priority protections
Installed Packages
Name : phpMyAdmin
Arch : noarch
Version : 2.11.10
Release : 1.el5
Size : 12 M
Repo : installed
Summary : Web based MySQL browser written in php
URL : http://www.phpmyadmin.net/
License : GPLv2+
Description: phpMyAdmin is a tool written in PHP intended to handle the administration of
: MySQL over the Web. Currently it can create and drop databases,
: create/drop/alter tables, delete/edit/add fields, execute any SQL statement,
: manage keys on fields, manage privileges,export data into various formats and
: is available in 50 languages
maybe I need to do an install from where you did yours... can you give me the link...
this is what I have with a yum info
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirrors.serveraxis.net
* base: yum.singlehop.com
* epel: mirrors.rit.edu
* extras: pubmirrors.reflected.net
* updates: pubmirrors.reflected.net
100 packages excluded due to repository priority protections
Installed Packages
Name : phpMyAdmin
Arch : noarch
Version : 2.11.10
Release : 1.el5
Size : 12 M
Repo : installed
Summary : Web based MySQL browser written in php
URL : http://www.phpmyadmin.net/
License : GPLv2+
Description: phpMyAdmin is a tool written in PHP intended to handle the administration of
: MySQL over the Web. Currently it can create and drop databases,
: create/drop/alter tables, delete/edit/add fields, execute any SQL statement,
: manage keys on fields, manage privileges,export data into various formats and
: is available in 50 languages
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
Re: 403 Forbidden You don't have permission to access
I get this
[root@localhost log]# yum --enablerepo rpmforge install phpmyadmin
Loaded plugins: fastestmirror, priorities
Error getting repository data for rpmforge, repository not found
[root@localhost log]#
[root@localhost log]# yum --enablerepo rpmforge install phpmyadmin
Loaded plugins: fastestmirror, priorities
Error getting repository data for rpmforge, repository not found
[root@localhost log]#
-
- Posts: 1478
- Joined: 2006/05/29 16:50:11
- Location: San Francisco, CA
Re: 403 Forbidden You don't have permission to access
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?highlight=(rpmforge)
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
Re: 403 Forbidden You don't have permission to access
ok.. got it installed after installing RPMforge. have never used that but I like I think.
here is what I've got
[root@localhost conf.d]# rpm -ql phpmyadmin | grep conf
/etc/httpd/conf.d/phpmyadmin.conf
/usr/share/phpmyadmin/config.inc.php
/usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/contrib/packaging/Fedora/phpMyAdmin-http.conf
/usr/share/phpmyadmin/libraries/auth/config.auth.lib.php
/usr/share/phpmyadmin/libraries/config.default.php
/usr/share/phpmyadmin/show_config_errors.php
[root@localhost conf.d]#
edited /etc/httpd/conf.d/phpmyadmin
[root@localhost conf.d]# cat phpmyadmin.conf
#
# Web application to manage MySQL
#
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
then try
http://10.0.1.8/phpmyadmin
get "can't establish a connection to the server at localhost."
maybe I am missing how to properly call....
Butch
here is what I've got
[root@localhost conf.d]# rpm -ql phpmyadmin | grep conf
/etc/httpd/conf.d/phpmyadmin.conf
/usr/share/phpmyadmin/config.inc.php
/usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/contrib/packaging/Fedora/phpMyAdmin-http.conf
/usr/share/phpmyadmin/libraries/auth/config.auth.lib.php
/usr/share/phpmyadmin/libraries/config.default.php
/usr/share/phpmyadmin/show_config_errors.php
[root@localhost conf.d]#
edited /etc/httpd/conf.d/phpmyadmin
[root@localhost conf.d]# cat phpmyadmin.conf
#
# Web application to manage MySQL
#
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
then try
http://10.0.1.8/phpmyadmin
get "can't establish a connection to the server at localhost."
maybe I am missing how to properly call....
Butch
-
- Posts: 1478
- Joined: 2006/05/29 16:50:11
- Location: San Francisco, CA
Re: 403 Forbidden You don't have permission to access
Did you restart httpd?
-
- Posts: 19
- Joined: 2010/01/18 00:10:26
- Location: St. Louis
- Contact:
Re: 403 Forbidden You don't have permission to access
yes...
service restart httpd
[root@localhost log]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost log]# pwd
service restart httpd
[root@localhost log]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost log]# pwd