Install PHP 8 & Extensions (Ubuntu/Debian, Linux)
Install PHP 8.0
apt install php8.0
Install common PHP 8 Extensions
Install PHP 8.0
apt install php8.0
Install common PHP 8 Extensions
Neue Konfigurationsdatei (.ini) erstellen: \etc\php\7.0\cgi\conf.d\meine_eigene.ini
memory_limit = 2G
upload_max_size = 2G
post_max_size = 2G
upload_max_filesize = 2G
max_execution_time = 300
max_input_time = 3600
max_file_uploads = 1000xdebug.max_nesting_level = 512
session.gc_maxlifetime = 86400
# service apache2 reload
[core:alert] [pid 3559] [client 11.22.33.44:46457] /home/mysite/public_html/.htaccess: Option FollowSymLinks not allowed here
Certbot Installation (durch shell root) klappt nicht:
#/path/to/certbot/certbot-auto --apache
...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NotSupportedError('Apache plugin support requires libaugeas0 and augeas-lenses version 1.2.0 or higher, please make sure you have you have those installed.',)
Es gibt ein paar Websites, die auf Linux-Server laufen. Ich benutze selber zu Hause Windows. Ich habe keine Erfahrung mit GIT und PHPStorm.
Wie kann ich PHPStorm und GIT installieren und konfigurieren, dass Alles mindestens "Hello World" reibungslos läuft?
Redirect www to non www properly (wildcard / any hostname)
RewriteEngine On
RewriteBase /RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Redirect www.example.com to example.com (with hostname):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
Ich möchte meine alte Seite in einem Iframe anzeigen lassen, aber ich bekomme nur eine leere Seite zu sehen. Hatte gelesen, dass es an Header set X-Frame-Options liegen könnte. Stimmt das und wie kann ich dies über htaccess setzen?
<html>
<head></head>
<body>
<iframe src="https://www.meine-andere-seite.de/index.html" width="100%" height="100%"></iframe>
</body>
</html>
Mit diesem Befehl kann man Session Datein in "meineEigeneTmp" Ordner speichern.
ini_set("session.save_path", "meineEigeneTmp");
Hi, ich habe ein komisches Problem mit Apache-Modsecurity und PHP-Upload. Alle Apache-PHP Limits sind über Dateigröße. Trtzdem verhindert Modsecurity wegen MULTIPART_UNMATCHED_BOUNDARY. Wir kann ich das Problem lösen oder mindestens umgehen?
Die Fehlermeldung was ich in Apache error.log gefunden habe:
ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "/etc/modsecurity/modsecurity.conf"] [line "81"] [msg "Multipart parser detected a possible unmatched boundary."]