Search the Community
Showing results for tags 'apache2'.
Found 2 results
-
php handler in 10_froxlor_ipandport_$ip.443.conf, phpmyadmin
Moin! Ich habe mein Roundcube außerhalb von /var/www/html/ froxlor liegen: root@v201993 ~ # ls -la /var/lib/roundcube total 24 drwxr-xr-x 6 root root 4096 Sep 3 13:57 . drwxr-xr-x 53 root root 4096 Feb 19 18:44 .. lrwxrwxrwx 1 root root 14 Jun 2 2025 config -> /etc/roundcube lrwxrwxrwx 1 root root 23 Jun 2 2025 .htaccess -> /etc/roundcube/htaccess lrwxrwxrwx 1 root root 30 Jun 2 2025 index.php -> /usr/share/roundcube/index.php lrwxrwxrwx 1 root root 19 Jun 2 2025 logs -> ../../log/roundcube drwxr-xr-x 2 root root 4096 Sep 3 13:58 plugins lrwxrwxrwx 1 root root 28 Jun 2 2025 program -> /usr/share/roundcube/program drwxr-xr-x 3 root root 4096 Sep 3 13:57 public_html drwxr-xr-x 2 root root 4096 Sep 3 13:58 skins lrwxrwxrwx 1 root root 24 Jun 2 2025 SQL -> /usr/share/roundcube/SQL drwxr-x--- 2 www-data www-data 4096 Jun 2 2025 temp In /etc/apache2/conf-enabled/phpmyadmin.conf habe ich Folgendes stehen: root@server ~ # cat /etc/apache2/conf-enabled/phpmyadmin.conf # phpMyAdmin default Apache configuration Alias /phpmyadmin /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin> Options SymLinksIfOwnerMatch DirectoryIndex index.php # limit libapache2-mod-php to files and directories necessary by pma <IfModule mod_php7.c> php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpm yadmin/:/usr/share/php/:/usr/share/javascript/ </IfModule> # PHP 8+ <IfModule mod_php.c> php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpm yadmin/:/usr/share/php/:/usr/share/javascript/ </IfModule> </Directory> # Disallow web access to directories that don't need it <Directory /usr/share/phpmyadmin/templates> Require all denied </Directory> <Directory /usr/share/phpmyadmin/libraries> Require all denied </Directory> Nun ist es so, dass in meine /etc/apache2/sites-enabled/10_froxlor_ipandport_123.123.123.123.443.conf (Name und Inhalt bissl anonymisiert) der Handler nur für: root@server ~ # cat /etc/apache2/sites-enabled/10_froxlor_ipandport_123.123.123.123.443.conf # 10_froxlor_ipandport_123.123.123.123.443.conf # Created 20.02.2026 17:15 # Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel. <VirtualHost 123.123.123.123:443> DocumentRoot "/var/www/html/froxlor" ServerName server.domain <Directory "/var/www/html/froxlor/lib/"> <Files "userdata.inc.php"> Require all denied </Files> </Directory> <DirectoryMatch "^/var/www/html/froxlor/(bin|cache|logs|tests|vendor)/"> Require all denied </DirectoryMatch> <Directory "/var/www/html/froxlor/"> <FilesMatch \.(php)$> <If "-f %{SCRIPT_FILENAME}"> SetHandler proxy:unix:/var/lib/apache2/fastcgi/10-froxlor.panel-server.domain-php-fpm.socket|fcgi://localhost </If> </FilesMatch> Require all granted AllowOverride All </Directory> Protocols h2 http/1.1 SSLEngine On SSLProtocol -ALL +TLSv1.2 Protocols h2 http/1.1 SSLCompression Off SSLSessionTickets on SSLHonorCipherOrder off SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-DSS-AES128-SHA256:DHE-DSS-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!DHE-RSA-AES128-GCM-SHA256:!DHE-RSA-AES256-GCM-SHA384:!DHE-RSA-AES128-SHA256:!DHE-RSA-AES256-SHA:!DHE-RSA-AES128-SHA:!DHE-RSA-AES256-SHA256:!DHE-RSA-CAMELLIA128-SHA:!DHE-RSA-CAMELLIA256-SHA SSLVerifyDepth 10 SSLCertificateFile /etc/apache2/apache2.pem SSLCertificateKeyFile /etc/apache2/apache2.key SSLCACertificateFile /etc/apache2/apache2.ca </VirtualHost> Nun ist es so, dass der folgende Block dafür sorgt, dass phpmyadmin nicht mit dem php handler läuft und mir lediglich Quellcode beim Aufruf von phpmyadmin angezeigt wird: <Directory "/var/www/html/froxlor/"> <FilesMatch \.(php)$> <If "-f %{SCRIPT_FILENAME}"> SetHandler proxy:unix:/var/lib/apache2/fastcgi/10-froxlor.panel-server.domain-php-fpm.socket|fcgi://localhost </If> </FilesMatch> Require all granted AllowOverride All </Directory>weil phpmyadmin nicht unterhalb von /var/www/html/froxlor/ liegt und somit keinen handler hat. Passe ich hier Zeilen an, schreibt der froxlor-cron sie mir jedoch wieder rein. Meine Frage wäre also, wo genau sind diese Zeilen definiert? Wo genau finde ich eine Einstellung oder template um die default.conf nachhaltig zu beeinflussen? Vielen Dank im Voraus und schöne Grüße aus Hamburg! 🛹
-
Installationsschwierigkeiten von PHP-FPM mit Apache
Hallo, ich bin gerade dabei einen neuen Froxlor (0.10.30-1) Webserver aufzusetzen und komme leider nicht weiter, da die Anleitung leider etwas in die Jahre gekommen ist. Als Betriebssystem verwende ich Debian Bullseye 11.1.0 amd64. Ich habe Froxlor wie folgt konfiguriert: Install froxlor on debian: Punkte 1 - 4 Symbolischen Link erstellt um Froxlor über HTTP/HTTPS erreichen zu können: ln -s /var/www/froxlor/ /var/www/html/froxlor Froxlor über die Web UI installiert und die Services über Shell automatisch konfiguriert: php /var/www/froxlor//install/scripts/config-services.php --froxlor-dir=/var/www/froxlor/ --create choose distribution [bullseye]: Enter choose service [apache24]: Enter choose service [bind]: x choose service [postfix_dovecot]: x choose service [dovecot_postfix2]: x choose service [proftpd]: Enter Select every service you need. Enter empty value when done choose service: cron choose service: awstats choose service: libnssextrausers choose service: logrotate choose service: php-fpm choose service: Enter choose output-filename [/tmp/froxlor-config-20211125.json]: Enter Do you want to apply the config now? [y/N]: Y --- Configuring: FTP --- Do you want to continue? [Y/n] Enter Soweit so gut. Während der Konfiguration habe ich keine Fehler erhalten. Nun wollte ich anhang der Anleitung apache2 with php fpm PHP-FPM konfigurieren. Schritt 2 wurde vermutlich mit der Autokonfiguration über die Shell ausgeführt, jedoch fehlt z.B. das Modul fastcgi in Apache. Bei Schritt 3 weiß ich leider nicht woher ich die Inhalte von /etc/libnss-mysql-root.cfg und /etc/libnss-mysql.cfg herbekommen soll. Die Datei /etc/nsswitch.conf ist bereits vorhanden. Wenn ich im Froxlor Panel unter "System -> Configuration -> Debian Bullseye (11.x) - Others (System) - libnss-extrausers (required for FCGID/php-fpm/mpm-itk)" auswähle erscheint mir nur die Konfiguration von /etc/nsswitch.conf. Bei Schritt 4 gibt es die Datei /etc/apache2/mods-available/fastcgi.conf nicht, da in Schritt 2 das Modul nicht installiert/aktiviert wurde. Wie kann ich nun PHP-FPM auf einem aktuellen System installieren? Gibt es eine aktuelle Anleitung die ich vielleicht nicht gefunden habe? Vielen Dank im Voraus