1. XAMPP 问题总结

1.1. 外网访问phpmyadmin

sudo vim /opt/lampp/etc/extra/httpd-xampp.conf

# sudo vim /opt/lampp/etc/extra/httpd-xampp.conf
<Directory "/opt/lampp/phpmyadmin">
    #AllowOverride AuthConfig Limit
#    Require local
    AllowOverride AuthConfig
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

1.2. my.cnf 权限恢复

sudo chmod 644 my.cnf

1.3. vhost 样例

Listen 8888
<VirtualHost *:8888>
    ServerAdmin boxu@yvhai.com
    DocumentRoot "/var/www/foobar"
    ErrorLog "logs/foobar.error.log"
    CustomLog "logs/foobar.access.log" common

    <Directory "/var/www/foobar">
        Options Indexes FollowSymLinks ExecCGI Includes
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

1.4. 参考

Copyright © book.bbxyard.com 2014-2019 all right reserved,powered by Gitbook该文件修订时间: 2019-07-14 10:48:57

results matching ""

    No results matching ""