V
V
VicTHOR2020-07-13 16:29:27
Apache HTTP Server
VicTHOR, 2020-07-13 16:29:27

Where is the permission error?

config
Listen 127.0.0.1:1111
<VirtualHost 127.0.0.1:1111>
    # phpMyAdmin - Web based MySQL browser written in php
    #
    # Allows only localhost by default
    #
    # But allowing phpMyAdmin to anyone other than localhost should be considered
    # dangerous unless properly secured by SSL

    DocumentRoot /usr/share/phpMyAdmin

    <Directory />
        AddDefaultCharset UTF-8
        DirectoryIndex index.php
    php_admin_value session.save_path /tmp/php_sessions/phpmyadmin
    php_admin_value upload_tmp_dir /tmp/php_upload/phpmyadmin
        Require local
    </Directory>

    <Directory /setup/>
        Require local
    </Directory>

    # These directories do not require access over HTTP - taken from the original
    # phpMyAdmin upstream tarball
    #
    <Directory /libraries/>
        Require all denied
    </Directory>

    <Directory /templates/>
        Require all denied
    </Directory>

    <Directory /setup/lib/>
        Require all denied
    </Directory>

    <Directory /setup/frames/>
        Require all denied
    </Directory>

    # This configuration prevents mod_security at phpMyAdmin directories from
    # filtering SQL etc.  This may break your mod_security implementation.
    #
    #<IfModule mod_security.c>
    #    <Directory />
    #        SecRuleInheritance Off
    #    </Directory>
    #</IfModule>
</VirtualHost>

Default settings phpMyAdmin placed in VirtualHost, registered a directory for sessions and downloads, the rest is straight from the original phpmyadmin config.
Runs under the user, conditionally, apache
path to the phpMyAdmin root is the following
/usr (drwxr-xr-x.  13 root root)
  /share (drwxr-xr-x. 132 root  root)
    /phpMyAdmin (drwxr-xr-x   11 apache apache)

everything inside phpMyAdmin is the same (apache apache).
Why am I getting a 403 error?

Apache/2.4.6 (CentOS)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-07-13
@shambler81

Wait, what have you done and what do you want:
1. you installed phpmyadmin and when you write xxx.xxx.xxx.xxx/phpmyadmin everything works for you
2. you want to port phpmyadmin to a non-standard port ?
3. what's the point?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question