Forums MAMPStack

apache httpd.conf question

Subscribe to apache httpd.conf question 4 post(s), 2 voice(s)

 
Avatar inbox0003 3 post(s)

Hi,

In the docs with regards to using phpmyadmin it says:

“Initially only requests from 127.0.0.1 will be allowed access to that section. You can change this behavior editing the
Apache main configuration file located at /Applications/mampstack-0.9.4/apache2/conf/httpd.conf.”

Can somebody tell me where and what to insert a line that would make apache and phpmyadmin work with localhost instead of 127.0.0.1 ???

Thanks!
DC

 
Avatar beltran Administrator 370 post(s)

Hi,

We should update the documentation. You can modify this configuration file:

<installation_directory>/apps/phpmyadmin/conf/phpmyadmin.conf

 
Avatar inbox0003 3 post(s)

Hi, by where and what, I meant inside the httpd.conf … I was able to find the httpd.conf but am not clear on what changes to make to it. Thanks!

 
Avatar beltran Administrator 370 post(s)

Hi,

In the <installation_directory>/apps/phpmyadmin/conf/phpmyadmin.conf file you can find these lines:


Alias /phpmyadmin "/opt/lampstack-1.0-Beta-0/apps/phpmyadmin/htdocs" 

<Directory "/opt/lampstack-1.0-Beta-0/apps/phpmyadmin/htdocs">
AuthType Basic
AuthName phpMyAdmin
AuthUserFile "/opt/lampstack-1.0-Beta-0/apache2/users" 
Require valid-user
Order allow,deny
Allow from 127.0.0.1
Satisfy all
ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname" 
</Directory>

You only should replace 127.0.0.1 with localhost. I hope it helps!

Forums MAMPStack