How to resolve ‘Failed to connect to bus: No such file or directory’
when I would like to start apache 2
I see these error messages:
**systemctl enable apache2**
**systemctl start apache2.service**
Failed to connect to bus: No such file or directory
**systemctl start apache2**
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
**zypper install httpd**
Loading repository data...
Reading installed packages...
'httpd' not found in package names. Trying capabilities.
'apache2' providing 'httpd' is already installed.
'nginx' providing 'httpd' is already installed.
Resolving package dependencies...
Nothing to do.
Yes,
Suggestion 1: stop just trying commands, you might invoke something you don’t want.
Suggestion 2: Use YaST to
Install the LAMP server pattern, it will also install the YaST HTTP server module. After this step, exit YaST en start it again, the new module will be in Networkservices
**apache2ctl start**
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/default-server.conf:9
AH00526: Syntax error on line 1 of /etc/apache2/conf.d/wsl.conf:
AcceptFilter cannot occur within <VirtualHost> section
WSL is Windows 10 subsystem for Linux
I used rm -rf /etc/apache2/* and zypper remove apache2 and again I reinstalled apache2 with zypper install apache*
by the way, I cannot use http server with yast panel or service apache2 start or systemctl start apache2
if you need any log data or file data, don’t be hesitate to say me What do you need to resolve this problem
thanks ahead
openSUSE is one of the most easiest projects to contribute to, we’re a 100% volunteer community, there is no such thing as ‘openSUSE team’.
What I still don’t get, is why you cannot use YaST to setup the webserver. Once you’re already root, and have installed the lamp-server pattern, YaST’s http module should be available. I’ve done literally dozens of webserver setups this way, and it has never failed once.