
If anyone could help me out and tell me how to fix this issue that would be fantastic! My VPS is currently running the OS Centos 7. There was nothing else installed other than the tutorial that I went through to install the web server.
Code: Select all
# vi /etc/httpd/conf.d/phpMyAdmin.conf
Code: Select all
# service httpd restart
Code: Select all
<Directory /usr/share/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip YOUR-IP-HERE
#Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from YOUR-IP-HERE
#Allow from ::1
</IfModule>
</Directory>
Code: Select all
<Directory /usr/share/phpMyAdmin/>
Order allow,deny
Allow from all
</Directory>
As the tutorial said to I commented out the entire usr/share/phpMyAdmin directory by using the # tag in the beginning of each line. Should I have not of done that? Either way I had replaced the default IP to my home IP and it still will not let me access the phpMyAdmin - Should I remove all those # tags so that it actually reads the usr/share/phpMyAdmin directory?Markie wrote:Didn't get to edit my post in time, but here's two examples;
and the less secure method.. (allows connections from everyone)Code: Select all
<Directory /usr/share/phpMyAdmin/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip YOUR-IP-HERE #Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from YOUR-IP-HERE #Allow from ::1 </IfModule> </Directory>
Code: Select all
<Directory /usr/share/phpMyAdmin/> Order allow,deny Allow from all </Directory>
Can you please post your "phpMyAdmin.conf" without your IP(s) attached so I may have a closer look?lowheartrate wrote: As the tutorial said to I commented out the entire usr/share/phpMyAdmin directory by using the # tag in the beginning of each line. Should I have not of done that? Either way I had replaced the default IP to my home IP and it still will not let me access the phpMyAdmin - Should I remove all those # tags so that it actually reads the usr/share/phpMyAdmin directory?
You can take a look at the file in the following pastebin: http://pastebin.com/20azTxhTMarkie wrote:Can you please post your "phpMyAdmin.conf" without your IP(s) attached so I may have a closer look?lowheartrate wrote: As the tutorial said to I commented out the entire usr/share/phpMyAdmin directory by using the # tag in the beginning of each line. Should I have not of done that? Either way I had replaced the default IP to my home IP and it still will not let me access the phpMyAdmin - Should I remove all those # tags so that it actually reads the usr/share/phpMyAdmin directory?
Code: Select all
<Directory /usr/share/phpMyAdmin/>
#
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip YOUR-IP-HERE
#Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from YOUR-IP-HERE
#Allow from ::1
</IfModule>
#
</Directory>
Hmm thats weird ok I will fix that right away and get back to you.Markie wrote:I can see where the issue is here, the guide wanted you to use the comments between <Directory /usr/share/phpMyAdmin/> & </Directory>
Code: Select all
<Directory /usr/share/phpMyAdmin/> # <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip YOUR-IP-HERE #Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from YOUR-IP-HERE #Allow from ::1 </IfModule> # </Directory>
That fixed it, awesome! Thank you very much for your help. Maybe you can help me fix my next problem - How can I add the domain I own ( http://www.heartfx.org ) into my webserver so people don't have to type in that weird IP to view the website?Markie wrote:I can see where the issue is here, the guide wanted you to use the comments between <Directory /usr/share/phpMyAdmin/> & </Directory>
Code: Select all
<Directory /usr/share/phpMyAdmin/> # <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip YOUR-IP-HERE #Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from YOUR-IP-HERE #Allow from ::1 </IfModule> # </Directory>
Done! You're truly greatMarkie wrote:You would have to modify your DNS settings via the control panel of your domain provider (GoDaddy, Google Domains etc) and create an A record pointing towards your server's public IP.
Glad I could help you!