chris and Claude 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
chris and Claude 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
chris and Claude 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
chris and Claude 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
chris and Claude 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
chris and Claude 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
chris
78da12c4da
create_vhost.sh.: some minor changes on script output.
2020-08-21 11:10:47 +02:00
chris
d587cffdd0
create_summary_websites.sh: fix bug in determin php v7.4 sites.
2020-03-05 18:40:44 +01:00
chris
20633aab14
create_summary_websites.sh: add support for PHP version 7.4 .
2020-02-27 11:09:44 +01:00
chris
2cb485a8ef
create_summary_websites.sh: Add support for php 7.3
2019-06-21 03:23:22 +02:00
chris
0cd0ab607c
create_vhost.sh: fix handling in case of unix socket.
2018-10-09 04:09:54 +02:00
chris
b003005c86
handle_domain_on_webserver.conf.sample: fix error 'DNS_SERVER' must be 'DNS_MASTER_SERVER'.
2018-09-30 13:00:48 +02:00
chris
40acc9cbab
create_summary_websites.sh: use php binary to determin php version instead of php-cgi.
2018-09-14 19:01:24 +02:00
chris
c635dedc3a
handle_domain_on_webserver.sh: add support for cleaning up dehydrated's domains.txt file.
2018-09-14 14:06:46 +02:00
chris
974f244ca7
create_summary_websites.sh: Some minor changes in numbering.
2018-08-28 19:43:14 +02:00
chris
36d51d9819
create_summary_websites.sh: add alias to parked and redirected output.
2018-08-28 13:58:08 +02:00
chris
4abf82bfcd
create_summary_websites.sh: add support of parked domains.
2018-08-22 13:50:53 +02:00
chris
fcff6b7695
Adjust README.HTTP-security-headers.
2018-04-26 03:59:15 +02:00
chris
63e243914e
Omit vhost files in Folders 'BAK' and 'DELETED'.
2018-04-24 19:12:44 +02:00
chris
bd5e5872b3
Adjust 'HTTP Security Header' documentaion.
2018-04-23 14:48:28 +02:00
chris
c3a13d935e
Change name of configuration file to 'create_vhost.conf'.
2018-04-20 02:44:54 +02:00
chris
afdb4bf7ff
SSLCertificateChainFile is deprecated. So don't warn, if actual configuration does not contain this rule.
2018-04-19 18:45:58 +02:00
chris
eddf35b31e
Fix minor bug.
2018-04-19 18:41:27 +02:00
chris
826309ac44
create_vhost.sh: prevent script from finding old configurations at folders vhosts-yyyy-mm-dd .
2018-04-09 15:22:55 +02:00
chris
4a37e454fa
Add Readme for HTTP security headers.
2018-03-15 16:28:23 +01:00
chris
856b8cb787
Some minor changes.
2018-02-08 03:36:16 +01:00
chris
5fcf7c5506
- Add support of 'parked' domain/site.
...
- Fix error in handling additional custom logfile."
2018-02-06 17:42:52 +01:00
chris
3f96a75f55
bundle IPv4 and IPv6 in vhost configuration block.
2018-01-11 16:50:54 +01:00
chris
d5dde995d1
create_summary_websites.sh: Add numbers of the counted statistcs.
2018-01-08 17:41:26 +01:00
chris
49ce38af2b
create_summary_websites.sh: support PHP v 7.2
2018-01-08 14:28:18 +01:00
chris
59f6f44a9f
Fix error (and output) if more than one unix sockets for a certain php version exist.
2018-01-07 17:32:01 +01:00
chris
54aa3faab5
Rename create_vhost_php.sh to create_vhost.sh. Add support for vhost configuration for redirecting sites.
2017-11-23 19:58:35 +01:00
chris
534a3c7e49
Add option to create a static (Non PHP) vhost entry. Add Option to allow only https-connections.
2017-10-30 13:22:39 +01:00
chris
b2a740b118
Add checks for cms 'drupal' and 'redaxo'.
2017-09-19 19:29:14 +02:00
chris
ef7e3de3a5
- Add CMS WordPress
...
- Some minor bug fixes
2017-09-19 13:41:24 +02:00
chris
3b30a7b170
Fix error in sample configuration file 'create_summary_websites.conf.sample'.
2017-09-19 02:56:27 +02:00
chris
41b4448d41
Add Script create_summary_websites.sh.
2017-09-19 02:47:52 +02:00
chris
c9c9e2220c
handle_domain_on_webserver.sh: fix error on determin database.
2017-09-19 02:46:52 +02:00
chris
a185a2d96f
- Fix error on deleting user from table mysql.user.
...
- Remove unused (commented) code.
2017-08-13 19:22:29 +02:00
chris
2e3a89908a
handle_domain_on_webserver.sh: first version ready for usage.
2017-08-13 18:37:34 +02:00
chris
f264e231a7
Fix error in determining IP Addresses.
2017-08-09 04:33:39 +02:00
chris
64830348dd
Add script 'handle_domain_on_webserver.sh' with symlinks 'check_domain_on_webserver.sh' and 'show_domain_on_webserver.sh'.
2017-07-05 02:38:59 +02:00
chris
d4d23c5580
Add script 'archive_logfiles.sh'.
2017-07-03 15:29:17 +02:00
chris
f02fcc26ab
Merge branch 'master' of https://git.oopen.de/script/apache2
2017-07-03 01:02:53 +02:00
chris
4d069c8696
Support new output format of 'ifconfig'-command.
2017-07-03 01:02:47 +02:00
chris
bc1d13bb05
Fix Bug in determin httpd binary.
2017-06-16 00:39:24 +02:00
chris
c74c424481
Add non obligatoric configuration file.
...
Add posibility to give project name in order to name website basedirectory.
Some minor changes.
2017-03-07 04:43:33 +01:00
chris
9472a46bea
Initial import
2017-02-21 02:20:36 +01:00