Re: Permission Denied error message with base and phpadmin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Sargent wrote:

Mark Sargent wrote:

Hi All,

keep getting the following error message,


Forbidden

You don't have permission to access /base-1.1/ on this server.

------------------------------------------------------------------------
Apache/2.0.53 (Unix) PHP/5.0.4 Server at localhost Port 80



below are the permissions for the dir of base and it's contents. Is it a permissions issue..?

[root@localhost html]# cd base-1.1
[root@localhost base-1.1]# ls -alh
total 472K
drwxr-xr-x  12 root root 4.0K Apr  6 15:48 .
drwxr-xr-x   5 root root 4.0K Apr  6 14:37 ..
drwxr-xr-x   2 root root 4.0K Apr  4 05:27 admin
-rwxr-xr-x   1 root root 3.5K Apr  4 05:26 base_ag_common.php
-rwxr-xr-x   1 root root  14K Apr  4 05:26 base_ag_main.php
-rwxr-xr-x   1 root root  28K Apr  4 05:26 base_common.php
-rwxr-xr-x   1 root root  11K Apr  6 14:54 base_conf.php
-rwxr-xr-x   1 root root  11K Apr  4 05:26 base_conf.php.dist
-rwxr-xr-x   1 root root 6.5K Apr  4 05:26 base_db_common.php
-rwxr-xr-x   1 root root  24K Apr  4 05:26 base_db_setup.php
-rwxr-xr-x   1 root root 1.6K Apr  4 05:26 base_denied.php
-rwxr-xr-x   1 root root 1.7K Apr  4 05:26 base_footer.php
-rwxr-xr-x   1 root root  17K Apr  4 05:26 base_graph_common.php
-rwxr-xr-x   1 root root 4.6K Apr  4 05:26 base_graph_display.php
-rwxr-xr-x   1 root root  13K Apr  4 05:26 base_graph_form.php
-rwxr-xr-x   1 root root  12K Apr  4 05:26 base_graph_main.php
-rwxr-xr-x   1 root root  118 Apr  4 05:26 base_hdr1.php
-rwxr-xr-x   1 root root  490 Apr  4 05:26 base_hdr2.php
-rwxr-xr-x   1 root root  14K Apr  4 05:26 base_main.php
-rwxr-xr-x   1 root root 9.2K Apr  4 05:26 base_maintenance.php
-rwxr-xr-x   1 root root  26K Apr  4 05:27 base_qry_alert.php
-rwxr-xr-x   1 root root  30K Apr  4 05:27 base_qry_common.php
-rwxr-xr-x   1 root root 9.3K Apr  4 05:27 base_qry_form.php
-rwxr-xr-x   1 root root 7.2K Apr  4 05:27 base_qry_main.php
-rwxr-xr-x   1 root root 8.7K Apr  4 05:27 base_qry_sqlcalls.php
-rwxr-xr-x   1 root root  13K Apr  4 05:27 base_stat_alerts.php
-rwxr-xr-x   1 root root 8.2K Apr  4 05:27 base_stat_class.php
-rwxr-xr-x   1 root root  17K Apr  4 05:27 base_stat_common.php
-rwxr-xr-x   1 root root  12K Apr  4 05:27 base_stat_ipaddr.php
-rwxr-xr-x   1 root root 7.3K Apr  4 05:27 base_stat_iplink.php
-rwxr-xr-x   1 root root 9.4K Apr  4 05:27 base_stat_ports.php
-rwxr-xr-x   1 root root 6.9K Apr  4 05:27 base_stat_sensor.php
-rwxr-xr-x   1 root root  14K Apr  4 05:27 base_stat_time.php
-rwxr-xr-x   1 root root 8.1K Apr  4 05:27 base_stat_uaddr.php
-rwxr-xr-x   1 root root 4.6K Apr  4 05:27 base_user.php
drwxr-xr-x   2 root root 4.0K Apr  4 05:28 docs
drwxr-xr-x   2 root root 4.0K Apr  4 05:27 help
drwxr-xr-x   2 root root 4.0K Apr  4 05:27 images
drwxr-xr-x   3 root root 4.0K Apr  5 03:26 includes
-rwxr-xr-x   1 root root 3.1K Apr  4 05:27 index.php
drwxr-xr-x   2 root root 4.0K Apr  4 05:27 languages
drwxr-xr-x   2 root root 4.0K Apr  4 05:28 scripts
drwxr-xr-x   2 root root 4.0K Apr  4 05:28 setup
drwxr-xr-x   2 root root 4.0K Apr  4 05:28 sql
drwxr-xr-x   2 root root 4.0K Apr  4 05:27 styles

my document_root = /var/www/html. What I don't understand, is, I can see index.php in the browser which is in /var/www/html. Why can't I access other directories.? I don't see it as a permissions issue. Is there something not right in my httpd.conf file..?

Furthermore, I created a dir, testphp and moved the index.php file into it, and with localhost/testphp/index.php I could see it in my browser. Below is the permissions of files/dir in the html dir.

[root@localhost html]# ls -alh
total 48K
drwxr-xr-x   7 root root 4.0K Apr 13 13:48 .
drwxr-xr-x   3 root root 4.0K Apr 12 14:18 ..
drwxr-xr-x  13 root root 4.0K Mar 29 15:59 adodb
drwxr-xr-x  12 root root 4.0K Apr  6 15:48 base-1.1
-rw-r--r--   1 root root  16K Apr 13 13:08 index.php
drwxr-xr-x   4 root root 4.0K Mar 29 15:57 jpgraph
drwxr-xr-x   7 root root 4.0K Apr 13 13:44 phpmyadmin
drwxr-xr-x   2 root root 4.0K Apr 13 13:48 testphp
-rw-r--r--   1 root root   19 Mar 11 16:11 test.php

phpadmin access attempt gives the same error message. Cheers.


Forbidden

You don't have permission to access /phpmyadmin/ on this server.

------------------------------------------------------------------------
Apache/2.0.53 (Unix) PHP/5.0.4 Server at localhost Port 80



Mark Sargent.

Hi All,

the only difference in the creation of these dir, is, phpadmin and base-1.1 were moved to their current location this way,

tar --directory=/var/www/html -xzvf <tar.gz filepath>

where as testphp was just a mkdir in the terminal.

Cheers.

Mark Sargent

Hi All,

ok, problem has been partitially solved. Changing this,

<Directory "/usr/local/apache2/htdocs">

to this

<Directory "/var/www/html">

now gives me access, but, in this form,


Index of /base-1.1

Icon Name <http://localhost/base-1.1/?C=N;O=D> Last modified <http://localhost/base-1.1/?C=M;O=A> Size <http://localhost/base-1.1/?C=S;O=A> Description <http://localhost/base-1.1/?C=D;O=A>
------------------------------------------------------------------------
[DIR] Parent Directory <http://localhost/> - [DIR] admin/ <http://localhost/base-1.1/admin/> 04-Apr-2005 05:27 - [ ] base_ag_common.php <http://localhost/base-1.1/base_ag_common.php> 04-Apr-2005 05:26 3.5K


which, I guess, is not too good. What have I done wrong here..?
And, could someone explain the reason why changing what I did allowed access. Cheers.

Mark Sargent.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux