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.
asked: 2013-04-16 by: joepr
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 220.127.116.11 -> ip of your workstation allow from ::1 </Directory>
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.