phpmyadmin forbidden
Posted by: dijsil (---.autosales.com.mt)
Date: October 31, 2019 04:13PM

I have just setup my wamp server and after editing httpd-vhosts.conf I managed to login from a remote pc (within same network) however when clicking on phpmyadmin I am encountering the permission error


I have edited phpmyadmin.conf and restarted the services (also the server just in case) however still didn't manage to get it working.

At the moment I changed the settings to all allow however eventually I wish to only allow a certain network to have access 192.168.20.xx


Alias /phpmyadmin "c:/wamp64/apps/phpmyadmin4.8.5/"


<Directory "c:/wamp64/apps/phpmyadmin4.8.5/">
	Options +Indexes +FollowSymLinks +MultiViews
  AllowOverride all
  <ifDefine APACHE24>
		Require all granted
	</ifDefine>
	<ifDefine !APACHE24>
		Order Deny,Allow
    Allow from all
    Allow from localhost ::1 127.0.0.1
	</ifDefine>

# To import big file you can increase values
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360
</Directory>



Edited 1 time(s). Last edit at 10/31/2019 04:23PM by RiggsFolly.

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: Otomatic (Moderator)
Date: October 31, 2019 04:21PM

Hi,

> I am encountering the permission error
Exact and complete error message ?

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.11/7.2.23/7.1.32/7.0.33/5.6.40 - MySQL 5.7.28 - MariaDB 10.4.9
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.11/7.2.23/7.1.32/7.0.33/5.6.40 - MySQL 5.7.28/8.0.18 - MariaDB 10.4.9
PhPMyadmin 4.9.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: dijsil (---.autosales.com.mt)
Date: October 31, 2019 04:44PM

Forbidden
You don't have permission to access /phpmyadmin/ on this server.
Apache/2.4.39 (Win64) PHP/7.2.18 Server at 192.168.xx.xxx Port 80


I am encountering it from the remote computer on same network. The local host is working fine (where it is installed)

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: RiggsFolly (Moderator)
Date: October 31, 2019 04:53PM

Also please specify how you are addressing phpMyAdmin when trying to run it from another PC

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.9 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.16>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: dijsil (---.autosales.com.mt)
Date: October 31, 2019 05:04PM

I am entering the ip address of the server and then when the wamp server web page loads I click on phpmyadmin under the tools section

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: RiggsFolly (Moderator)
Date: October 31, 2019 05:23PM

You cannot do it that way. That will try and launch `localhost/phpmyadmin` and the PC you are on does not have a localhost!

Try `192.168.x.y/phpmyadmin`

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.9 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.16>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: dijsil (---.autosales.com.mt)
Date: November 01, 2019 01:11PM

when clicking on the phpmyadmin it is trying to open [192.168.0.xx]

I tried turning off the firewall on the server just in case however still same issue.



Edited 1 time(s). Last edit at 11/01/2019 01:59PM by dijsil.

Options: ReplyQuote
Re: phpmyadmin forbidden
Posted by: dijsil (---.autosales.com.mt)
Date: November 04, 2019 04:44PM

never mind found a workaround gave user temp access to server

Options: ReplyQuote


Sorry, only registered users may post in this forum.