phpmyadmn - 403 forbidden
Posted by: MC_WRX (89.122.129.---)
Date: January 09, 2016 02:51PM

Hi everyone. I have a strange problem, I tried to update the phpMyAdmin to latest version, current 4.1.14, latest 4.5.3.1. If I copy the entire folder "phpmyadmin4.5.3.1" to .../wamp/apps/, I get the 403 Error, although I have updated the conf. files and set the correct path to the pma folder. But if just copy the new files to the old "phpmyadmin4.1.14" folder it works fine.

Where is the trick?



Edited 3 time(s). Last edit at 01/09/2016 02:53PM by MC_WRX.

Options: ReplyQuote
Re: phpmyadmn - 403 forbidden
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 09, 2016 04:18PM

Put the new version of phpMyAdmin in a new folder in \wamp\apps so like this

\wamp\apps\phpmyadmin4.5.3.1

Then edit \wamp\alias\phpmyadmin.conf

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/" 

# to give access to phpmyadmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#

<Directory "c:/wamp/apps/phpmyadmin4.1.14/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
  <IfDefine APACHE24>
    Require local
  </IfDefine>
  <IfDefine !APACHE24>
    Order Deny,Allow
	  Deny from all
	  Allow from localhost ::1 127.0.0.1
	</IfDefine>
  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>

And amend the 2 line that contain the old folder name to contain the new folder name

These 2
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/" 
<Directory "c:/wamp/apps/phpmyadmin4.1.14/">

TO

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.5.31/" 
<Directory "c:/wamp/apps/phpmyadmin4.5.31/">

Save the file.


Then RESTART APACHE

Then when you attempt to run phpMyAdmin in the browser, you may need to clear the Cache by doing a CTRL+F5

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.2.8 32bit & 64bit) Aestan Tray Menu 3.2.4.7
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: phpmyadmn - 403 forbidden
Posted by: MC_WRX (89.122.129.---)
Date: January 09, 2016 08:45PM

Thanks, but still not working...

Options: ReplyQuote
Re: phpmyadmn - 403 forbidden
Posted by: »Ð@RK ÐR@GÖN™« (179.43.104.---)
Date: January 09, 2016 10:45PM

Hi MC_WRX, how are you doing? I did exactly what RiggsFolly recommend and it works perfectly for me at the first intent. I also update phpsysinfo3.1.12 to phpsysinfo3.2.4

Question: After doing this can I delete/suppress the old versions of both phpMyadmin and PhpSysInfo, without encountering any issue? Or additional steps have to be taken before doing away with the old versions?

______________________________________________________________________
Powered By: JayManuel-NetWork4.org
©2015-2016 »Ð@RK ÐR@GÖN™«. All Rights Reserved.
______________________________________________________________________
WAMPServer 2.5 32bits
Apache2.4.18 | MySQL5.6.29 | php5.6.18-php5.5.32-php7.0.3
______________________________________________________________________

Options: ReplyQuote
Re: phpmyadmn - 403 forbidden
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 10, 2016 01:18AM

Dr@gon,

Yes once the new version is running it is ok to delete the old version

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.2.8 32bit & 64bit) Aestan Tray Menu 3.2.4.7
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: phpmyadmn - 403 forbidden
Posted by: Otomatic (Moderator)
Date: January 10, 2016 11:00AM

Hi,

It is not possible to have two (or more) alias.conf files with the same alias name inside.
Example:
file wamp/alias/phpmyadmin.conf with
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/" 
<Directory "c:/wamp/apps/phpmyadmin4.1.14/">

file wamp/alias/phpmyadmin4.5.3.1 with
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.5.3.1/" 
<Directory "c:/wamp/apps/phpmyadmin4.5.3.1/">
The first alias name must be different than the second, for example:
Alias /phpmyadmin4114 "c:/wamp/apps/phpmyadmin4.1.14/" 
<Directory "c:/wamp/apps/phpmyadmin4.1.14/">

Do not rename old alias conf files like phpmyadmin.old.conf or other. You must delete or move old alias files outside of wamp/alias/ folder because at the end of httpd.conf file there is Include "c:/wamp/alias/*" so, all file even if the extension is not .conf will be taken into account as alias file.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - 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: phpmyadmn - 403 forbidden
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 10, 2016 12:02PM

Sorry Oto,

Oto is right, but I was not suggesting that this person create 2 phpmyadmin.conf files.
I hope Dr@gon realised that.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.2.8 32bit & 64bit) Aestan Tray Menu 3.2.4.7
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.