Skip to content

Instantly share code, notes, and snippets.

@andriilive
Last active August 28, 2024 01:07
Show Gist options
  • Select an option

  • Save andriilive/049c3cc9e77010cbd1528c21c8e1ff55 to your computer and use it in GitHub Desktop.

Select an option

Save andriilive/049c3cc9e77010cbd1528c21c8e1ff55 to your computer and use it in GitHub Desktop.
Wordpress Utils

OLS 20.04 Setup From Digitalocean Droplet

Build custom

https://github.com/litespeedtech/ls-cloud-image/wiki/Build-WordPress-Image

Serv

Admin Panel Conf

drwxr-x---  5 lsadm www-data 4096 Aug 27 10:10 .
drwxr-xr-x 24 root  root     4096 Feb  8  2024 ..
drwxr-x---  2 lsadm www-data 4096 Feb  5  2024 cert
-rwxr-x---  1 lsadm www-data 1651 Feb  8  2024 example.crt
-rwxr-x---  1 lsadm www-data 1704 Feb  8  2024 example.key
-rwxr-x---  1 lsadm www-data 8437 Aug 27 10:10 httpd_config.conf
-rwxr-x---  1 lsadm www-data 7637 Feb  5  2024 httpd_config.conf.dpkg
-rwxr-x---  1 lsadm www-data 5562 Aug 28 00:00 httpd_config.conf.txt
-rwxr-x---  1 root  root     8437 Aug 27 10:10 httpd_config.conf0
-r-xr-x---  1 root  root     9891 Aug 27 10:10 httpd_config.conf0,v
-rwxr-x---  1 lsadm www-data 5123 Feb  5  2024 mime.properties
-rwxr-x---  1 lsadm www-data 5123 Feb  8  2024 mime.properties0
-rwxr-x---  1 lsadm www-data 5338 Feb  8  2024 mime.properties0,v
drwxr-x---  2 lsadm www-data 4096 Feb  8  2024 templates
drwxr-x---  4 lsadm www-data 4096 Feb  8  2024 vhosts

Wordpress Vhost

batcat /usr/local/lsws/conf/vhosts/wordpress*/* --paging never
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ docRoot                   /var/www/html/
   2   β”‚
   3   β”‚ index  {
   4   β”‚   useServer               0
   5   β”‚   indexFiles              index.php index.html
   6   β”‚ }
   7   β”‚
   8   β”‚ context /phpmyadmin/ {
   9   β”‚   location                /var/www/phpmyadmin
  10   β”‚   allowBrowse             1
  11   β”‚   indexFiles              index.php
  12   β”‚
  13   β”‚   accessControl  {
  14   β”‚     allow                 *
  15   β”‚   }
  16   β”‚
  17   β”‚   rewrite  {
  18   β”‚     enable                0
  19   β”‚     inherit               0
  20   β”‚
  21   β”‚   }
  22   β”‚   addDefaultCharset       off
  23   β”‚
  24   β”‚   phpIniOverride  {
  25   β”‚
  26   β”‚   }
  27   β”‚ }
  28   β”‚
  29   β”‚ rewrite  {
  30   β”‚   enable                1
  31   β”‚   autoLoadHtaccess        1
  32   β”‚ }
  33   β”‚ vhssl  {
  34   β”‚             keyFile                 /etc/letsencrypt/live/iphonehub.cz/privkey.pem
  35   β”‚             certFile                /etc/letsencrypt/live/iphonehub.cz/fullchain.pem
  36   β”‚             certChain               1
  37   β”‚         }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf.txt
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ docroot /var/www/html/
   2   β”‚
   3   β”‚ rewrite  {
   4   β”‚     enable 1
   5   β”‚     autoloadhtaccess 1
   6   β”‚ }
   7   β”‚
   8   β”‚ context /phpmyadmin/ {
   9   β”‚     location /var/www/phpmyadmin
  10   β”‚     adddefaultcharset off
  11   β”‚     phpinioverride
  12   β”‚     indexfiles index.php
  13   β”‚     allowbrowse 1
  14   β”‚
  15   β”‚     rewrite  {
  16   β”‚         enable 0
  17   β”‚         inherit 0
  18   β”‚     }
  19   β”‚
  20   β”‚     accesscontrol  {
  21   β”‚         allow *
  22   β”‚     }
  23   β”‚ }
  24   β”‚
  25   β”‚ vhssl  {
  26   β”‚     keyfile /etc/letsencrypt/live/iphonehub.cz/privkey.pem
  27   β”‚     certfile /etc/letsencrypt/live/iphonehub.cz/fullchain.pem
  28   β”‚     certchain 1
  29   β”‚ }
  30   β”‚
  31   β”‚ index  {
  32   β”‚     indexfiles index.php index.html
  33   β”‚     useserver 0
  34   β”‚ }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf0
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ docRoot                   /var/www/html/
   2   β”‚
   3   β”‚ index  {
   4   β”‚   useServer               0
   5   β”‚   indexFiles              index.php index.html
   6   β”‚ }
   7   β”‚
   8   β”‚ context /phpmyadmin/ {
   9   β”‚   location                /var/www/phpmyadmin
  10   β”‚   allowBrowse             1
  11   β”‚   indexFiles              index.php
  12   β”‚
  13   β”‚   accessControl  {
  14   β”‚     allow                 *
  15   β”‚   }
  16   β”‚
  17   β”‚   rewrite  {
  18   β”‚     enable                0
  19   β”‚     inherit               0
  20   β”‚
  21   β”‚   }
  22   β”‚   addDefaultCharset       off
  23   β”‚
  24   β”‚   phpIniOverride  {
  25   β”‚
  26   β”‚   }
  27   β”‚ }
  28   β”‚
  29   β”‚ rewrite  {
  30   β”‚   enable                1
  31   β”‚   autoLoadHtaccess        1
  32   β”‚ }
  33   β”‚ vhssl  {
  34   β”‚             keyFile                 /etc/letsencrypt/live/iphonehub.cz/privkey.pem
  35   β”‚             certFile                /etc/letsencrypt/live/iphonehub.cz/fullchain.pem
  36   β”‚             certChain               1
  37   β”‚         }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf0,v
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ head    1.3;
   2   β”‚ access;
   3   β”‚ symbols;
   4   β”‚ locks
   5   β”‚     root:1.3; strict;
   6   β”‚ comment @# @;
   7   β”‚
   8   β”‚
   9   β”‚ 1.3
  10   β”‚ date    2024.08.27.10.10.48;    author root;    state Exp;
  11   β”‚ branches;
  12   β”‚ next    1.2;
  13   β”‚
  14   β”‚ 1.2
  15   β”‚ date    2024.02.08.06.09.09;    author root;    state Exp;
  16   β”‚ branches;
  17   β”‚ next    1.1;
  18   β”‚
  19   β”‚ 1.1
  20   β”‚ date    2024.02.08.06.07.56;    author root;    state Exp;
  21   β”‚ branches;
  22   β”‚ next    ;
  23   β”‚
  24   β”‚
  25   β”‚ desc
  26   β”‚ @/usr/local/lsws/conf/vhosts/wordpress/vhconf.conf0
  27   β”‚ @
  28   β”‚
  29   β”‚
  30   β”‚ 1.3
  31   β”‚ log
  32   β”‚ @Update
  33   β”‚ @
  34   β”‚ text
  35   β”‚ @docRoot                   /var/www/html/
  36   β”‚
  37   β”‚ index  {
  38   β”‚   useServer               0
  39   β”‚   indexFiles              index.php index.html
  40   β”‚ }
  41   β”‚
  42   β”‚ context /phpmyadmin/ {
  43   β”‚   location                /var/www/phpmyadmin
  44   β”‚   allowBrowse             1
  45   β”‚   indexFiles              index.php
  46   β”‚
  47   β”‚   accessControl  {
  48   β”‚     allow                 *
  49   β”‚   }
  50   β”‚
  51   β”‚   rewrite  {
  52   β”‚     enable                0
  53   β”‚     inherit               0
  54   β”‚
  55   β”‚   }
  56   β”‚   addDefaultCharset       off
  57   β”‚
  58   β”‚   phpIniOverride  {
  59   β”‚
  60   β”‚   }
  61   β”‚ }
  62   β”‚
  63   β”‚ rewrite  {
  64   β”‚   enable                1
  65   β”‚   autoLoadHtaccess        1
  66   β”‚ }
  67   β”‚ vhssl  {
  68   β”‚             keyFile                 /etc/letsencrypt/live/iphonehub.cz/privkey.pem
  69   β”‚             certFile                /etc/letsencrypt/live/iphonehub.cz/fullchain.pem
  70   β”‚             certChain               1
  71   β”‚         }
  72   β”‚ @
  73   β”‚
  74   β”‚
  75   β”‚ 1.2
  76   β”‚ log
  77   β”‚ @Update
  78   β”‚ @
  79   β”‚ text
  80   β”‚ @d33 5
  81   β”‚ @
  82   β”‚
  83   β”‚
  84   β”‚ 1.1
  85   β”‚ log
  86   β”‚ @Update
  87   β”‚ @
  88   β”‚ text
  89   β”‚ @d1 2
  90   β”‚ a2 1
  91   β”‚ docRoot                   $VH_ROOT/
  92   β”‚ d5 1
  93   β”‚ a5 1
  94   β”‚   indexFiles              index.php
  95   β”‚ d8 2
  96   β”‚ a9 2
  97   β”‚ context / {
  98   β”‚   location                $VH_ROOT
  99   β”‚ d13 4
 100   β”‚ d18 8
 101   β”‚ a25 3
 102   β”‚     enable                1
 103   β”‚     inherit               1
 104   β”‚     rewriteFile           /var/www/html.old/.htaccess
 105   β”‚ d30 1
 106   β”‚ a30 1
 107   β”‚   enable                  1
 108   β”‚ a32 1
 109   β”‚
 110   β”‚ @
/usr/bin

lrwxrwxrwx  1 root root          31 Feb  8  2024  php -> /usr/local/lsws/lsphp81/bin/php
lrwxrwxrwx  1 root root           7 Feb  1  2024  mysql -> mariadb
lrwxrwxrwx  1 root root          28 Feb  1  2024  mysql_convert_table_format -> mariadb-convert-table-format
lrwxrwxrwx  1 root root          17 Feb  1  2024  mysql_find_rows -> mariadb-find-rows
lrwxrwxrwx  1 root root          22 Feb  1  2024  mysql_fix_extensions -> mariadb-fix-extensions
lrwxrwxrwx  1 root root          18 Feb  1  2024  mysql_install_db -> mariadb-install-db
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysql_plugin -> mariadb-plugin
lrwxrwxrwx  1 root root          27 Feb  1  2024  mysql_secure_installation -> mariadb-secure-installation
lrwxrwxrwx  1 root root          21 Feb  1  2024  mysql_setpermission -> mariadb-setpermission
lrwxrwxrwx  1 root root          21 Feb  1  2024  mysql_tzinfo_to_sql -> mariadb-tzinfo-to-sql
lrwxrwxrwx  1 root root          15 Feb  1  2024  mysql_upgrade -> mariadb-upgrade
lrwxrwxrwx  1 root root          15 Feb  1  2024  mysql_waitpid -> mariadb-waitpid
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysqlaccess -> mariadb-access
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqladmin -> mariadb-admin
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqlanalyze -> mariadb-check
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysqlbinlog -> mariadb-binlog
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqlcheck -> mariadb-check
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysqld_multi -> mariadbd-multi
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqld_safe -> mariadbd-safe
lrwxrwxrwx  1 root root          20 Feb  1  2024  mysqld_safe_helper -> mariadbd-safe-helper
lrwxrwxrwx  1 root root          12 Feb  1  2024  mysqldump -> mariadb-dump
lrwxrwxrwx  1 root root          16 Feb  1  2024  mysqldumpslow -> mariadb-dumpslow
lrwxrwxrwx  1 root root          15 Feb  1  2024  mysqlhotcopy -> mariadb-hotcopy
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysqlimport -> mariadb-import
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqloptimize -> mariadb-check
lrwxrwxrwx  1 root root          13 Feb  1  2024  mysqlrepair -> mariadb-check
lrwxrwxrwx  1 root root          14 Feb  1  2024  mysqlreport -> mariadb-report
lrwxrwxrwx  1 root root          12 Feb  1  2024  mysqlshow -> mariadb-show
lrwxrwxrwx  1 root root          12 Feb  1  2024  mysqlslap -> mariadb-slap

-rwxr-xr-x  1 root root     5336816 Feb  1  2024  mariadb
-rwxr-xr-x  1 root root      111933 Feb  1  2024  mariadb-access
-rwxr-xr-x  1 root root     5073400 Feb  1  2024  mariadb-admin
lrwxrwxrwx  1 root root          13 Feb  1  2024  mariadb-analyze -> mariadb-check
-rwxr-xr-x  1 root root     5387440 Feb  1  2024  mariadb-binlog
-rwxr-xr-x  1 root root     5066648 Feb  1  2024  mariadb-check
-rwxr-xr-x  1 root root     4795600 Feb  1  2024  mariadb-conv
-rwxr-xr-x  1 root root        4221 Feb  1  2024  mariadb-convert-table-format
-rwxr-xr-x  1 root root     5162168 Feb  1  2024  mariadb-dump
-rwxr-xr-x  1 root root        8242 Feb  1  2024  mariadb-dumpslow
-rwxr-xr-x  1 root root        3290 Feb  1  2024  mariadb-find-rows
-rwxr-xr-x  1 root root        1250 Feb  1  2024  mariadb-fix-extensions
-rwxr-xr-x  1 root root       35344 Feb  1  2024  mariadb-hotcopy
-rwxr-xr-x  1 root root     5061400 Feb  1  2024  mariadb-import
-rwxr-xr-x  1 root root       23449 Feb  1  2024  mariadb-install-db
lrwxrwxrwx  1 root root          13 Feb  1  2024  mariadb-optimize -> mariadb-check
-rwxr-xr-x  1 root root     4747160 Feb  1  2024  mariadb-plugin
lrwxrwxrwx  1 root root          13 Feb  1  2024  mariadb-repair -> mariadb-check
-rwxr-xr-x  1 root root       50201 Feb  1  2024  mariadb-report
-rwxr-xr-x  1 root root       13699 Feb  1  2024  mariadb-secure-installation
-rwxr-xr-x  1 root root        2506 Feb  1  2024  mariadb-service-convert
-rwxr-xr-x  1 root root       17977 Feb  1  2024  mariadb-setpermission
-rwxr-xr-x  1 root root     5059928 Feb  1  2024  mariadb-show
-rwxr-xr-x  1 root root     5079160 Feb  1  2024  mariadb-slap
-rwxr-xr-x  1 root root     4746488 Feb  1  2024  mariadb-tzinfo-to-sql
-rwxr-xr-x  1 root root     5201784 Feb  1  2024  mariadb-upgrade
-rwxr-xr-x  1 root root     4733944 Feb  1  2024  mariadb-waitpid
lrwxrwxrwx  1 root root          13 Feb  1  2024  mariadbcheck -> mariadb-check
-rwxr-xr-x  1 root root       27335 Feb  1  2024  mariadbd-multi
-rwxr-xr-x  1 root root       31145 Feb  1  2024  mariadbd-safe
-rwxr-xr-x  1 root root     4708632 Feb  1  2024  mariadbd-safe-helper
/usr/local/bin -> wp

ls -la /var/www
total 20
drwxr-xr-x  5 www-data www-data  4096 Aug 27 10:56 .
drwxr-xr-x 14 root     root      4096 Feb  8  2024 ..
drwxr-xr-x  5 www-data wordpress 4096 Aug 27 22:57 html
drwxr-xr-x  2 www-data www-data  4096 Feb  8  2024 html.land
srwxrwx---  1 www-data www-data     0 Aug 27 10:56 memcached.sock
drwxr-xr-x 13 www-data www-data  4096 Aug 27 10:22 phpmyadmin
/usr/local/lsws/Example/
β”œβ”€β”€ cgi-bin
β”‚Β Β  └── helloworld
β”œβ”€β”€ fcgi-bin
β”œβ”€β”€ html
β”‚Β Β  β”œβ”€β”€ blocked
β”‚Β Β  β”‚Β Β  └── index.html
β”‚Β Β  β”œβ”€β”€ css
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bootstrap.min.css
β”‚Β Β  β”‚Β Β  └── custom.css
β”‚Β Β  β”œβ”€β”€ error404.html
β”‚Β Β  β”œβ”€β”€ img
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ 404-icon.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ blocked_content-icon.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cgi-icon.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ file_upload-icon.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ olsws_logo.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-icon.png
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ powered_by_ols-new.png
β”‚Β Β  β”‚Β Β  └── pwd_protect-icon.png
β”‚Β Β  β”œβ”€β”€ index.html
β”‚Β Β  β”œβ”€β”€ phpinfo.php
β”‚Β Β  β”œβ”€β”€ protected
β”‚Β Β  β”‚Β Β  └── index.html
β”‚Β Β  β”œβ”€β”€ upload.html
β”‚Β Β  └── upload.php
└── logs
    └── access.log
    
ls -lha /usr/local/lsws/fcgi-bin/
total 4.8M
drwxr-xr-x  2 root root 4.0K Feb  8  2024 .
drwxr-xr-x 24 root root 4.0K Feb  8  2024 ..
-rwxr-xr-x  1 root root 4.3K Feb  5  2024 RackRunner.rb
-rw-r--r--  1 root root 3.0K Feb  5  2024 lsnode.js
-rwxr-xr-x  1 root root 3.3K Feb  5  2024 lsperld.fpl
lrwxrwxrwx  1 root root    6 Feb  5  2024 lsphp -> lsphp5
-rwxr-xr-x  1 root root 4.8M Feb  5  2024 lsphp5
lrwxrwxrwx  1 root root   33 Feb  8  2024 lsphpnew -> /usr/local/lsws/lsphp81/bin/lsphp


β”œβ”€β”€ lsphp74
β”‚Β Β  β”œβ”€β”€ bin
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phar7.4 -> phar7.4.phar
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phar7.4.phar
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-helper
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-maintscript-helper
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php7.4
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpdismod
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpenmod
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpquery
β”‚Β Β  β”‚Β Β  └── sessionclean
β”‚Β Β  β”œβ”€β”€ etc
β”‚Β Β  β”‚Β Β  └── php
β”‚Β Β  β”‚Β Β      └── 7.4
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ litespeed
β”‚Β Β  β”‚Β Β          β”‚Β Β  └── php.ini
β”‚Β Β  β”‚Β Β          └── mods-available
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ imap.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ json.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ mysqli.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ opcache.ini
β”‚Β Β  β”‚Β Β              └── pdo_mysql.ini
β”‚Β Β  β”œβ”€β”€ lib
β”‚Β Β  β”‚Β Β  └── php
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ 20190902
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ imap.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ json.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ mysqli.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ opcache.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  └── pdo_mysql.so
β”‚Β Β  β”‚Β Β      └── 7.4
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-development
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-production
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-production.cli
β”‚Β Β  β”‚Β Β          └── sapi
β”‚Β Β  β”‚Β Β              └── litespeed
β”‚Β Β  β”œβ”€β”€ share
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ doc
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── lsphp74-common
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp74-imap
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── imap
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── imap.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp74-json
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── json
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── json.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp74-mysql
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── mysql
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”œβ”€β”€ mysqli.ini
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── pdo_mysql.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp74-opcache
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── opcache
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── opcache.ini
β”‚Β Β  β”‚Β Β  └── man
β”‚Β Β  β”‚Β Β      └── man1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ phar7.4.1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ phar7.4.phar.1
β”‚Β Β  β”‚Β Β          └── php7.4.1


β”œβ”€β”€ lsphp81
β”‚Β Β  β”œβ”€β”€ bin
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phar8.1 -> phar8.1.phar
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phar8.1.phar
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-helper
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php-maintscript-helper
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ php8.1
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpdismod
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpenmod
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ phpquery
β”‚Β Β  β”‚Β Β  └── sessionclean
β”‚Β Β  β”œβ”€β”€ etc
β”‚Β Β  β”‚Β Β  └── php
β”‚Β Β  β”‚Β Β      └── 8.1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ litespeed
β”‚Β Β  β”‚Β Β          β”‚Β Β  └── php.ini
β”‚Β Β  β”‚Β Β          └── mods-available
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ 40-igbinary.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ 40-imagick.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ 40-msgpack.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ 50-memcached.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ 50-redis.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ curl.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ imap.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ intl.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ mysqli.ini
β”‚Β Β  β”‚Β Β              β”œβ”€β”€ opcache.ini
β”‚Β Β  β”‚Β Β              └── pdo_mysql.ini
β”‚Β Β  β”œβ”€β”€ include
β”‚Β Β  β”‚Β Β  └── php
β”‚Β Β  β”‚Β Β      └── ext
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ igbinary
β”‚Β Β  β”‚Β Β          β”‚Β Β  β”œβ”€β”€ igbinary.h
β”‚Β Β  β”‚Β Β          β”‚Β Β  β”œβ”€β”€ php_igbinary.h
β”‚Β Β  β”‚Β Β          β”‚Β Β  └── src
β”‚Β Β  β”‚Β Β          β”‚Β Β      └── php7
β”‚Β Β  β”‚Β Β          β”‚Β Β          β”œβ”€β”€ igbinary.h
β”‚Β Β  β”‚Β Β          β”‚Β Β          └── php_igbinary.h
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ imagick
β”‚Β Β  β”‚Β Β          β”‚Β Β  └── php_imagick_shared.h
β”‚Β Β  β”‚Β Β          └── msgpack
β”‚Β Β  β”‚Β Β              └── php_msgpack.h
β”‚Β Β  β”œβ”€β”€ lib
β”‚Β Β  β”‚Β Β  └── php
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ 20210902
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ curl.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ igbinary.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ imagick.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ imap.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ intl.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ memcached.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ msgpack.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ mysqli.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ opcache.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  β”œβ”€β”€ pdo_mysql.so
β”‚Β Β  β”‚Β Β      β”‚Β Β  └── redis.so
β”‚Β Β  β”‚Β Β      └── 8.1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-development
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-production
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ php.ini-production.cli
β”‚Β Β  β”‚Β Β          └── sapi
β”‚Β Β  β”‚Β Β              └── litespeed
β”‚Β Β  β”œβ”€β”€ share
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ doc
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── lsphp81-common
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp81-curl
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── curl
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── curl.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp81-imap
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── imap
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── imap.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp81-intl
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── intl
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── intl.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp81-mysql
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── mysql
β”‚Β Β  β”‚Β Β  β”‚Β Β      β”œβ”€β”€ mysqli.ini
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── pdo_mysql.ini
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ lsphp81-opcache
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── opcache
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── opcache.ini
β”‚Β Β  β”‚Β Β  └── man
β”‚Β Β  β”‚Β Β      └── man1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ phar8.1.1
β”‚Β Β  β”‚Β Β          β”œβ”€β”€ phar8.1.phar.1
β”‚Β Β  β”‚Β Β          └── php8.1.1
β”‚Β Β  └── var
β”‚Β Β      └── lib
β”‚Β Β          └── php
β”‚Β Β              └── sessions
β”œβ”€β”€ lsrecaptcha
β”‚Β Β  β”œβ”€β”€ _recaptcha
β”‚Β Β  └── _recaptcha.shtml
β”œβ”€β”€ modules
β”‚Β Β  β”œβ”€β”€ cache.def
β”‚Β Β  β”œβ”€β”€ modcompress.def
β”‚Β Β  └── moddecompress.def
β”œβ”€β”€ password
β”œβ”€β”€ php
β”œβ”€β”€ phpbuild

WP

Pluginlist and env

OS:	Linux 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64
Shell:	/bin/bash
PHP binary:	/usr/local/lsws/lsphp81/bin/php
PHP version:	8.1.27
php.ini used:	/usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini
MySQL binary:	/usr/bin/mysql
MySQL version:	mysql  Ver 15.1 Distrib 10.11.7-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper
SQL modes:	
WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:	phar://wp-cli.phar/vendor
WP_CLI phar path:	/var/www/html
WP-CLI packages dir:	
WP-CLI cache dir:	/home/sftpuser/.wp-cli/cache
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.9.0

+--------------------------------+----------+-----------+---------+
| name                           | status   | update    | version |
+--------------------------------+----------+-----------+---------+
| akismet                        | inactive | available | 5.3.1   |
| all-in-one-wp-migration        | inactive | available | 7.79    |
| dologin                        | inactive | available | 3.7.1   |
| google-analytics-for-wordpress | inactive | available | 8.23.1  |
| jetpack                        | inactive | available | 13.1.1  |
| litespeed-cache                | active   | available | 6.1     |
| object-cache.php               | dropin   | none      |         |
+--------------------------------+----------+-----------+---------+

wp-content/.litespeed_conf.dat

{"object-kind":false,"object-host":"\/var\/www\/memcached.sock","object-port":0,"object-life":360,"object-user":"","object-pswd":"","object-db_id":0,"object-persistent":true,"object-admin":true,"object-transients":true,"object-global_groups":["users","userlogins","useremail","userslugs","usermeta","user_meta","site-transient","site-options","site-lookup","site-details","blog-lookup","blog-details","blog-id-cache","rss","global-posts","global-cache-test"],"object-non_persistent_groups":["comment","counts","plugins","wc_session_id"]}

plugins settings export

LSCWP_cfg-iphonehub.cz_-20240828_000111.data

["_version","6.1"]

["hash","sDZdRyD48KsWX1C4D56ZVE0hHnLG3NwQ"]

["auto_upgrade",true]

["api_key",""]

["server_ip",""]

["guest",false]

["guest_optm",false]

["news",true]

["guest_uas",["Lighthouse","GTmetrix","Google","Pingdom","bot","PTST","HeadlessChrome"]]

["guest_ips",["208.70.247.157","172.255.48.130","172.255.48.131","172.255.48.132","172.255.48.133","172.255.48.134","172.255.48.135","172.255.48.136","172.255.48.137","172.255.48.138","172.255.48.139","172.255.48.140","172.255.48.141","172.255.48.142","172.255.48.143","172.255.48.144","172.255.48.145","172.255.48.146","172.255.48.147","52.229.122.240","104.214.72.101","13.66.7.11","13.85.24.83","13.85.24.90","13.85.82.26","40.74.242.253","40.74.243.13","40.74.243.176","104.214.48.247","157.55.189.189","104.214.110.135","70.37.83.240","65.52.36.250","13.78.216.56","52.162.212.163","23.96.34.105","65.52.113.236","172.255.61.34","172.255.61.35","172.255.61.36","172.255.61.37","172.255.61.38","172.255.61.39","172.255.61.40","104.41.2.19","191.235.98.164","191.235.99.221","191.232.194.51","52.237.235.185","52.237.250.73","52.237.236.145","104.211.143.8","104.211.165.53","52.172.14.87","40.83.89.214","52.175.57.81","20.188.63.151","20.52.36.49","52.246.165.153","51.144.102.233","13.76.97.224","102.133.169.66","52.231.199.170","13.53.162.7","40.123.218.94"]]

["cache",true]

["cache-priv",true]

["cache-commenter",true]

["cache-rest",true]

["cache-page_login",true]

["cache-favicon",true]

["cache-resources",true]

["cache-mobile",false]

["cache-mobile_rules",["Mobile","Android","Silk\/","Kindle","BlackBerry","Opera Mini","Opera Mobi"]]

["cache-browser",true]

["cache-exc_useragents",[]]

["cache-exc_cookies",[]]

["cache-exc_qs",[]]

["cache-exc_cat",[]]

["cache-exc_tag",[]]

["cache-force_uri",[]]

["cache-force_pub_uri",[]]

["cache-priv_uri",[]]

["cache-exc",[]]

["cache-exc_roles",[]]

["cache-drop_qs",["fbclid","gclid","utm*","_ga"]]

["cache-ttl_pub",604800]

["cache-ttl_priv",1800]

["cache-ttl_frontpage",604800]

["cache-ttl_feed",604800]

["cache-ttl_rest",604800]

["cache-ttl_browser",31557600]

["cache-ttl_status",["403 3600","404 3600","500 3600"]]

["cache-login_cookie",""]

["cache-vary_cookies",[]]

["cache-vary_group",[]]

["purge-upgrade",true]

["purge-stale",false]

["purge-post_all",false]

["purge-post_f",true]

["purge-post_h",true]

["purge-post_p",true]

["purge-post_pwrp",true]

["purge-post_a",true]

["purge-post_y",false]

["purge-post_m",true]

["purge-post_d",false]

["purge-post_t",true]

["purge-post_pt",true]

["purge-timed_urls",[]]

["purge-timed_urls_time",""]

["purge-hook_all",["switch_theme","wp_create_nav_menu","wp_update_nav_menu","wp_delete_nav_menu","create_term","edit_terms","delete_term","add_link","edit_link","delete_link"]]

["esi",false]

["esi-cache_admbar",true]

["esi-cache_commform",true]

["esi-nonce",["stats_nonce","subscribe_nonce"]]

["util-instant_click",false]

["util-no_https_vary",false]

["debug-disable_all",false]

["debug",0]

["debug-ips",["127.0.0.1"]]

["debug-level",false]

["debug-filesize",3]

["debug-cookie",false]

["debug-collaps_qs",false]

["debug-inc",[]]

["debug-exc",[]]

["debug-exc_strings",[]]

["db_optm-revisions_max",0]

["db_optm-revisions_age",0]

["optm-css_min",false]

["optm-css_comb",false]

["optm-css_comb_ext_inl",true]

["optm-ucss",false]

["optm-ucss_inline",false]

["optm-ucss_whitelist",[]]

["optm-ucss_file_exc_inline",[]]

["optm-ucss_exc",[]]

["optm-css_exc",[]]

["optm-js_min",false]

["optm-js_comb",false]

["optm-js_comb_ext_inl",true]

["optm-js_delay_inc",[]]

["optm-js_exc",["jquery.js","jquery.min.js"]]

["optm-html_min",false]

["optm-html_lazy",[]]

["optm-qs_rm",false]

["optm-ggfonts_rm",false]

["optm-css_async",false]

["optm-ccss_per_url",false]

["optm-ccss_sep_posttype",["page"]]

["optm-ccss_sep_uri",[]]

["optm-css_async_inline",true]

["optm-css_font_display",false]

["optm-js_defer",0]

["optm-emoji_rm",false]

["optm-noscript_rm",false]

["optm-ggfonts_async",false]

["optm-exc_roles",[]]

["optm-ccss_con",""]

["optm-js_defer_exc",["jquery.js","jquery.min.js","gtm.js","analytics.js"]]

["optm-gm_js_exc",[]]

["optm-dns_prefetch",[]]

["optm-dns_prefetch_ctrl",false]

["optm-dns_preconnect",[]]

["optm-exc",[]]

["optm-guest_only",true]

["object",true]

["object-kind",false]

["object-host","\/var\/www\/memcached.sock"]

["object-port",0]

["object-life",360]

["object-persistent",true]

["object-admin",true]

["object-transients",true]

["object-db_id",0]

["object-user",""]

["object-pswd",""]

["object-global_groups",["users","userlogins","useremail","userslugs","usermeta","user_meta","site-transient","site-options","site-lookup","site-details","blog-lookup","blog-details","blog-id-cache","rss","global-posts","global-cache-test"]]

["object-non_persistent_groups",["comment","counts","plugins","wc_session_id"]]

["discuss-avatar_cache",false]

["discuss-avatar_cron",false]

["discuss-avatar_cache_ttl",604800]

["optm-localize",false]

["optm-localize_domains",["### Popular scripts ###","https:\/\/platform.twitter.com\/widgets.js","https:\/\/connect.facebook.net\/en_US\/fbevents.js"]]

["media-preload_featured",false]

["media-lazy",false]

["media-lazy_placeholder",""]

["media-placeholder_resp",false]

["media-placeholder_resp_color","#cfd4db"]

["media-placeholder_resp_svg","<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"{width}\" height=\"{height}\" viewBox=\"0 0 {width} {height}\"><rect width=\"100%\" height=\"100%\" style=\"fill:{color};fill-opacity: 0.1;\"\/><\/svg>"]

["media-lqip",false]

["media-lqip_qual",4]

["media-lqip_min_w",150]

["media-lqip_min_h",150]

["media-placeholder_resp_async",true]

["media-iframe_lazy",false]

["media-add_missing_sizes",false]

["media-lazy_exc",[]]

["media-lazy_cls_exc",["wmu-preview-img"]]

["media-lazy_parent_cls_exc",[]]

["media-iframe_lazy_cls_exc",[]]

["media-iframe_lazy_parent_cls_exc",[]]

["media-lazy_uri_exc",[]]

["media-lqip_exc",[]]

["media-vpi",false]

["media-vpi_cron",false]

["img_optm-auto",false]

["img_optm-cron",true]

["img_optm-ori",true]

["img_optm-rm_bkup",false]

["img_optm-webp",true]

["img_optm-lossless",false]

["img_optm-exif",true]

["img_optm-webp_attr",["img.src","div.data-thumb","img.data-src","img.data-lazyload","div.data-large_image","img.retina_logo_url","div.data-parallax-image","div.data-vc-parallax-image","video.poster"]]

["img_optm-webp_replace_srcset",false]

["img_optm-jpg_quality",82]

["crawler",false]

["crawler-usleep",500]

["crawler-run_duration",400]

["crawler-run_interval",600]

["crawler-crawl_interval",302400]

["crawler-threads",3]

["crawler-timeout",30]

["crawler-load_limit",1]

["crawler-sitemap",""]

["crawler-drop_domain",true]

["crawler-map_timeout",120]

["crawler-roles",[]]

["crawler-cookies",[]]

["misc-heartbeat_front",false]

["misc-heartbeat_front_ttl",60]

["misc-heartbeat_back",false]

["misc-heartbeat_back_ttl",60]

["misc-heartbeat_editor",false]

["misc-heartbeat_editor_ttl",15]

["cdn",false]

["cdn-ori",[]]

["cdn-ori_dir",["wp-content","wp-includes"]]

["cdn-exc",[]]

["cdn-quic",false]

["cdn-cloudflare",false]

["cdn-cloudflare_email",""]

["cdn-cloudflare_key",""]

["cdn-cloudflare_name",""]

["cdn-cloudflare_zone",""]

["cdn-mapping",[{"url":"","inc_img":"1","inc_css":"1","inc_js":"1","filetype":[".aac",".css",".eot",".gif",".jpeg",".js",".jpg",".less",".mp3",".mp4",".ogg",".otf",".pdf",".png",".svg",".ttf",".webp",".woff",".woff2"]}]]

["cdn-attr",[".src",".data-src",".href",".poster","source.srcset"]]

["qc-token",""]

["qc-nameservers",""]

["_cache",true]

Open Litespeed Admin demo config

Server config:

Screen Shot 2024-08-28 at 02 52 54

Screen Shot 2024-08-28 at 02 50 58

Screen Shot 2024-08-28 at 02 51 11

Screen Shot 2024-08-28 at 02 51 22

Screen Shot 2024-08-28 at 02 51 33

Screen Shot 2024-08-28 at 02 51 55

Screen Shot 2024-08-28 at 02 52 03

Screen Shot 2024-08-28 at 02 52 21

Screen Shot 2024-08-28 at 02 51 55

Screen Shot 2024-08-28 at 02 51 22

Listeners

80 443 SSL

Vhost Wordpress

Screenshot 2024-08-28 at 03-00-08 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-00-31 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-00-42 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-00-49 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-00-58 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-01-06 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-01-13 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-01-28 LiteSpeed WebAdmin Console

Screenshot 2024-08-28 at 03-01-36 LiteSpeed WebAdmin Console

Server config files:

batcat /usr/local/lsws/conf/httpd** --paging never
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/httpd_config.conf
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ #
   2   β”‚ # PLAIN TEXT CONFIGURATION FILE
   3   β”‚ #
   4   β”‚
   5   β”‚ # If not set, will use host name as serverName
   6   β”‚ serverName
   7   β”‚ user                             www-data
   8   β”‚ group                            www-data
   9   β”‚ priority                         0
  10   β”‚ autoRestart                      1
  11   β”‚ chrootPath                       /
  12   β”‚ enableChroot                     0
  13   β”‚ inMemBufSize                     60M
  14   β”‚ swappingDir                      /tmp/lshttpd/swap
  15   β”‚ autoFix503                       1
  16   β”‚ gracefulRestartTimeout           300
  17   β”‚ mime                             conf/mime.properties
  18   β”‚ showVersionNumber                0
  19   β”‚ adminEmails root@localhost
  20   β”‚ #adminEmails                      root@localhost
  21   β”‚ indexFiles                       index.html, index.php
  22   β”‚ disableWebAdmin                  0
  23   β”‚
  24   β”‚ errorlog logs/error.log {
  25   β”‚         keepDays             1
  26   β”‚         logLevel             DEBUG
  27   β”‚         debugLevel           0
  28   β”‚         rollingSize          10M
  29   β”‚         enableStderrLog      1
  30   β”‚ }
  31   β”‚
  32   β”‚ accessLog logs/access.log {
  33   β”‚         rollingSize          10M
  34   β”‚         keepDays             30
  35   β”‚         compressArchive      0
  36   β”‚         logReferer           1
  37   β”‚         logUserAgent         1
  38   β”‚ }
  39   β”‚
  40   β”‚ expires {
  41   β”‚     enableExpires           1
  42   β”‚     expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-fo
       β”‚ nt-ttf=A604800
  43   β”‚ }
  44   β”‚
  45   β”‚ tuning{
  46   β”‚     maxConnections               10000
  47   β”‚     maxSSLConnections            10000
  48   β”‚     connTimeout                  300
  49   β”‚     maxKeepAliveReq              10000
  50   β”‚     smartKeepAlive               0
  51   β”‚     keepAliveTimeout             5
  52   β”‚     sndBufSize                   0
  53   β”‚     rcvBufSize                   0
  54   β”‚     gzipStaticCompressLevel      6
  55   β”‚     gzipMaxFileSize              10M
  56   β”‚     eventDispatcher              best
  57   β”‚     maxCachedFileSize            4096
  58   β”‚     totalInMemCacheSize          20M
  59   β”‚     maxMMapFileSize              256K
  60   β”‚     totalMMapCacheSize           40M
  61   β”‚     useSendfile                  1
  62   β”‚     fileETag                     28
  63   β”‚     SSLCryptoDevice              null
  64   β”‚     maxReqURLLen                 32768
  65   β”‚     maxReqHeaderSize             65536
  66   β”‚     maxReqBodySize               2047M
  67   β”‚     maxDynRespHeaderSize         32768
  68   β”‚     maxDynRespSize               2047M
  69   β”‚     enableGzipCompress           1
  70   β”‚     enableBrCompress             4
  71   β”‚     enableDynGzipCompress        1
  72   β”‚     gzipCompressLevel            6
  73   β”‚     brStaticCompressLevel        6
  74   β”‚     compressibleTypes            default
  75   β”‚     gzipAutoUpdateStatic         1
  76   β”‚     gzipMinFileSize              300
  77   β”‚
  78   β”‚     quicEnable                   1
  79   β”‚     quicShmDir                   /dev/shm
  80   β”‚
  81   β”‚ }
  82   β”‚
  83   β”‚ accessDenyDir{
  84   β”‚     dir                  /
  85   β”‚     dir                  /etc/*
  86   β”‚     dir                  /dev/*
  87   β”‚     dir                  conf/*
  88   β”‚     dir                  admin/conf/*
  89   β”‚ }
  90   β”‚
  91   β”‚ fileAccessControl{
  92   β”‚     followSymbolLink                            1
  93   β”‚     checkSymbolLink                             0
  94   β”‚     requiredPermissionMask                      000
  95   β”‚     restrictedPermissionMask                    000
  96   β”‚ }
  97   β”‚
  98   β”‚ perClientConnLimit{
  99   β”‚     staticReqPerSec                          0
 100   β”‚     dynReqPerSec                             0
 101   β”‚     outBandwidth                             0
 102   β”‚     inBandwidth                              0
 103   β”‚     softLimit                                10000
 104   β”‚     hardLimit                                10000
 105   β”‚     gracePeriod                              15
 106   β”‚     banPeriod                                300
 107   β”‚ }
 108   β”‚
 109   β”‚ CGIRLimit{
 110   β”‚     maxCGIInstances                         20
 111   β”‚     minUID                                  11
 112   β”‚     minGID                                  10
 113   β”‚     priority                                0
 114   β”‚     CPUSoftLimit                            10
 115   β”‚     CPUHardLimit                            50
 116   β”‚     memSoftLimit                            2047M
 117   β”‚     memHardLimit                            2047M
 118   β”‚     procSoftLimit                           400
 119   β”‚     procHardLimit                           450
 120   β”‚ }
 121   β”‚
 122   β”‚ accessControl{
 123   β”‚     allow                                   ALL
 124   β”‚     deny
 125   β”‚ }
 126   β”‚
 127   β”‚ extProcessor lsphp{
 128   β”‚     type                            lsapi
 129   β”‚     address                         uds://tmp/lshttpd/lsphp.sock
 130   β”‚     maxConns                        10
 131   β”‚     env                             PHP_LSAPI_CHILDREN=10
 132   β”‚     env                             LSAPI_AVOID_FORK=200M
 133   β”‚     initTimeout                     60
 134   β”‚     retryTimeout                    0
 135   β”‚     persistConn                     1
 136   β”‚     pcKeepAliveTimeout
 137   β”‚     respBuffer                      0
 138   β”‚     autoStart                       1
 139   β”‚     path                            lsphp81/bin/lsphp
 140   β”‚     backlog                         100
 141   β”‚     instances                       1
 142   β”‚     priority                        0
 143   β”‚     memSoftLimit                    0
 144   β”‚     memHardLimit                    0
 145   β”‚     procSoftLimit                   1400
 146   β”‚     procHardLimit                   1500
 147   β”‚ }
 148   β”‚
 149   β”‚ scriptHandler{
 150   β”‚     add lsapi:lsphp  php
 151   β”‚ }
 152   β”‚
 153   β”‚ railsDefaults{
 154   β”‚     binPath
 155   β”‚     railsEnv                 1
 156   β”‚     maxConns                 1
 157   β”‚     env                      LSAPI_MAX_IDLE=60
 158   β”‚     initTimeout              60
 159   β”‚     retryTimeout             0
 160   β”‚     pcKeepAliveTimeout       60
 161   β”‚     respBuffer               0
 162   β”‚     backlog                  50
 163   β”‚     runOnStartUp             3
 164   β”‚     extMaxIdleTime           300
 165   β”‚     priority                 3
 166   β”‚     memSoftLimit             0
 167   β”‚     memHardLimit             0
 168   β”‚     procSoftLimit            500
 169   β”‚     procHardLimit            600
 170   β”‚ }
 171   β”‚
 172   β”‚ wsgiDefaults{
 173   β”‚     binPath
 174   β”‚     railsEnv                 1
 175   β”‚     maxConns                 5
 176   β”‚     env                      LSAPI_MAX_IDLE=60
 177   β”‚     initTimeout              60
 178   β”‚     retryTimeout             0
 179   β”‚     pcKeepAliveTimeout       60
 180   β”‚     respBuffer               0
 181   β”‚     backlog                  50
 182   β”‚     runOnStartUp             3
 183   β”‚     extMaxIdleTime           300
 184   β”‚     priority                 3
 185   β”‚     memSoftLimit             0
 186   β”‚     memHardLimit             0
 187   β”‚     procSoftLimit            500
 188   β”‚     procHardLimit            600
 189   β”‚ }
 190   β”‚
 191   β”‚ nodeDefaults{
 192   β”‚     binPath
 193   β”‚     railsEnv                 1
 194   β”‚     maxConns                 5
 195   β”‚     env                      LSAPI_MAX_IDLE=60
 196   β”‚     initTimeout              60
 197   β”‚     retryTimeout             0
 198   β”‚     pcKeepAliveTimeout       60
 199   β”‚     respBuffer               0
 200   β”‚     backlog                  50
 201   β”‚     runOnStartUp             3
 202   β”‚     extMaxIdleTime           300
 203   β”‚     priority                 3
 204   β”‚     memSoftLimit             0
 205   β”‚     memHardLimit             0
 206   β”‚     procSoftLimit            500
 207   β”‚     procHardLimit            600
 208   β”‚ }
 209   β”‚
 210   β”‚ virtualHost Example{
 211   β”‚     vhRoot                   Example/
 212   β”‚     allowSymbolLink          1
 213   β”‚     enableScript             1
 214   β”‚     restrained               1
 215   β”‚     maxKeepAliveReq
 216   β”‚     smartKeepAlive
 217   β”‚     setUIDMode               0
 218   β”‚     chrootMode               0
 219   β”‚     configFile               conf/vhosts/Example/vhconf.conf
 220   β”‚ }
 221   β”‚
 222   β”‚ listener Default{
 223   β”‚     address                  *:8088
 224   β”‚     secure                   0
 225   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 226   β”‚ }
 227   β”‚
 228   β”‚ vhTemplate centralConfigLog{
 229   β”‚     templateFile             conf/templates/ccl.conf
 230   β”‚     listeners                Default
 231   β”‚ }
 232   β”‚
 233   β”‚ vhTemplate EasyRailsWithSuEXEC{
 234   β”‚     templateFile             conf/templates/rails.conf
 235   β”‚     listeners                Default
 236   β”‚ }
 237   β”‚
 238   β”‚ module cache {
 239   β”‚     ls_enabled   1
 240   β”‚ #          1
 241   β”‚
 242   β”‚     checkPrivateCache   1
 243   β”‚     checkPublicCache    1
 244   β”‚     maxCacheObjSize     10000000
 245   β”‚     maxStaleAge         0
 246   β”‚     qsCache             1
 247   β”‚     reqCookieCache      1
 248   β”‚     respCookieCache     1
 249   β”‚     ignoreReqCacheCtrl  1
 250   β”‚     ignoreRespCacheCtrl 0
 251   β”‚
 252   β”‚     enableCache         0
 253   β”‚     expireInSeconds     3600
 254   β”‚     enablePrivateCache  0
 255   β”‚     privateExpireInSeconds 3600
 256   β”‚
 257   β”‚ }
 258   β”‚
 259   β”‚
 260   β”‚ listener wordpress {
 261   β”‚ address                 *:80
 262   β”‚ secure                  0
 263   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 264   β”‚ }
 265   β”‚
 266   β”‚
 267   β”‚ listener wordpressssl {
 268   β”‚ address                 *:443
 269   β”‚ secure                  1
 270   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 271   β”‚ keyFile                 /usr/local/lsws/conf/example.key
 272   β”‚ certFile                /usr/local/lsws/conf/example.crt
 273   β”‚ }
 274   β”‚
 275   β”‚
 276   β”‚ virtualhost wordpress {
 277   β”‚ vhRoot                  /var/www/html
 278   β”‚ configFile              /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
 279   β”‚ allowSymbolLink         1
 280   β”‚ enableScript            1
 281   β”‚ restrained              0
 282   β”‚ setUIDMode              2
 283   β”‚ }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/httpd_config.conf.dpkg
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ #
   2   β”‚ # PLAIN TEXT CONFIGURATION FILE
   3   β”‚ #
   4   β”‚
   5   β”‚ # If not set, will use host name as serverName
   6   β”‚ serverName
   7   β”‚ user                             nobody
   8   β”‚ group                            nogroup
   9   β”‚ priority                         0
  10   β”‚ autoRestart                      1
  11   β”‚ chrootPath                       /
  12   β”‚ enableChroot                     0
  13   β”‚ inMemBufSize                     60M
  14   β”‚ swappingDir                      /tmp/lshttpd/swap
  15   β”‚ autoFix503                       1
  16   β”‚ gracefulRestartTimeout           300
  17   β”‚ mime                             conf/mime.properties
  18   β”‚ showVersionNumber                0
  19   β”‚ adminEmails                      root@localhost
  20   β”‚ indexFiles                       index.html, index.php
  21   β”‚ disableWebAdmin                  0
  22   β”‚
  23   β”‚ errorlog logs/error.log {
  24   β”‚         logLevel             DEBUG
  25   β”‚         debugLevel           0
  26   β”‚         rollingSize          10M
  27   β”‚         enableStderrLog      1
  28   β”‚ }
  29   β”‚
  30   β”‚ accessLog logs/access.log {
  31   β”‚         rollingSize          10M
  32   β”‚         keepDays             30
  33   β”‚         compressArchive      0
  34   β”‚         logReferer           1
  35   β”‚         logUserAgent         1
  36   β”‚ }
  37   β”‚
  38   β”‚ expires {
  39   β”‚     enableExpires           1
  40   β”‚     expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-fo
       β”‚ nt-ttf=A604800
  41   β”‚ }
  42   β”‚
  43   β”‚ tuning{
  44   β”‚     maxConnections               10000
  45   β”‚     maxSSLConnections            10000
  46   β”‚     connTimeout                  300
  47   β”‚     maxKeepAliveReq              10000
  48   β”‚     smartKeepAlive               0
  49   β”‚     keepAliveTimeout             5
  50   β”‚     sndBufSize                   0
  51   β”‚     rcvBufSize                   0
  52   β”‚     gzipStaticCompressLevel      6
  53   β”‚     gzipMaxFileSize              10M
  54   β”‚     eventDispatcher              best
  55   β”‚     maxCachedFileSize            4096
  56   β”‚     totalInMemCacheSize          20M
  57   β”‚     maxMMapFileSize              256K
  58   β”‚     totalMMapCacheSize           40M
  59   β”‚     useSendfile                  1
  60   β”‚     fileETag                     28
  61   β”‚     SSLCryptoDevice              null
  62   β”‚     maxReqURLLen                 32768
  63   β”‚     maxReqHeaderSize             65536
  64   β”‚     maxReqBodySize               2047M
  65   β”‚     maxDynRespHeaderSize         32768
  66   β”‚     maxDynRespSize               2047M
  67   β”‚     enableGzipCompress           1
  68   β”‚     enableBrCompress             4
  69   β”‚     enableDynGzipCompress        1
  70   β”‚     gzipCompressLevel            6
  71   β”‚     brStaticCompressLevel        6
  72   β”‚     compressibleTypes            default
  73   β”‚     gzipAutoUpdateStatic         1
  74   β”‚     gzipMinFileSize              300
  75   β”‚
  76   β”‚     quicEnable                   1
  77   β”‚     quicShmDir                   /dev/shm
  78   β”‚
  79   β”‚ }
  80   β”‚
  81   β”‚ accessDenyDir{
  82   β”‚     dir                  /
  83   β”‚     dir                  /etc/*
  84   β”‚     dir                  /dev/*
  85   β”‚     dir                  conf/*
  86   β”‚     dir                  admin/conf/*
  87   β”‚ }
  88   β”‚
  89   β”‚ fileAccessControl{
  90   β”‚     followSymbolLink                            1
  91   β”‚     checkSymbolLink                             0
  92   β”‚     requiredPermissionMask                      000
  93   β”‚     restrictedPermissionMask                    000
  94   β”‚ }
  95   β”‚
  96   β”‚ perClientConnLimit{
  97   β”‚     staticReqPerSec                          0
  98   β”‚     dynReqPerSec                             0
  99   β”‚     outBandwidth                             0
 100   β”‚     inBandwidth                              0
 101   β”‚     softLimit                                10000
 102   β”‚     hardLimit                                10000
 103   β”‚     gracePeriod                              15
 104   β”‚     banPeriod                                300
 105   β”‚ }
 106   β”‚
 107   β”‚ CGIRLimit{
 108   β”‚     maxCGIInstances                         20
 109   β”‚     minUID                                  11
 110   β”‚     minGID                                  10
 111   β”‚     priority                                0
 112   β”‚     CPUSoftLimit                            10
 113   β”‚     CPUHardLimit                            50
 114   β”‚     memSoftLimit                            2047M
 115   β”‚     memHardLimit                            2047M
 116   β”‚     procSoftLimit                           400
 117   β”‚     procHardLimit                           450
 118   β”‚ }
 119   β”‚
 120   β”‚ accessControl{
 121   β”‚     allow                                   ALL
 122   β”‚     deny
 123   β”‚ }
 124   β”‚
 125   β”‚ extProcessor lsphp{
 126   β”‚     type                            lsapi
 127   β”‚     address                         uds://tmp/lshttpd/lsphp.sock
 128   β”‚     maxConns                        10
 129   β”‚     env                             PHP_LSAPI_CHILDREN=10
 130   β”‚     env                             LSAPI_AVOID_FORK=200M
 131   β”‚     initTimeout                     60
 132   β”‚     retryTimeout                    0
 133   β”‚     persistConn                     1
 134   β”‚     pcKeepAliveTimeout
 135   β”‚     respBuffer                      0
 136   β”‚     autoStart                       1
 137   β”‚     path                            lsphp74/bin/lsphp
 138   β”‚     backlog                         100
 139   β”‚     instances                       1
 140   β”‚     priority                        0
 141   β”‚     memSoftLimit                    0
 142   β”‚     memHardLimit                    0
 143   β”‚     procSoftLimit                   1400
 144   β”‚     procHardLimit                   1500
 145   β”‚ }
 146   β”‚
 147   β”‚ scriptHandler{
 148   β”‚     add lsapi:lsphp  php
 149   β”‚ }
 150   β”‚
 151   β”‚ railsDefaults{
 152   β”‚     binPath
 153   β”‚     railsEnv                 1
 154   β”‚     maxConns                 1
 155   β”‚     env                      LSAPI_MAX_IDLE=60
 156   β”‚     initTimeout              60
 157   β”‚     retryTimeout             0
 158   β”‚     pcKeepAliveTimeout       60
 159   β”‚     respBuffer               0
 160   β”‚     backlog                  50
 161   β”‚     runOnStartUp             3
 162   β”‚     extMaxIdleTime           300
 163   β”‚     priority                 3
 164   β”‚     memSoftLimit             0
 165   β”‚     memHardLimit             0
 166   β”‚     procSoftLimit            500
 167   β”‚     procHardLimit            600
 168   β”‚ }
 169   β”‚
 170   β”‚ wsgiDefaults{
 171   β”‚     binPath
 172   β”‚     railsEnv                 1
 173   β”‚     maxConns                 5
 174   β”‚     env                      LSAPI_MAX_IDLE=60
 175   β”‚     initTimeout              60
 176   β”‚     retryTimeout             0
 177   β”‚     pcKeepAliveTimeout       60
 178   β”‚     respBuffer               0
 179   β”‚     backlog                  50
 180   β”‚     runOnStartUp             3
 181   β”‚     extMaxIdleTime           300
 182   β”‚     priority                 3
 183   β”‚     memSoftLimit             0
 184   β”‚     memHardLimit             0
 185   β”‚     procSoftLimit            500
 186   β”‚     procHardLimit            600
 187   β”‚ }
 188   β”‚
 189   β”‚ nodeDefaults{
 190   β”‚     binPath
 191   β”‚     railsEnv                 1
 192   β”‚     maxConns                 5
 193   β”‚     env                      LSAPI_MAX_IDLE=60
 194   β”‚     initTimeout              60
 195   β”‚     retryTimeout             0
 196   β”‚     pcKeepAliveTimeout       60
 197   β”‚     respBuffer               0
 198   β”‚     backlog                  50
 199   β”‚     runOnStartUp             3
 200   β”‚     extMaxIdleTime           300
 201   β”‚     priority                 3
 202   β”‚     memSoftLimit             0
 203   β”‚     memHardLimit             0
 204   β”‚     procSoftLimit            500
 205   β”‚     procHardLimit            600
 206   β”‚ }
 207   β”‚
 208   β”‚ virtualHost Example{
 209   β”‚     vhRoot                   Example/
 210   β”‚     allowSymbolLink          1
 211   β”‚     enableScript             1
 212   β”‚     restrained               1
 213   β”‚     maxKeepAliveReq
 214   β”‚     smartKeepAlive
 215   β”‚     setUIDMode               0
 216   β”‚     chrootMode               0
 217   β”‚     configFile               conf/vhosts/Example/vhconf.conf
 218   β”‚ }
 219   β”‚
 220   β”‚ listener Default{
 221   β”‚     address                  *:8088
 222   β”‚     secure                   0
 223   β”‚     map                      Example *
 224   β”‚ }
 225   β”‚
 226   β”‚ vhTemplate centralConfigLog{
 227   β”‚     templateFile             conf/templates/ccl.conf
 228   β”‚     listeners                Default
 229   β”‚ }
 230   β”‚
 231   β”‚ vhTemplate EasyRailsWithSuEXEC{
 232   β”‚     templateFile             conf/templates/rails.conf
 233   β”‚     listeners                Default
 234   β”‚ }
 235   β”‚
 236   β”‚ module cache {
 237   β”‚     ls_enabled          1
 238   β”‚
 239   β”‚     checkPrivateCache   1
 240   β”‚     checkPublicCache    1
 241   β”‚     maxCacheObjSize     10000000
 242   β”‚     maxStaleAge         200
 243   β”‚     qsCache             1
 244   β”‚     reqCookieCache      1
 245   β”‚     respCookieCache     1
 246   β”‚     ignoreReqCacheCtrl  1
 247   β”‚     ignoreRespCacheCtrl 0
 248   β”‚
 249   β”‚     enableCache         0
 250   β”‚     expireInSeconds     3600
 251   β”‚     enablePrivateCache  0
 252   β”‚     privateExpireInSeconds 3600
 253   β”‚
 254   β”‚ }
 255   β”‚
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/httpd_config.conf.txt
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ servername
   2   β”‚ user www-data
   3   β”‚ group www-data
   4   β”‚ priority 0
   5   β”‚ autorestart 1
   6   β”‚ chrootpath /
   7   β”‚ enablechroot 0
   8   β”‚ inmembufsize 60M
   9   β”‚ swappingdir /tmp/lshttpd/swap
  10   β”‚ autofix503 1
  11   β”‚ gracefulrestarttimeout 300
  12   β”‚ mime conf/mime.properties
  13   β”‚ showversionnumber 0
  14   β”‚ adminemails root@localhost
  15   β”‚ indexfiles index.html, index.php
  16   β”‚ disablewebadmin 0
  17   β”‚
  18   β”‚ errorlog logs/error.log {
  19   β”‚     keepdays 1
  20   β”‚     loglevel DEBUG
  21   β”‚     debuglevel 0
  22   β”‚     rollingsize 10M
  23   β”‚     enablestderrlog 1
  24   β”‚ }
  25   β”‚
  26   β”‚ accesslog logs/access.log {
  27   β”‚     rollingsize 10M
  28   β”‚     keepdays 30
  29   β”‚     compressarchive 0
  30   β”‚     logreferer 1
  31   β”‚     loguseragent 1
  32   β”‚ }
  33   β”‚
  34   β”‚ expires  {
  35   β”‚     enableexpires 1
  36   β”‚     expiresbytype image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A60
       β”‚ 4800
  37   β”‚ }
  38   β”‚
  39   β”‚ tuning  {
  40   β”‚     maxconnections 10000
  41   β”‚     maxsslconnections 10000
  42   β”‚     conntimeout 300
  43   β”‚     maxkeepalivereq 10000
  44   β”‚     smartkeepalive 0
  45   β”‚     keepalivetimeout 5
  46   β”‚     sndbufsize 0
  47   β”‚     rcvbufsize 0
  48   β”‚     gzipstaticcompresslevel 6
  49   β”‚     gzipmaxfilesize 10M
  50   β”‚     eventdispatcher best
  51   β”‚     maxcachedfilesize 4096
  52   β”‚     totalinmemcachesize 20M
  53   β”‚     maxmmapfilesize 256K
  54   β”‚     totalmmapcachesize 40M
  55   β”‚     usesendfile 1
  56   β”‚     fileetag 28
  57   β”‚     sslcryptodevice null
  58   β”‚     maxrequrllen 32768
  59   β”‚     maxreqheadersize 65536
  60   β”‚     maxreqbodysize 2047M
  61   β”‚     maxdynrespheadersize 32768
  62   β”‚     maxdynrespsize 2047M
  63   β”‚     enablegzipcompress 1
  64   β”‚     enablebrcompress 4
  65   β”‚     enabledyngzipcompress 1
  66   β”‚     gzipcompresslevel 6
  67   β”‚     brstaticcompresslevel 6
  68   β”‚     compressibletypes default
  69   β”‚     gzipautoupdatestatic 1
  70   β”‚     gzipminfilesize 300
  71   β”‚     quicenable 1
  72   β”‚     quicshmdir /dev/shm
  73   β”‚ }
  74   β”‚
  75   β”‚ accessdenydir  {
  76   β”‚     dir /
  77   β”‚     dir /etc/*
  78   β”‚     dir /dev/*
  79   β”‚     dir conf/*
  80   β”‚     dir admin/conf/*
  81   β”‚ }
  82   β”‚
  83   β”‚ fileaccesscontrol  {
  84   β”‚     followsymbollink 1
  85   β”‚     checksymbollink 0
  86   β”‚     requiredpermissionmask 000
  87   β”‚     restrictedpermissionmask 000
  88   β”‚ }
  89   β”‚
  90   β”‚ perclientconnlimit  {
  91   β”‚     staticreqpersec 0
  92   β”‚     dynreqpersec 0
  93   β”‚     outbandwidth 0
  94   β”‚     inbandwidth 0
  95   β”‚     softlimit 10000
  96   β”‚     hardlimit 10000
  97   β”‚     graceperiod 15
  98   β”‚     banperiod 300
  99   β”‚ }
 100   β”‚
 101   β”‚ cgirlimit  {
 102   β”‚     maxcgiinstances 20
 103   β”‚     minuid 11
 104   β”‚     mingid 10
 105   β”‚     priority 0
 106   β”‚     cpusoftlimit 10
 107   β”‚     cpuhardlimit 50
 108   β”‚     memsoftlimit 2047M
 109   β”‚     memhardlimit 2047M
 110   β”‚     procsoftlimit 400
 111   β”‚     prochardlimit 450
 112   β”‚ }
 113   β”‚
 114   β”‚ accesscontrol  {
 115   β”‚     allow ALL
 116   β”‚     deny
 117   β”‚ }
 118   β”‚
 119   β”‚ extprocessor lsphp {
 120   β”‚     type lsapi
 121   β”‚     address uds://tmp/lshttpd/lsphp.sock
 122   β”‚     maxconns 10
 123   β”‚     env PHP_LSAPI_CHILDREN=10
 124   β”‚     env LSAPI_AVOID_FORK=200M
 125   β”‚     inittimeout 60
 126   β”‚     retrytimeout 0
 127   β”‚     persistconn 1
 128   β”‚     pckeepalivetimeout
 129   β”‚     respbuffer 0
 130   β”‚     autostart 1
 131   β”‚     path lsphp81/bin/lsphp
 132   β”‚     backlog 100
 133   β”‚     instances 1
 134   β”‚     priority 0
 135   β”‚     memsoftlimit 0
 136   β”‚     memhardlimit 0
 137   β”‚     procsoftlimit 1400
 138   β”‚     prochardlimit 1500
 139   β”‚ }
 140   β”‚
 141   β”‚ scripthandler  {
 142   β”‚     add lsapi:lsphp  php
 143   β”‚ }
 144   β”‚
 145   β”‚ railsdefaults  {
 146   β”‚     binpath
 147   β”‚     railsenv 1
 148   β”‚     maxconns 1
 149   β”‚     env LSAPI_MAX_IDLE=60
 150   β”‚     inittimeout 60
 151   β”‚     retrytimeout 0
 152   β”‚     pckeepalivetimeout 60
 153   β”‚     respbuffer 0
 154   β”‚     backlog 50
 155   β”‚     runonstartup 3
 156   β”‚     extmaxidletime 300
 157   β”‚     priority 3
 158   β”‚     memsoftlimit 0
 159   β”‚     memhardlimit 0
 160   β”‚     procsoftlimit 500
 161   β”‚     prochardlimit 600
 162   β”‚ }
 163   β”‚
 164   β”‚ wsgiDefaults  {
 165   β”‚     binpath
 166   β”‚     railsenv 1
 167   β”‚     maxconns 5
 168   β”‚     env LSAPI_MAX_IDLE=60
 169   β”‚     inittimeout 60
 170   β”‚     retrytimeout 0
 171   β”‚     pckeepalivetimeout 60
 172   β”‚     respbuffer 0
 173   β”‚     backlog 50
 174   β”‚     runonstartup 3
 175   β”‚     extmaxidletime 300
 176   β”‚     priority 3
 177   β”‚     memsoftlimit 0
 178   β”‚     memhardlimit 0
 179   β”‚     procsoftlimit 500
 180   β”‚     prochardlimit 600
 181   β”‚ }
 182   β”‚
 183   β”‚ nodeDefaults  {
 184   β”‚     binpath
 185   β”‚     railsenv 1
 186   β”‚     maxconns 5
 187   β”‚     env LSAPI_MAX_IDLE=60
 188   β”‚     inittimeout 60
 189   β”‚     retrytimeout 0
 190   β”‚     pckeepalivetimeout 60
 191   β”‚     respbuffer 0
 192   β”‚     backlog 50
 193   β”‚     runonstartup 3
 194   β”‚     extmaxidletime 300
 195   β”‚     priority 3
 196   β”‚     memsoftlimit 0
 197   β”‚     memhardlimit 0
 198   β”‚     procsoftlimit 500
 199   β”‚     prochardlimit 600
 200   β”‚ }
 201   β”‚
 202   β”‚ virtualhost Example {
 203   β”‚     vhroot Example/
 204   β”‚     allowsymbollink 1
 205   β”‚     enablescript 1
 206   β”‚     restrained 1
 207   β”‚     maxkeepalivereq
 208   β”‚     smartkeepalive
 209   β”‚     setuidmode 0
 210   β”‚     chrootmode 0
 211   β”‚     configfile conf/vhosts/Example/vhconf.conf
 212   β”‚ }
 213   β”‚
 214   β”‚ listener Default {
 215   β”‚     address *:8088
 216   β”‚     secure 0
 217   β”‚     map wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 218   β”‚ }
 219   β”‚
 220   β”‚ vhtemplate centralConfigLog {
 221   β”‚     templatefile conf/templates/ccl.conf
 222   β”‚     listeners Default
 223   β”‚ }
 224   β”‚
 225   β”‚ vhtemplate EasyRailsWithSuEXEC {
 226   β”‚     templatefile conf/templates/rails.conf
 227   β”‚     listeners Default
 228   β”‚ }
 229   β”‚
 230   β”‚ module cache {
 231   β”‚     param <<<MY_END
 232   β”‚ checkprivatecache 1
 233   β”‚ checkpubliccache 1
 234   β”‚ maxcacheobjsize 10000000
 235   β”‚ maxstaleage 0
 236   β”‚ qscache 1
 237   β”‚ reqcookiecache 1
 238   β”‚ respcookiecache 1
 239   β”‚ ignorereqcachectrl 1
 240   β”‚ ignorerespcachectrl 0
 241   β”‚ enablecache 0
 242   β”‚ expireinseconds 3600
 243   β”‚ enableprivatecache 0
 244   β”‚ privateexpireinseconds 3600
 245   β”‚     MY_END
 246   β”‚     ls_enabled 1
 247   β”‚     unknownkeywords checkprivatecache 1
 248   β”‚     unknownkeywords checkpubliccache 1
 249   β”‚     unknownkeywords maxcacheobjsize 10000000
 250   β”‚     unknownkeywords maxstaleage 0
 251   β”‚     unknownkeywords qscache 1
 252   β”‚     unknownkeywords reqcookiecache 1
 253   β”‚     unknownkeywords respcookiecache 1
 254   β”‚     unknownkeywords ignorereqcachectrl 1
 255   β”‚     unknownkeywords ignorerespcachectrl 0
 256   β”‚     unknownkeywords enablecache 0
 257   β”‚     unknownkeywords expireinseconds 3600
 258   β”‚     unknownkeywords enableprivatecache 0
 259   β”‚     unknownkeywords privateexpireinseconds 3600
 260   β”‚ }
 261   β”‚
 262   β”‚ listener wordpress {
 263   β”‚     address *:80
 264   β”‚     secure 0
 265   β”‚     map wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 266   β”‚ }
 267   β”‚
 268   β”‚ listener wordpressssl {
 269   β”‚     address *:443
 270   β”‚     secure 1
 271   β”‚     map wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 272   β”‚     keyfile /usr/local/lsws/conf/example.key
 273   β”‚     certfile /usr/local/lsws/conf/example.crt
 274   β”‚ }
 275   β”‚
 276   β”‚ virtualhost wordpress {
 277   β”‚     vhroot /var/www/html
 278   β”‚     configfile /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
 279   β”‚     allowsymbollink 1
 280   β”‚     enablescript 1
 281   β”‚     restrained 0
 282   β”‚     setuidmode 2
 283   β”‚ }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/httpd_config.conf0
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ #
   2   β”‚ # PLAIN TEXT CONFIGURATION FILE
   3   β”‚ #
   4   β”‚
   5   β”‚ # If not set, will use host name as serverName
   6   β”‚ serverName
   7   β”‚ user                             www-data
   8   β”‚ group                            www-data
   9   β”‚ priority                         0
  10   β”‚ autoRestart                      1
  11   β”‚ chrootPath                       /
  12   β”‚ enableChroot                     0
  13   β”‚ inMemBufSize                     60M
  14   β”‚ swappingDir                      /tmp/lshttpd/swap
  15   β”‚ autoFix503                       1
  16   β”‚ gracefulRestartTimeout           300
  17   β”‚ mime                             conf/mime.properties
  18   β”‚ showVersionNumber                0
  19   β”‚ adminEmails root@localhost
  20   β”‚ #adminEmails                      root@localhost
  21   β”‚ indexFiles                       index.html, index.php
  22   β”‚ disableWebAdmin                  0
  23   β”‚
  24   β”‚ errorlog logs/error.log {
  25   β”‚         keepDays             1
  26   β”‚         logLevel             DEBUG
  27   β”‚         debugLevel           0
  28   β”‚         rollingSize          10M
  29   β”‚         enableStderrLog      1
  30   β”‚ }
  31   β”‚
  32   β”‚ accessLog logs/access.log {
  33   β”‚         rollingSize          10M
  34   β”‚         keepDays             30
  35   β”‚         compressArchive      0
  36   β”‚         logReferer           1
  37   β”‚         logUserAgent         1
  38   β”‚ }
  39   β”‚
  40   β”‚ expires {
  41   β”‚     enableExpires           1
  42   β”‚     expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-fo
       β”‚ nt-ttf=A604800
  43   β”‚ }
  44   β”‚
  45   β”‚ tuning{
  46   β”‚     maxConnections               10000
  47   β”‚     maxSSLConnections            10000
  48   β”‚     connTimeout                  300
  49   β”‚     maxKeepAliveReq              10000
  50   β”‚     smartKeepAlive               0
  51   β”‚     keepAliveTimeout             5
  52   β”‚     sndBufSize                   0
  53   β”‚     rcvBufSize                   0
  54   β”‚     gzipStaticCompressLevel      6
  55   β”‚     gzipMaxFileSize              10M
  56   β”‚     eventDispatcher              best
  57   β”‚     maxCachedFileSize            4096
  58   β”‚     totalInMemCacheSize          20M
  59   β”‚     maxMMapFileSize              256K
  60   β”‚     totalMMapCacheSize           40M
  61   β”‚     useSendfile                  1
  62   β”‚     fileETag                     28
  63   β”‚     SSLCryptoDevice              null
  64   β”‚     maxReqURLLen                 32768
  65   β”‚     maxReqHeaderSize             65536
  66   β”‚     maxReqBodySize               2047M
  67   β”‚     maxDynRespHeaderSize         32768
  68   β”‚     maxDynRespSize               2047M
  69   β”‚     enableGzipCompress           1
  70   β”‚     enableBrCompress             4
  71   β”‚     enableDynGzipCompress        1
  72   β”‚     gzipCompressLevel            6
  73   β”‚     brStaticCompressLevel        6
  74   β”‚     compressibleTypes            default
  75   β”‚     gzipAutoUpdateStatic         1
  76   β”‚     gzipMinFileSize              300
  77   β”‚
  78   β”‚     quicEnable                   1
  79   β”‚     quicShmDir                   /dev/shm
  80   β”‚
  81   β”‚ }
  82   β”‚
  83   β”‚ accessDenyDir{
  84   β”‚     dir                  /
  85   β”‚     dir                  /etc/*
  86   β”‚     dir                  /dev/*
  87   β”‚     dir                  conf/*
  88   β”‚     dir                  admin/conf/*
  89   β”‚ }
  90   β”‚
  91   β”‚ fileAccessControl{
  92   β”‚     followSymbolLink                            1
  93   β”‚     checkSymbolLink                             0
  94   β”‚     requiredPermissionMask                      000
  95   β”‚     restrictedPermissionMask                    000
  96   β”‚ }
  97   β”‚
  98   β”‚ perClientConnLimit{
  99   β”‚     staticReqPerSec                          0
 100   β”‚     dynReqPerSec                             0
 101   β”‚     outBandwidth                             0
 102   β”‚     inBandwidth                              0
 103   β”‚     softLimit                                10000
 104   β”‚     hardLimit                                10000
 105   β”‚     gracePeriod                              15
 106   β”‚     banPeriod                                300
 107   β”‚ }
 108   β”‚
 109   β”‚ CGIRLimit{
 110   β”‚     maxCGIInstances                         20
 111   β”‚     minUID                                  11
 112   β”‚     minGID                                  10
 113   β”‚     priority                                0
 114   β”‚     CPUSoftLimit                            10
 115   β”‚     CPUHardLimit                            50
 116   β”‚     memSoftLimit                            2047M
 117   β”‚     memHardLimit                            2047M
 118   β”‚     procSoftLimit                           400
 119   β”‚     procHardLimit                           450
 120   β”‚ }
 121   β”‚
 122   β”‚ accessControl{
 123   β”‚     allow                                   ALL
 124   β”‚     deny
 125   β”‚ }
 126   β”‚
 127   β”‚ extProcessor lsphp{
 128   β”‚     type                            lsapi
 129   β”‚     address                         uds://tmp/lshttpd/lsphp.sock
 130   β”‚     maxConns                        10
 131   β”‚     env                             PHP_LSAPI_CHILDREN=10
 132   β”‚     env                             LSAPI_AVOID_FORK=200M
 133   β”‚     initTimeout                     60
 134   β”‚     retryTimeout                    0
 135   β”‚     persistConn                     1
 136   β”‚     pcKeepAliveTimeout
 137   β”‚     respBuffer                      0
 138   β”‚     autoStart                       1
 139   β”‚     path                            lsphp81/bin/lsphp
 140   β”‚     backlog                         100
 141   β”‚     instances                       1
 142   β”‚     priority                        0
 143   β”‚     memSoftLimit                    0
 144   β”‚     memHardLimit                    0
 145   β”‚     procSoftLimit                   1400
 146   β”‚     procHardLimit                   1500
 147   β”‚ }
 148   β”‚
 149   β”‚ scriptHandler{
 150   β”‚     add lsapi:lsphp  php
 151   β”‚ }
 152   β”‚
 153   β”‚ railsDefaults{
 154   β”‚     binPath
 155   β”‚     railsEnv                 1
 156   β”‚     maxConns                 1
 157   β”‚     env                      LSAPI_MAX_IDLE=60
 158   β”‚     initTimeout              60
 159   β”‚     retryTimeout             0
 160   β”‚     pcKeepAliveTimeout       60
 161   β”‚     respBuffer               0
 162   β”‚     backlog                  50
 163   β”‚     runOnStartUp             3
 164   β”‚     extMaxIdleTime           300
 165   β”‚     priority                 3
 166   β”‚     memSoftLimit             0
 167   β”‚     memHardLimit             0
 168   β”‚     procSoftLimit            500
 169   β”‚     procHardLimit            600
 170   β”‚ }
 171   β”‚
 172   β”‚ wsgiDefaults{
 173   β”‚     binPath
 174   β”‚     railsEnv                 1
 175   β”‚     maxConns                 5
 176   β”‚     env                      LSAPI_MAX_IDLE=60
 177   β”‚     initTimeout              60
 178   β”‚     retryTimeout             0
 179   β”‚     pcKeepAliveTimeout       60
 180   β”‚     respBuffer               0
 181   β”‚     backlog                  50
 182   β”‚     runOnStartUp             3
 183   β”‚     extMaxIdleTime           300
 184   β”‚     priority                 3
 185   β”‚     memSoftLimit             0
 186   β”‚     memHardLimit             0
 187   β”‚     procSoftLimit            500
 188   β”‚     procHardLimit            600
 189   β”‚ }
 190   β”‚
 191   β”‚ nodeDefaults{
 192   β”‚     binPath
 193   β”‚     railsEnv                 1
 194   β”‚     maxConns                 5
 195   β”‚     env                      LSAPI_MAX_IDLE=60
 196   β”‚     initTimeout              60
 197   β”‚     retryTimeout             0
 198   β”‚     pcKeepAliveTimeout       60
 199   β”‚     respBuffer               0
 200   β”‚     backlog                  50
 201   β”‚     runOnStartUp             3
 202   β”‚     extMaxIdleTime           300
 203   β”‚     priority                 3
 204   β”‚     memSoftLimit             0
 205   β”‚     memHardLimit             0
 206   β”‚     procSoftLimit            500
 207   β”‚     procHardLimit            600
 208   β”‚ }
 209   β”‚
 210   β”‚ virtualHost Example{
 211   β”‚     vhRoot                   Example/
 212   β”‚     allowSymbolLink          1
 213   β”‚     enableScript             1
 214   β”‚     restrained               1
 215   β”‚     maxKeepAliveReq
 216   β”‚     smartKeepAlive
 217   β”‚     setUIDMode               0
 218   β”‚     chrootMode               0
 219   β”‚     configFile               conf/vhosts/Example/vhconf.conf
 220   β”‚ }
 221   β”‚
 222   β”‚ listener Default{
 223   β”‚     address                  *:8088
 224   β”‚     secure                   0
 225   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 226   β”‚ }
 227   β”‚
 228   β”‚ vhTemplate centralConfigLog{
 229   β”‚     templateFile             conf/templates/ccl.conf
 230   β”‚     listeners                Default
 231   β”‚ }
 232   β”‚
 233   β”‚ vhTemplate EasyRailsWithSuEXEC{
 234   β”‚     templateFile             conf/templates/rails.conf
 235   β”‚     listeners                Default
 236   β”‚ }
 237   β”‚
 238   β”‚ module cache {
 239   β”‚     ls_enabled   1
 240   β”‚ #          1
 241   β”‚
 242   β”‚     checkPrivateCache   1
 243   β”‚     checkPublicCache    1
 244   β”‚     maxCacheObjSize     10000000
 245   β”‚     maxStaleAge         0
 246   β”‚     qsCache             1
 247   β”‚     reqCookieCache      1
 248   β”‚     respCookieCache     1
 249   β”‚     ignoreReqCacheCtrl  1
 250   β”‚     ignoreRespCacheCtrl 0
 251   β”‚
 252   β”‚     enableCache         0
 253   β”‚     expireInSeconds     3600
 254   β”‚     enablePrivateCache  0
 255   β”‚     privateExpireInSeconds 3600
 256   β”‚
 257   β”‚ }
 258   β”‚
 259   β”‚
 260   β”‚ listener wordpress {
 261   β”‚ address                 *:80
 262   β”‚ secure                  0
 263   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 264   β”‚ }
 265   β”‚
 266   β”‚
 267   β”‚ listener wordpressssl {
 268   β”‚ address                 *:443
 269   β”‚ secure                  1
 270   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 271   β”‚ keyFile                 /usr/local/lsws/conf/example.key
 272   β”‚ certFile                /usr/local/lsws/conf/example.crt
 273   β”‚ }
 274   β”‚
 275   β”‚
 276   β”‚ virtualhost wordpress {
 277   β”‚ vhRoot                  /var/www/html
 278   β”‚ configFile              /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
 279   β”‚ allowSymbolLink         1
 280   β”‚ enableScript            1
 281   β”‚ restrained              0
 282   β”‚ setUIDMode              2
 283   β”‚ }
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /usr/local/lsws/conf/httpd_config.conf0,v
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ head    1.6;
   2   β”‚ access;
   3   β”‚ symbols;
   4   β”‚ locks
   5   β”‚     root:1.6; strict;
   6   β”‚ comment @# @;
   7   β”‚
   8   β”‚
   9   β”‚ 1.6
  10   β”‚ date    2024.08.27.10.10.07;    author root;    state Exp;
  11   β”‚ branches;
  12   β”‚ next    1.5;
  13   β”‚
  14   β”‚ 1.5
  15   β”‚ date    2024.08.27.10.09.54;    author root;    state Exp;
  16   β”‚ branches;
  17   β”‚ next    1.4;
  18   β”‚
  19   β”‚ 1.4
  20   β”‚ date    2024.02.08.06.09.09;    author root;    state Exp;
  21   β”‚ branches;
  22   β”‚ next    1.3;
  23   β”‚
  24   β”‚ 1.3
  25   β”‚ date    2024.02.08.06.08.47;    author root;    state Exp;
  26   β”‚ branches;
  27   β”‚ next    1.2;
  28   β”‚
  29   β”‚ 1.2
  30   β”‚ date    2024.02.08.06.07.56;    author root;    state Exp;
  31   β”‚ branches;
  32   β”‚ next    1.1;
  33   β”‚
  34   β”‚ 1.1
  35   β”‚ date    2024.02.08.06.06.15;    author root;    state Exp;
  36   β”‚ branches;
  37   β”‚ next    ;
  38   β”‚
  39   β”‚
  40   β”‚ desc
  41   β”‚ @/usr/local/lsws/conf/httpd_config.conf0
  42   β”‚ @
  43   β”‚
  44   β”‚
  45   β”‚ 1.6
  46   β”‚ log
  47   β”‚ @Update
  48   β”‚ @
  49   β”‚ text
  50   β”‚ @#
  51   β”‚ # PLAIN TEXT CONFIGURATION FILE
  52   β”‚ #
  53   β”‚
  54   β”‚ # If not set, will use host name as serverName
  55   β”‚ serverName
  56   β”‚ user                             www-data
  57   β”‚ group                            www-data
  58   β”‚ priority                         0
  59   β”‚ autoRestart                      1
  60   β”‚ chrootPath                       /
  61   β”‚ enableChroot                     0
  62   β”‚ inMemBufSize                     60M
  63   β”‚ swappingDir                      /tmp/lshttpd/swap
  64   β”‚ autoFix503                       1
  65   β”‚ gracefulRestartTimeout           300
  66   β”‚ mime                             conf/mime.properties
  67   β”‚ showVersionNumber                0
  68   β”‚ adminEmails root@@localhost
  69   β”‚ #adminEmails                      root@@localhost
  70   β”‚ indexFiles                       index.html, index.php
  71   β”‚ disableWebAdmin                  0
  72   β”‚
  73   β”‚ errorlog logs/error.log {
  74   β”‚         keepDays             1
  75   β”‚         logLevel             DEBUG
  76   β”‚         debugLevel           0
  77   β”‚         rollingSize          10M
  78   β”‚         enableStderrLog      1
  79   β”‚ }
  80   β”‚
  81   β”‚ accessLog logs/access.log {
  82   β”‚         rollingSize          10M
  83   β”‚         keepDays             30
  84   β”‚         compressArchive      0
  85   β”‚         logReferer           1
  86   β”‚         logUserAgent         1
  87   β”‚ }
  88   β”‚
  89   β”‚ expires {
  90   β”‚     enableExpires           1
  91   β”‚     expiresByType           image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-fo
       β”‚ nt-ttf=A604800
  92   β”‚ }
  93   β”‚
  94   β”‚ tuning{
  95   β”‚     maxConnections               10000
  96   β”‚     maxSSLConnections            10000
  97   β”‚     connTimeout                  300
  98   β”‚     maxKeepAliveReq              10000
  99   β”‚     smartKeepAlive               0
 100   β”‚     keepAliveTimeout             5
 101   β”‚     sndBufSize                   0
 102   β”‚     rcvBufSize                   0
 103   β”‚     gzipStaticCompressLevel      6
 104   β”‚     gzipMaxFileSize              10M
 105   β”‚     eventDispatcher              best
 106   β”‚     maxCachedFileSize            4096
 107   β”‚     totalInMemCacheSize          20M
 108   β”‚     maxMMapFileSize              256K
 109   β”‚     totalMMapCacheSize           40M
 110   β”‚     useSendfile                  1
 111   β”‚     fileETag                     28
 112   β”‚     SSLCryptoDevice              null
 113   β”‚     maxReqURLLen                 32768
 114   β”‚     maxReqHeaderSize             65536
 115   β”‚     maxReqBodySize               2047M
 116   β”‚     maxDynRespHeaderSize         32768
 117   β”‚     maxDynRespSize               2047M
 118   β”‚     enableGzipCompress           1
 119   β”‚     enableBrCompress             4
 120   β”‚     enableDynGzipCompress        1
 121   β”‚     gzipCompressLevel            6
 122   β”‚     brStaticCompressLevel        6
 123   β”‚     compressibleTypes            default
 124   β”‚     gzipAutoUpdateStatic         1
 125   β”‚     gzipMinFileSize              300
 126   β”‚
 127   β”‚     quicEnable                   1
 128   β”‚     quicShmDir                   /dev/shm
 129   β”‚
 130   β”‚ }
 131   β”‚
 132   β”‚ accessDenyDir{
 133   β”‚     dir                  /
 134   β”‚     dir                  /etc/*
 135   β”‚     dir                  /dev/*
 136   β”‚     dir                  conf/*
 137   β”‚     dir                  admin/conf/*
 138   β”‚ }
 139   β”‚
 140   β”‚ fileAccessControl{
 141   β”‚     followSymbolLink                            1
 142   β”‚     checkSymbolLink                             0
 143   β”‚     requiredPermissionMask                      000
 144   β”‚     restrictedPermissionMask                    000
 145   β”‚ }
 146   β”‚
 147   β”‚ perClientConnLimit{
 148   β”‚     staticReqPerSec                          0
 149   β”‚     dynReqPerSec                             0
 150   β”‚     outBandwidth                             0
 151   β”‚     inBandwidth                              0
 152   β”‚     softLimit                                10000
 153   β”‚     hardLimit                                10000
 154   β”‚     gracePeriod                              15
 155   β”‚     banPeriod                                300
 156   β”‚ }
 157   β”‚
 158   β”‚ CGIRLimit{
 159   β”‚     maxCGIInstances                         20
 160   β”‚     minUID                                  11
 161   β”‚     minGID                                  10
 162   β”‚     priority                                0
 163   β”‚     CPUSoftLimit                            10
 164   β”‚     CPUHardLimit                            50
 165   β”‚     memSoftLimit                            2047M
 166   β”‚     memHardLimit                            2047M
 167   β”‚     procSoftLimit                           400
 168   β”‚     procHardLimit                           450
 169   β”‚ }
 170   β”‚
 171   β”‚ accessControl{
 172   β”‚     allow                                   ALL
 173   β”‚     deny
 174   β”‚ }
 175   β”‚
 176   β”‚ extProcessor lsphp{
 177   β”‚     type                            lsapi
 178   β”‚     address                         uds://tmp/lshttpd/lsphp.sock
 179   β”‚     maxConns                        10
 180   β”‚     env                             PHP_LSAPI_CHILDREN=10
 181   β”‚     env                             LSAPI_AVOID_FORK=200M
 182   β”‚     initTimeout                     60
 183   β”‚     retryTimeout                    0
 184   β”‚     persistConn                     1
 185   β”‚     pcKeepAliveTimeout
 186   β”‚     respBuffer                      0
 187   β”‚     autoStart                       1
 188   β”‚     path                            lsphp81/bin/lsphp
 189   β”‚     backlog                         100
 190   β”‚     instances                       1
 191   β”‚     priority                        0
 192   β”‚     memSoftLimit                    0
 193   β”‚     memHardLimit                    0
 194   β”‚     procSoftLimit                   1400
 195   β”‚     procHardLimit                   1500
 196   β”‚ }
 197   β”‚
 198   β”‚ scriptHandler{
 199   β”‚     add lsapi:lsphp  php
 200   β”‚ }
 201   β”‚
 202   β”‚ railsDefaults{
 203   β”‚     binPath
 204   β”‚     railsEnv                 1
 205   β”‚     maxConns                 1
 206   β”‚     env                      LSAPI_MAX_IDLE=60
 207   β”‚     initTimeout              60
 208   β”‚     retryTimeout             0
 209   β”‚     pcKeepAliveTimeout       60
 210   β”‚     respBuffer               0
 211   β”‚     backlog                  50
 212   β”‚     runOnStartUp             3
 213   β”‚     extMaxIdleTime           300
 214   β”‚     priority                 3
 215   β”‚     memSoftLimit             0
 216   β”‚     memHardLimit             0
 217   β”‚     procSoftLimit            500
 218   β”‚     procHardLimit            600
 219   β”‚ }
 220   β”‚
 221   β”‚ wsgiDefaults{
 222   β”‚     binPath
 223   β”‚     railsEnv                 1
 224   β”‚     maxConns                 5
 225   β”‚     env                      LSAPI_MAX_IDLE=60
 226   β”‚     initTimeout              60
 227   β”‚     retryTimeout             0
 228   β”‚     pcKeepAliveTimeout       60
 229   β”‚     respBuffer               0
 230   β”‚     backlog                  50
 231   β”‚     runOnStartUp             3
 232   β”‚     extMaxIdleTime           300
 233   β”‚     priority                 3
 234   β”‚     memSoftLimit             0
 235   β”‚     memHardLimit             0
 236   β”‚     procSoftLimit            500
 237   β”‚     procHardLimit            600
 238   β”‚ }
 239   β”‚
 240   β”‚ nodeDefaults{
 241   β”‚     binPath
 242   β”‚     railsEnv                 1
 243   β”‚     maxConns                 5
 244   β”‚     env                      LSAPI_MAX_IDLE=60
 245   β”‚     initTimeout              60
 246   β”‚     retryTimeout             0
 247   β”‚     pcKeepAliveTimeout       60
 248   β”‚     respBuffer               0
 249   β”‚     backlog                  50
 250   β”‚     runOnStartUp             3
 251   β”‚     extMaxIdleTime           300
 252   β”‚     priority                 3
 253   β”‚     memSoftLimit             0
 254   β”‚     memHardLimit             0
 255   β”‚     procSoftLimit            500
 256   β”‚     procHardLimit            600
 257   β”‚ }
 258   β”‚
 259   β”‚ virtualHost Example{
 260   β”‚     vhRoot                   Example/
 261   β”‚     allowSymbolLink          1
 262   β”‚     enableScript             1
 263   β”‚     restrained               1
 264   β”‚     maxKeepAliveReq
 265   β”‚     smartKeepAlive
 266   β”‚     setUIDMode               0
 267   β”‚     chrootMode               0
 268   β”‚     configFile               conf/vhosts/Example/vhconf.conf
 269   β”‚ }
 270   β”‚
 271   β”‚ listener Default{
 272   β”‚     address                  *:8088
 273   β”‚     secure                   0
 274   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 275   β”‚ }
 276   β”‚
 277   β”‚ vhTemplate centralConfigLog{
 278   β”‚     templateFile             conf/templates/ccl.conf
 279   β”‚     listeners                Default
 280   β”‚ }
 281   β”‚
 282   β”‚ vhTemplate EasyRailsWithSuEXEC{
 283   β”‚     templateFile             conf/templates/rails.conf
 284   β”‚     listeners                Default
 285   β”‚ }
 286   β”‚
 287   β”‚ module cache {
 288   β”‚     ls_enabled   1
 289   β”‚ #          1
 290   β”‚
 291   β”‚     checkPrivateCache   1
 292   β”‚     checkPublicCache    1
 293   β”‚     maxCacheObjSize     10000000
 294   β”‚     maxStaleAge         0
 295   β”‚     qsCache             1
 296   β”‚     reqCookieCache      1
 297   β”‚     respCookieCache     1
 298   β”‚     ignoreReqCacheCtrl  1
 299   β”‚     ignoreRespCacheCtrl 0
 300   β”‚
 301   β”‚     enableCache         0
 302   β”‚     expireInSeconds     3600
 303   β”‚     enablePrivateCache  0
 304   β”‚     privateExpireInSeconds 3600
 305   β”‚
 306   β”‚ }
 307   β”‚
 308   β”‚
 309   β”‚ listener wordpress {
 310   β”‚ address                 *:80
 311   β”‚ secure                  0
 312   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 313   β”‚ }
 314   β”‚
 315   β”‚
 316   β”‚ listener wordpressssl {
 317   β”‚ address                 *:443
 318   β”‚ secure                  1
 319   β”‚   map                     wordpress 46.101.222.231, iphonehub.cz, www.iphonehub.cz
 320   β”‚ keyFile                 /usr/local/lsws/conf/example.key
 321   β”‚ certFile                /usr/local/lsws/conf/example.crt
 322   β”‚ }
 323   β”‚
 324   β”‚
 325   β”‚ virtualhost wordpress {
 326   β”‚ vhRoot                  /var/www/html
 327   β”‚ configFile              /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
 328   β”‚ allowSymbolLink         1
 329   β”‚ enableScript            1
 330   β”‚ restrained              0
 331   β”‚ setUIDMode              2
 332   β”‚ }
 333   β”‚ @
 334   β”‚
 335   β”‚
 336   β”‚ 1.5
 337   β”‚ log
 338   β”‚ @Update
 339   β”‚ @
 340   β”‚ text
 341   β”‚ @d225 1
 342   β”‚ a225 1
 343   β”‚   map                     wordpress 46.101.222.231
 344   β”‚ d263 1
 345   β”‚ a263 1
 346   β”‚   map                     wordpress 46.101.222.231
 347   β”‚ d270 1
 348   β”‚ a270 1
 349   β”‚   map                     wordpress 46.101.222.231
 350   β”‚ @
 351   β”‚
 352   β”‚
 353   β”‚ 1.4
 354   β”‚ log
 355   β”‚ @Update
 356   β”‚ @
 357   β”‚ text
 358   β”‚ @d225 1
 359   β”‚ a225 1
 360   β”‚     map                      Example *
 361   β”‚ d263 1
 362   β”‚ a263 1
 363   β”‚ map                     wordpress *
 364   β”‚ d270 1
 365   β”‚ a270 1
 366   β”‚ map                     wordpress *
 367   β”‚ @
 368   β”‚
 369   β”‚
 370   β”‚ 1.3
 371   β”‚ log
 372   β”‚ @Update
 373   β”‚ @
 374   β”‚ text
 375   β”‚ @d25 1
 376   β”‚ d245 1
 377   β”‚ a245 1
 378   β”‚     maxStaleAge         200
 379   β”‚ d277 1
 380   β”‚ a277 1
 381   β”‚ vhRoot                  /var/www/html.old
 382   β”‚ @
 383   β”‚
 384   β”‚
 385   β”‚ 1.2
 386   β”‚ log
 387   β”‚ @Update
 388   β”‚ @
 389   β”‚ text
 390   β”‚ @d7 2
 391   β”‚ a8 2
 392   β”‚ user                             nobody
 393   β”‚ group                            nogroup
 394   β”‚ @
 395   β”‚
 396   β”‚
 397   β”‚ 1.1
 398   β”‚ log
 399   β”‚ @Update
 400   β”‚ @
 401   β”‚ text
 402   β”‚ @d19 2
 403   β”‚ a20 1
 404   β”‚ adminEmails                      root@@localhost
 405   β”‚ d138 1
 406   β”‚ a138 1
 407   β”‚     path                            lsphp74/bin/lsphp
 408   β”‚ d238 2
 409   β”‚ a239 1
 410   β”‚     ls_enabled          1
 411   β”‚ d258 25
 412   β”‚ @

Ubuntu 22 Lamp or OLS

https://www.digitalocean.com/community/tutorials/how-to-install-the-openlitespeed-web-server-on-ubuntu-20-04 https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04 https://wpengine.com/resources/nginx-vs-apache-wordpress/ https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server https://sftpcloud.io/learn/sftp/how-to-setup-sftp-server-on-ubuntu-22-04

sudo apt -y upgrade && sudo apt upgrade

SSH-KEY

cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
Match User root
PasswordAuthentication yes

Add sudo not-root user, setup SFTP

adduser web
usermod -aG sudo web
sudo groupadd sftpusers
sudo usermod -G sftpusers -s /usr/sbin/nologin web
cat /home/web/.ssh/authorized_keys > ~/.ssh/authorized_keys

sudo chown web:sftpusers /home/web
sudo chmod 755 /home/web

UFW

ufw app list ufw allow OpenSSH ufw enable

WP Utils

Requires: wp-cli

ZIP

zip -r site.zip . -x $(cat .distignore | xargs)

.distignore:

*.git*
*.DS_Store
node_modules/*
README.md
*.idea*
info.php
phpinfo.php
*.sql
.backup/*

Migrate script

from_url="https://site.cz"
wp_siteurl="http://site.test"
wp_dbname="prod_db"
wp_dbuser="root"
wp_dbpassword=""

# Cook wp-config.php
wp config shuffle-salts
wp config set WP_SITEURL "$wp_siteurl"
wp config set WP_HOME "$wp_siteurl"
wp config set DB_NAME "$wp_dbname"
wp config set DB_USER "$wp_dbuser"
wp config set DB_PASSWORD "$wp_dbpassword"
wp config set LITESPEED_DISABLE_ALL true --raw

# Replace the URL's in DB
wp search-replace "$from_url" "$wp_siteurl" --dry-run
wp elementor replace-urls "$from_url" "$wp_siteurl"

DB search-replace (SQL)

UPDATE wp_options SET option_value = replace(option_value, 'http://site.test', 'https://site.cz') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://site.test','https://site.cz');
UPDATE wp_posts SET post_content = replace(post_content, 'http://site.test', 'https://site.cz');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://site.test','https://site.cz');

UPDATE wp_yoast_indexable SET permalink = replace(permalink,'http://site.test','https://site.cz');
UPDATE wp_yoast_seo_links SET url = replace(url,'http://site.test','https://site.cz');

Tools

WP-CLI

Brew MariaDB mysql fix:

ln -s /opt/homebrew/opt/[email protected]/bin/mysqldump /usr/local/bin/mysqldump
ln -s /opt/homebrew/opt/[email protected]/bin/mysql /usr/local/bin/mysql

Laravel Valet

Multi PHP versions support

alias php='valet php'
alias composer='valet composer'
alias wp='valet php /opt/homebrew/bin/wp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment