重新安装 KDE 桌面和 SDDM 后客户端被服务器配置拒绝

重新安装 KDE 桌面和 SDDM 后客户端被服务器配置拒绝

系统信息:

Ubuntu 22.04
KDE-Plasma-Version: 5.24.6
KDE-Frameworks-Version: 5.92.0
Qt-Version: 5.15.3
Kernel-Version: 5.15.0-10048-tuxedo (64-bit)
Apache 2.4.52

在系统清理期间,我似乎卸载了一些导致重新启动后出现以下错误的东西。

The current theme cannot be loaded due to the errors below, please select another theme.
file///usr/share/sddm/breeze/main.qml: No such file or directory

然后在终端中执行以下命令

sudo apt-get install --reinstall sddm-theme-breeze
sudo apt-get install --reinstall sddm
sudo dpkg-reconfigure sddm
sudo apt install --reinstall kde-plasma-desktop
sudo apt install --reinstall kde-standard

sudo systemctl unmask packagekit.service
sudo systemctl start packagekit.service
sudo systemctl unmask mysql.service
sudo systemctl unmask apache2.service

but mysql did not worked so i had to reinstall it
sudo apt-get --purge mysql*
sudo apt install --reinstall mysql
sudo apt install mysql-server

sudo chmod o+x $HOME

之后登录和 KDE 桌面再次工作。

但是,我现在本地网络服务器有问题。当我调用本地页面时,我在浏览器中收到 500 错误。

虚拟主机

<VirtualHost local.mydomain.de:443>
        ServerName local.mydomain.de:443
        ServerAdmin webmaster@localhost

        DocumentRoot /home/user/_projects/mydomain/webroot/
        <Directory /home/user/_projects/mydomain/webroot/>
                Options -Indexes +FollowSymLinks +MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
                Require all granted
        </Directory>

        SSLEngine on
        SSLCertificateFile    /home/user/local.mydomain.de+3.pem
        SSLCertificateKeyFile /home/user/local.mydomain.de+3-key.pem

        ErrorLog /var/log/apache2/error-mydomain.log
        LogLevel warn
        CustomLog /var/log/apache2/access-mydomain.log combined
        ServerSignature Off
</VirtualHost>

检查 apache2 error.log 给我这条消息

[authz_core:error] [pid 8214] [client 127.0.0.1:41014] AH01630: client denied by server configuration: /home/user/_projects/
apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/mydomain.conf: Permission denied
Action '-M' failed

现在我不知道如何解决这个问题。

答案1

该解决方案是唯一有助于让 apache 正常工作的解决方案

sudo apt-get remove --purge apache2 apache2-data apache2-utils
sudo apt-get install apache2

相关内容