Page 1 of 1

phpMyAdmin Vicidial 9.0.2

PostPosted: Thu Apr 30, 2020 2:27 am
by Smartercom
Hi, i'm testing last release of Vicidial 9.0.2 installed from iso on my virtual server but i have some problems with phpMyAdmin.I have installed from advanced installer and choose yes for install phpmyadmin, packet is installed but directory /srv/www/htdocs is empty and if i try to rech phpmyadmin page i receive 404 not found.Can you help me?What can i try?

Re: phpMyAdmin Vicidial 9.0.2

PostPosted: Thu Apr 30, 2020 3:02 am
by carpenox
u open port 8080 and try to get to it tru that port? http://127.0.0.1:8080/phpMyAdmin change 127.0.0.1 to your public ip

Re: phpMyAdmin Vicidial 9.0.2

PostPosted: Fri May 01, 2020 3:59 am
by Smartercom
carpenox wrote:u open port 8080 and try to get to it tru that port? http://127.0.0.1:8080/phpMyAdmin change 127.0.0.1 to your public ip


i have tried with no success...i need it to mange db..Thanks a lot for reply

Re: phpMyAdmin Vicidial 9.0.2

PostPosted: Fri May 01, 2020 4:47 am
by Kabis
File: /etc/httpd/conf.d/phpMyAdmin.php
Code: Select all
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 106.198.21.193
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from All
     Allow from ::1
   </IfModule>
</Directory>


Find your Ip. If private LAN, it's okay. Else find your workstation public IP. Put it in this code instead of 106.198.21.193.

After that restart httpd service.

Regards
KABIS

Re: phpMyAdmin Vicidial 9.0.2

PostPosted: Fri May 01, 2020 9:31 pm
by Smartercom
Thanks for reply, but problem is not here.I have resolved by editing original file phpMyAdmin.conf by this line

Code: Select all

   php_admin_value open_basedir "/srv/www/htdocs/phpMyAdmin:/var/lib/php7:/tmp:/usr/share/doc/packages/phpMyAdmin:/etc/phpMyAdmin:/proc/meminfo:/proc/stat"
</Directory>
<Directory /srv/www/htdocs/phpMyAdmin/libraries>
    Require all denied
</Directory>



i think the file point to usr/share and apache can not authorize this directory so i copied phpMyAdmin folder in srv/www/htdocs from usr/share...after reboot apache2 service..now it works as well..

Re: phpMyAdmin Vicidial 9.0.2

PostPosted: Sun May 31, 2020 11:39 am
by carpenox
yea i had to do the same thing