Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #273977 > unrolled thread
| Started by | aces and eights <mick.crane@gmail.com> |
|---|---|
| First post | 2024-10-23 11:10 +0200 |
| Last post | 2024-10-25 17:20 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.user
apache2 error after upgrade Buster->Bookworm aces and eights <mick.crane@gmail.com> - 2024-10-23 11:10 +0200
Re: apache2 error after upgrade Buster->Bookworm Michel Verdier <mv524@free.fr> - 2024-10-24 10:00 +0200
Re: apache2 error after upgrade Buster->Bookworm aces and eights <mick.crane@gmail.com> - 2024-10-24 14:40 +0200
Re: roundcube (Was: apache2 error after upgrade Buster->Bookworm) Karl Vogel <vogelke@pobox.com> - 2024-10-24 22:30 +0200
Re: apache2 error after upgrade Buster->Bookworm Michel Verdier <mv524@free.fr> - 2024-10-25 11:10 +0200
Re: apache2 error after upgrade Buster->Bookworm aces and eights <mick.crane@gmail.com> - 2024-10-25 17:20 +0200
| From | aces and eights <mick.crane@gmail.com> |
|---|---|
| Date | 2024-10-23 11:10 +0200 |
| Subject | apache2 error after upgrade Buster->Bookworm |
| Message-ID | <JAFxn-3Et6-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
this email may go anywhere.
After putting it off for ages I upgraded the PC that does Dovecot,
Roundcube and some other things from Buster to Bookworm.
There seems to be an error with apache2.
The apache2 index file I made as a page of links to things on the server.
Likely you are not supposed to do it that way.
A browser now offers to download this index.html instead of previously it
being presented by apache2.
So now the link to the roundcube webmail doesn't work. A browser offers to
download it.
Getmail, Dovecot seems to be getting the emails and putting them in the
correct Maildir directories.
although
$ apachectl configtest
Syntax OK
$ apache2 -V
[Wed Oct 23 08:57:39.760030 2024] [core:warn] [pid 4112:tid 4112] AH00111:
Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf:
DefaultRuntimeDir must be a valid directory, absolute or relative to
ServerRoot
Server version: Apache/2.4.62 (Debian)
Line 80 is DefaultRuntimeDir ${APACHE_RUN_DIR}
uncommenting line 69 ServerRoot "/etc/apache2"
and typing "source /etc/apache2/envvars" seems to have made "Config
variable ${APACHE_RUN_DIR} is not defined" go away.
I know I shouldn't type things without knowing what they do but source has
no manpage.
Likely it is something in the configuration files in /etc/apache2.
I wonder if there is something in the configuration affected by the
usrmerge.
Anybody had issues with apache2 upgrading from Buster to Bookworm?
mick
[toc] | [next] | [standalone]
| From | Michel Verdier <mv524@free.fr> |
|---|---|
| Date | 2024-10-24 10:00 +0200 |
| Message-ID | <JB0Vc-3Rgg-3@gated-at.bofh.it> |
| In reply to | #273977 |
On 2024-10-23, aces and eights wrote:
> $ apache2 -V
> [Wed Oct 23 08:57:39.760030 2024] [core:warn] [pid 4112:tid 4112] AH00111:
> Config variable ${APACHE_RUN_DIR} is not defined
> apache2: Syntax error on line 80 of /etc/apache2/apache2.conf:
> DefaultRuntimeDir must be a valid directory, absolute or relative to
> ServerRoot
> Server version: Apache/2.4.62 (Debian)
Can you provide us
systemctl status apache2.service
apachectl -t -D DUMP_RUN_CFG
apachectl -t -D DUMP_MODULES
or
ls -l /etc/apache2/mods-enabled/
[toc] | [prev] | [next] | [standalone]
| From | aces and eights <mick.crane@gmail.com> |
|---|---|
| Date | 2024-10-24 14:40 +0200 |
| Message-ID | <JB5i9-3U4c-11@gated-at.bofh.it> |
| In reply to | #273996 |
[Multipart message — attachments visible in raw view] — view raw
I would like to get roundcube back working as Mutt although being ever so
quick seems to have quite a lot of daunting options and not brave enough to
try to send with.
~$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset:
enab>
Active: active (running) since Wed 2024-10-23 09:04:51 BST; 1 day 4h
ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 4137 ExecStart=/usr/sbin/apachectl start (code=exited,
status=0/SU>
Process: 7294 ExecReload=/usr/sbin/apachectl graceful (code=exited,
status=>
Main PID: 4141 (apache2)
Tasks: 6 (limit: 2272)
Memory: 10.4M
CPU: 2.465s
CGroup: /system.slice/apache2.service
├─4141 /usr/sbin/apache2 -k start
├─7299 /usr/sbin/apache2 -k start
├─7300 /usr/sbin/apache2 -k start
├─7301 /usr/sbin/apache2 -k start
├─7302 /usr/sbin/apache2 -k start
└─7303 /usr/sbin/apache2 -k start
Oct 23 09:04:51 rapunzel systemd[1]: Starting apache2.service - The Apache
HTTP>
Oct 23 09:04:51 rapunzel systemd[1]: Started apache2.service - The Apache
HTTP >
Oct 24 00:00:02 rapunzel systemd[1]: Reloading apache2.service - The Apache
HTT>
Oct 24 00:00:02 rapunzel systemd[1]: Reloaded apache2.service - The Apache
HTTP>
lines 1-22/22 (END)
~$ apachectl -t -D DUMP_RUN_CFG
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
~$ apachectl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
python_module (shared)
reqtimeout_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)
~$ ls -l /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 36 Mar 30 2018 access_compat.load ->
../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Mar 30 2018 alias.conf ->
../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Mar 30 2018 alias.load ->
../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 auth_basic.load ->
../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 authn_core.load ->
../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 authn_file.load ->
../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 authz_core.load ->
../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 authz_host.load ->
../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 authz_user.load ->
../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Mar 30 2018 autoindex.conf ->
../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Mar 30 2018 autoindex.load ->
../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Mar 30 2018 deflate.conf ->
../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Mar 30 2018 deflate.load ->
../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Mar 30 2018 dir.conf ->
../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Mar 30 2018 dir.load ->
../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Mar 30 2018 env.load ->
../mods-available/env.load
lrwxrwxrwx 1 root root 29 Mar 30 2018 filter.load ->
../mods-available/filter.load
lrwxrwxrwx 1 root root 30 Jan 9 2019 headers.load ->
../mods-available/headers.load
lrwxrwxrwx 1 root root 27 Mar 30 2018 mime.conf ->
../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Mar 30 2018 mime.load ->
../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Mar 31 2018 mpm_prefork.conf ->
../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Mar 31 2018 mpm_prefork.load ->
../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Mar 30 2018 negotiation.conf ->
../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Mar 30 2018 negotiation.load ->
../mods-available/negotiation.load
lrwxrwxrwx 1 root root 28 Dec 14 2018 proxy.conf ->
../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 Dec 14 2018 proxy_fcgi.load ->
../mods-available/proxy_fcgi.load
lrwxrwxrwx 1 root root 28 Dec 14 2018 proxy.load ->
../mods-available/proxy.load
lrwxrwxrwx 1 root root 29 Jul 26 2019 python.load ->
../mods-available/python.load
lrwxrwxrwx 1 root root 33 Mar 30 2018 reqtimeout.conf ->
../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Mar 30 2018 reqtimeout.load ->
../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Mar 30 2018 setenvif.conf ->
../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Mar 30 2018 setenvif.load ->
../mods-available/setenvif.load
lrwxrwxrwx 1 root root 36 Mar 31 2018 socache_shmcb.load ->
../mods-available/socache_shmcb.load
lrwxrwxrwx 1 root root 26 Mar 31 2018 ssl.conf ->
../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 Mar 31 2018 ssl.load ->
../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 Mar 30 2018 status.conf ->
../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Mar 30 2018 status.load ->
../mods-available/status.load
On Thu, 24 Oct 2024 at 11:58, Michel Verdier <mv524@free.fr> wrote:
> On 2024-10-23, aces and eights wrote:
>
> > $ apache2 -V
> > [Wed Oct 23 08:57:39.760030 2024] [core:warn] [pid 4112:tid 4112]
> AH00111:
> > Config variable ${APACHE_RUN_DIR} is not defined
> > apache2: Syntax error on line 80 of /etc/apache2/apache2.conf:
> > DefaultRuntimeDir must be a valid directory, absolute or relative to
> > ServerRoot
> > Server version: Apache/2.4.62 (Debian)
>
> Can you provide us
>
> systemctl status apache2.service
> apachectl -t -D DUMP_RUN_CFG
> apachectl -t -D DUMP_MODULES
> or
> ls -l /etc/apache2/mods-enabled/
>
>
[toc] | [prev] | [next] | [standalone]
| From | Karl Vogel <vogelke@pobox.com> |
|---|---|
| Date | 2024-10-24 22:30 +0200 |
| Subject | Re: roundcube (Was: apache2 error after upgrade Buster->Bookworm) |
| Message-ID | <JBcCZ-3Yuc-1@gated-at.bofh.it> |
| In reply to | #273997 |
On Thu 24 Oct 2024 at 08:35:32 (-0400), aces and eights wrote:
> I would like to get roundcube back working as Mutt although being ever so
> quick seems to have quite a lot of daunting options and not brave enough
> to try to send with.
It's not that bad. For this message, I pressed 'r' for reply and your
message was quoted as above. When I finish editing and save my changes,
I can press 'a' to add an attachment or press 'y' to send.
The only thing I needed to set up was where and how to forward outgoing
mail so it would actually get sent. I installed the "msmtp" SMTP client
to do the delivery.
Your mutt configuration would look like this, if you can send via Gmail:
set sendmail="/usr/local/bin/msmtp"
set envelope_from="yes"
set from="mick.crane@gmail.com"
set realname="aces and eights"
set use_from="yes"
Your $HOME/.msmtprc file would hold something like:
defaults
port 587
tls on
tls_starttls on
tls_trust_file /usr/local/share/certs/ca-root-nss.crt
account default
host smtp.gmail.com # guessing here, but it resolves
syslog LOG_MAIL
remove_bcc_headers off # Bcc to myself for an accurate copy
from mick.crane@gmail.com
auth on
user mick.crane
password m/d4sS2aQiCfML # or whatever you use to authenticate...
"msmtp" is pretty much set and forget.
--
Karl Vogel I don't speak for anyone but myself
Aliens passing gas caused hole in ozone layer! --Weekly World News headline
[toc] | [prev] | [next] | [standalone]
| From | Michel Verdier <mv524@free.fr> |
|---|---|
| Date | 2024-10-25 11:10 +0200 |
| Message-ID | <JBout-45U4-1@gated-at.bofh.it> |
| In reply to | #273997 |
On 2024-10-24, aces and eights wrote: > ~$ systemctl status apache2.service [...] Your config is ok. >> > $ apache2 -V I miss this point: you should use apachectl -V or apache2ctl -V if you want to look at your running apache with all default values set
[toc] | [prev] | [next] | [standalone]
| From | aces and eights <mick.crane@gmail.com> |
|---|---|
| Date | 2024-10-25 17:20 +0200 |
| Message-ID | <JBugx-49kE-3@gated-at.bofh.it> |
| In reply to | #274033 |
[Multipart message — attachments visible in raw view] — view raw
OK, It will be some simple thing. I have the original install backed up somewhere so will compare the configurations. I found out what "source" does. Thanks to Karl also for the Mutt, msmtp tips. cheers mick On Fri, 25 Oct 2024 at 13:08, Michel Verdier <mv524@free.fr> wrote: > On 2024-10-24, aces and eights wrote: > > > ~$ systemctl status apache2.service > [...] > > Your config is ok. > > >> > $ apache2 -V > > I miss this point: you should use apachectl -V or apache2ctl -V if you > want to look at your running apache with all default values set > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web