Anyone face issue when creating new virtual server from virtualmin but not able to create apache configuration failed issue?
Performing other Apache configuration …
… configuration failed : Apache virtual host was not found at …/web-lib-funcs.pl line 1495.
Adding new SSL virtual website …
… could not find non-SSL virtual website to copy directives from!
Ilia
January 19, 2020, 2:25pm
2
Hi,
It looks like you mis-edited Apache config. What is the output of these two commands?
apachectl configtest
apache2 -t
Note: For RHEL systems, the command should be httpd -t
.
1 Like
May you are right something is wrong with apache2
apachectl configtest
returns:
Syntax OK
apache2 -t
returns:
[core:warn] [pid 10637] 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
Ilia
January 22, 2020, 9:18pm
4
Try disabling and then enabling Apache feature on Edit Virtual Server page. It should just work by default, unless you break something manually.
Aside from possible solution above check /etc/apache2/apache.conf
file and other configs from /etc/apache2/sites-available
directory.
Still remain unsolved
My other server using Apache 2.4.25 is not having same issue at the sametime apache2 return same result.
Also site-available config file is created but content is not completed:
<VirtualHost *:80>
<VirtualHost *:80>
How does you /etc/apache2/envvars
look?
What about line 80 of apache2.conf, since you have a syntax error there?
Did you try Ilias suggestion?
Have you tried stopping and starting apache2? Or rebooting the server?
Summary
The directory where shm and other runtime files will be stored.
DefaultRuntimeDir ${APACHE_RUN_DIR}
Yes, I did restart, reinstall as well.
But apache2 is running?
Any clues in /var/log/apache2/error.log
?
toreskev:
But apache2 is running?
It Is.
Whenever trying to create apache config the only log showing is graceful restart
Summary
[Thu Jan 23 16:36:29.641711 2020] [mpm_prefork:notice] [pid 26147] AH00171: Graceful restart requested, doing restart
[Thu Jan 23 16:36:29.710822 2020] [mpm_prefork:notice] [pid 26147] AH00163: Apache/2.4.38 (Raspbian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured – resuming normal operations
[Thu Jan 23 16:36:29.711196 2020] [core:notice] [pid 26147] AH00094: Command line: ‘/usr/sbin/apache2’
Oh, you’re running Raspbian?
You do know that ARM isn’t supported by Virtualmin (currently at least)?
1 Like