Hello experts

I have phpmyadmin installed and working however I will like only to have access by localhost and 1 specific computer in my network. I don't want to have access from the outside world . In my Linux server I do have a configuration file located on /etc/httpd/conf.d/phpMyAdmin.conf . I try to search for this file but I cant find it.

Thanks!

asked 16 Apr '13, 22:03

joepr's gravatar image

joepr
1445
accept rate: 0%


I solve the issue by editing the /opt/csw/apache2/etc/httpd.conf then adding

<Directory /opt/csw/apache2/share/htdocs/phpmyadmin/>
   order deny,allow
   deny from all
   allow from 127.0.0.1
   allow from 1.1.1.1 -> ip of your workstation
   allow from ::1
</Directory>
permanent link

answered 16 Apr '13, 22:47

joepr's gravatar image

joepr
1445
accept rate: 0%

You can try to see what files there are in the package. For example, you can run this command:

pkgchk -L CSWphpmyadmin

Or you can see the phpMyAdmin package page and click the 'View files in package' link. Then you can see if any of the files match what you're looking for.

It's also possible that there isn't an Apache-specific configuration file provided and you need to go with the generic phpMyAdmin installation instructions.

permanent link
This answer is marked "community wiki".

answered 16 Apr '13, 22:49

automaciej's gravatar image

automaciej ♦♦
93273037
accept rate: 55%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×4

question asked: 16 Apr '13, 22:03

question was seen: 49,090 times

last updated: 16 Apr '13, 22:49

powered by OSQA