Apache will not start. The command "sudo service apache2 status" lists these errors:
/usr/sbin/apachectl: 1: /usr/sbin/apachectl: id: not found /usr/sbin/apachectl: 98: [: -eq: unexpected operator /usr/sbin/apachectl: 147: /usr/sbin/apachectl: mkdir: not found /usr/sbin/apachectl: 126: /usr/sbin/apachectl: mktemp: not found /usr/sbin/apachectl: 127: /usr/sbin/apachectl: chmod: not found I checked this against the version of apachectl on a test machine and it is the same code. I tried running with sh, bash and dash ... but none worked. I don't think there is anything actually wrong with apachectl but something in my setup must be wrong.
Any idea how I can fix this error?
System ubuntu 19.04, apache 2.4
which mkdirorwhich \[?which id,which apachectl,echo $PATH,ls -l /usr/bin/id)...