LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-22-2012, 07:38 AM   #1
nandunay
LQ Newbie
 
Registered: Oct 2011
Posts: 9
Blog Entries: 4

Rep: Reputation: Disabled
i am not able access phpmyadmin locally and remotelly.....and nagios also


Plz help to access phpmyadmin on locally and remotelly.....
it was working fine last 2 days back, and when i tried to access phpmyadmin and nagios server, i got forbidden messages....
i don't know, what problem occure....
Plz help me.......

when i access phpmyadmin url like as....

http://192.168.20.1/phpmyadmin/
................
Forbidden

You don't have permission to access /phpmyadmin/ on this server.
Apache/2.2.15 (CentOS) Server at 192.168.20.1 Port 80
.......................................

[root@server1 ~]# ls /var/www/html/phpmyadmin/phpMyAdmin-3.4.9-english/
browse_foreigners.php import.php README.VENDOR tbl_export.php
bs_disp_as_mime_type.php import_status.php RELEASE-DATE-3.4.9 tbl_get_field.php
bs_play_media.php index.php robots.txt tbl_import.php
ChangeLog INSTALL schema_edit.php tbl_indexes.php
changelog.php js schema_export.php tbl_move_copy.php
chk_rel.php libraries scripts tbl_operations.php
config.inc.php LICENSE server_binlog.php tbl_printview.php
config.sample.inc.php license.php server_collations.php tbl_relation.php
contrib main.php server_databases.php tbl_replace.php
CREDITS navigation.php server_engines.php tbl_row_action.php
db_create.php phpdoctor.ini server_export.php tbl_select.php
db_datadict.php phpinfo.php server_import.php tbl_sql.php
db_export.php phpmyadmin.css.php server_privileges.php tbl_structure.php
db_import.php pmd server_processlist.php tbl_tracking.php
db_operations.php pmd_common.php server_replication.php themes
db_printview.php pmd_display_field.php server_sql.php themes.php
db_qbe.php pmd_general.php server_status.php TODO
db_search.php pmd_help.php server_synchronize.php transformation_overview.php
db_sql.php pmd_pdf.php server_variables.php transformation_wrapper.php
db_structure.php pmd_relation_new.php setup url.php
db_tracking.php pmd_relation_upd.php show_config_errors.php user_password.php
docs.css pmd_save_pos.php sql.php view_create.php
Documentation.html prefs_forms.php tbl_addfield.php view_operations.php
Documentation.txt prefs_manage.php tbl_alter.php webapp.php
enum_editor.php print.css tbl_change.php
export.php querywindow.php tbl_chart.php
favicon.ico README tbl_create.php



[root@server1 ~]# vim /etc/httpd/conf.d/phpMyAdmin.conf

# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
Order deny,allow
# deny from all
Allow from 127.0.0.1
Allow from ::1
</Directory>

# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/frames>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/lib>
Order Deny,Allow
Deny from All
Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpMyAdmin>
# SecRuleInheritance Off
# </Directory>
#</IfModule>



Plz help...
 
Old 06-22-2012, 11:32 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
What is your apache log telling you? /var/log/httpd/error_log
 
1 members found this post helpful.
Old 06-25-2012, 12:00 AM   #3
nandunay
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Blog Entries: 4

Rep: Reputation: Disabled
[root@server1 ~]# tail -f /var/log/httpd/error_log
[Mon Jun 25 10:11:56 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 25 10:11:56 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jun 25 10:11:56 2012] [notice] Digest: done
[Mon Jun 25 10:11:56 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.13 configured -- resuming normal operations
[Mon Jun 25 10:13:16 2012] [notice] caught SIGTERM, shutting down
[Mon Jun 25 10:13:17 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Mon Jun 25 10:13:17 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 25 10:13:17 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jun 25 10:13:17 2012] [notice] Digest: done
[Mon Jun 25 10:13:17 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.13 configured -- resuming normal operations

[root@server1 ~]# tail -10 /var/log/httpd/access_log
192.168.20.1 - - [25/Jun/2012:10:17:06 +0530] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:17:43 +0530] "GET /nagios HTTP/1.1" 401 479 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - nagiosadmin [25/Jun/2012:10:17:53 +0530] "GET /nagios HTTP/1.1" 301 313 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - nagiosadmin [25/Jun/2012:10:17:53 +0530] "GET /nagios/ HTTP/1.1" 403 287 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:18:28 +0530] "GET /phpmyadmin HTTP/1.1" 301 317 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:18:28 +0530] "GET /phpmyadmin/ HTTP/1.1" 403 291 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:18:30 +0530] "GET /phpmyadmin/ HTTP/1.1" 403 291 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:21:39 +0530] "GET / HTTP/1.0" 200 54 "-" "check_http/v1.4.15 (nagios-plugins 1.4.15)"
192.168.20.1 - - [25/Jun/2012:10:22:31 +0530] "GET /phpmyadmin/ HTTP/1.1" 403 291 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
192.168.20.1 - - [25/Jun/2012:10:22:44 +0530] "GET /phpmyadmin/ HTTP/1.1" 403 291 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
[root@server1 ~]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 02:25 AM
Can access SSH locally but not from the internet vytas Linux - Networking 4 05-04-2012 08:53 AM
Created mysql user but access denied locally littlened Linux - Server 1 09-19-2011 04:55 AM
Access FreeNX session locally ufmale Linux - Software 5 10-21-2009 02:23 AM
Can only access server locally. netquest1 Linux - Software 9 11-12-2004 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration