Commit Graph
92 Commits
Author SHA1 Message Date
chrisandClaude Opus 5.5 0d6448b043 Ignore .claude/settings.json
Local Claude Code settings are machine/user specific - no longer tracked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:41:08 +01:00
chrisandClaude Opus 5.5 7a0e1efc3f Use 'sftpusers' as default SFTP chroot group, drop 'sftp-chroot'
- create_vhost.sh: SFTP_CHROOT_GROUP defaults to 'sftpusers'. Fallback to
  'sftpusers' only if a different, non-existing group is configured.
  Messages list only the groups actually tried.
- create_vhost.conf.sample: example sshd Match block and default now
  use 'sftpusers'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:29:02 +01:00
chrisandClaude Opus 5.5 fec60403d1 Chrooted SFTP access also for suEXEC (mod_fcgid) sites
create_vhost.sh:
- suEXEC (mod_fcgid) sites get the same chrooted SFTP setup as static
  suEXEC sites: web base directory root:root 755, DocumentRoot owned by
  suEXEC user/group, SFTP group membership, sshd and chroot path checks.
- SFTP group: use $SFTP_CHROOT_GROUP if it exists, otherwise 'sftpusers'
  (if exists). If neither exists, skip that step (group is no longer
  created).

fix_sftp_site_permissions.sh:
- Also handle active '*.suexec' vhosts. PHP files (*.php, *.phtml,
  *.php5) are not touched there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:31:58 +01:00
chris 76f0fe1a7a Add support for static sites with chrooted SFTP access in create_vhost.sh and new permission repair script 2026-11-16 14:41:47 +01:00
chris 6f231e4a0a Add settings.json to define permissions for Bash commands 2026-11-16 14:41:29 +01:00
chrisandClaude Opus 5.5 9a831a4844 create_vhost.sh: create suEXEC user with shell '/usr/sbin/nologin'.
suexec doesn't need a login shell (only UID/GID and docroot are checked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:57:04 +01:00
chrisandClaude Opus 5.5 d650fb499a set_suexec_users_nologin.sh: skip users with ssh keys, no error if no suexec users.
- Users with a non-empty ~/.ssh/authorized_keys are skipped, they would
  lose their ssh/sftp access with shell '/usr/sbin/nologin'.
- Finding no suexec users at all is reported as info (exit 0), not as fatal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:44:52 +01:00
chrisandClaude Opus 5.5 95034598b0 set_suexec_users_nologin.sh: backup /etc/passwd only before the first real change.
A run without changes no longer creates (and removes) a backup file, and
a second run within the same minute can no longer overwrite the backup of
the previous run. Backup timestamp now includes seconds; an existing backup
file is never overwritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:40:02 +01:00
chrisandClaude Opus 5.5 5da75e1fc0 Add script 'set_suexec_users_nologin.sh'.
Sets the login shell of all suexec users (SuexecUserGroup in active vhost
configurations) from '/bin/bash' to '/usr/sbin/nologin'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:31:38 +01:00
chris be451b61a6 create_summary_websites.sh: if 'httpd' is not in path, try to determin it. 2026-10-23 11:13:42 +02:00
chris cfbc16c041 Add script 'apache-ip-requests-analyze.sh'. 2026-02-23 00:15:49 +01:00
chris 9b3adbdeda create_summary_websites.sh: write csv files also for versions 8.3, 8.4 and 8.5 2026-02-02 21:44:38 +01:00
chris 0ed02c6184 create_summary_websites.sh: add support for php 8.4 and 8.5 . 2026-01-16 13:39:41 +01:00
chris 37c2b3737e Fis error in determin if systemd support is present in case of debian 13 and newer. 2025-12-15 18:31:04 +01:00
chris 704b4709d4 create_vhost.sh: fix IPv6 Error in case of overwriting existing vhost entry. 2025-10-08 08:20:27 +02:00
chris 5ec756adec handle_domain_on_webserver.sh: change default MySQL credentials. 2024-07-05 16:00:47 +02:00
chris 363e1176ff create_vhost.sh: Log directory in case of suexec.. 2024-04-29 17:48:03 +02:00
chris 1488743e63 create_vhost.sh: change how determin httpd binary. 2024-04-24 16:44:22 +02:00
chris 068c241353 Add script 'add_proxy_parameter_to_vhost_configuration.sh'. 2024-04-24 16:33:39 +02:00
chris 5c9eae7f3e create_vhost.sh: Add Prosy parameters to vhost configuration. 2024-04-24 16:32:59 +02:00
chris 832fe0d2d3 Add file '504-Gateway-Timeout-Error-AH01075.odt'. 2024-04-21 17:17:17 +02:00
chris 62575a0908 create_vhost.sh: add proxy settings that fix default event mpm worker. 2024-04-21 17:06:14 +02:00
chris 0c91a68052 handle_domain_on_webserver.sh: ignore folder 'MAINTENANCE'. 2024-01-12 14:21:51 +01:00
chris 85c142f978 create_vhost.sh: only create 'phpinfo.php' if site supports PHP. 2023-12-28 17:49:56 +01:00
chris 80df4e6dfc create_summary_websites.sh: Add support for PHP version 8.3; Many changes in script output. 2023-12-24 02:49:51 +01:00
chris 98b9cfb4ed Redesign of code.. 2023-12-23 16:32:26 +01:00
chris a573c27a46 create_summary_websites.sh: add support fot PHP 8.2 2023-07-13 22:19:02 +02:00
chris eaaaa72544 Merge branch 'master' of https://git.oopen.de/script/apache2 2023-03-19 01:57:27 +01:00
chris 1170d6559e create_vhost.sh: chnage owner of 'DocumentRoot'/'Web Base directory' only if web vase directory does not exist. 2023-03-19 01:56:59 +01:00
chris 13d73c32d1 check-php-socket-path.sh: some minor changes.. 2023-03-17 19:30:44 +01:00
chris f0240489eb Add script 'check-php-socket-path.sh'. 2023-03-17 19:27:16 +01:00
chris d7610514a5 create_vhost.sh: support php socket also living in php run directory '/run/php'. 2023-03-17 11:55:21 +01:00
chris 8d671966f5 Fix error concerning additional VHost directories. 2022-05-10 11:33:04 +02:00
chris b1e360c93d handle_domain_on_webserver.sh: support multiple vhost directories. 2022-04-01 14:53:34 +02:00
chris 485d47158d create_vhost.sh: allow multiple ipv6/ipv4 addresses. 2022-03-04 00:11:28 +01:00
chris 44b36432ff ./create_summary_websites.sh: add support for PHP version 8.1 2022-02-04 03:59:32 +01:00
chris b649ca58a1 Adjust script 'get_sites_with_external_nameservers.sh'. 2021-08-12 11:28:26 +02:00
chris bc6f974615 create_summary_websites.sh: add support for PHP version 8.0.x 2021-02-17 00:26:46 +01:00
chris c6093b3cdb get_sites_with_external_nameservers.sh: some minor changes at script output. 2021-02-14 12:37:44 +01:00
chris 903530ce50 get_sites_with_external_nameservers.sh: don't recognize sites with undetermined autoritativ nameservers. 2021-02-14 12:15:35 +01:00
chris 79be6eae5a get_sites_with_external_nameservers.sh: add support for 'omitted site names'. 2021-02-14 12:06:52 +01:00
chris f8a938d365 Add script 'get_sites_with_external_nameservers.sh'. 2021-02-14 02:59:31 +01:00
chris caae19f49d get_apache2_info.sh: fix shebang error. 2021-02-13 03:28:34 +01:00
chris deb8e5c496 get_apache2_info.sh: add apache version. 2021-02-13 03:23:56 +01:00
chris 9cec92749c create_vhost.sh: remove debug code. 2021-02-12 13:20:54 +01:00
chris b584d3c2e2 Add script 'get_apache2_info.sh'. 2021-02-12 13:16:51 +01:00
chris 81a6ea2c6c create_vhost.sh: fix error settinmg variable '_https_only'. 2020-12-28 18:14:23 +01:00
chris b15c67a405 create_vhost.sh: change default for 'only SSL connections' to 'Yes'. 2020-12-22 13:03:28 +01:00
chris a6f007d937 create_summary_websites.sh: support newer versions of MediWiki. Support newer versions of Drupal. 2020-08-21 14:54:53 +02:00
chris 2e790b5bf4 create_summary_websites.sh: support multisite drupal. 2020-08-21 14:01:14 +02:00