Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve start apache2 'Failed to connect to bus: No such file or directory' in openSUSE #3175

Closed
redscience opened this issue May 10, 2018 · 2 comments

Comments

@redscience
Copy link

redscience commented May 10, 2018

when I want to start apache 2, I use these commands after installation method
Code:
systemctl enable apache2
But I saw these error messages:
Code:

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

Code:

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.

Code:

cd /etc/apache2/
ls -laF
-rw-r--r-- 1 root root  4086 Apr 11 20:48 default-server.conf
-rw-r--r-- 1 root root  2924 Jan 29 14:36 errors.conf
-rw-r--r-- 1 root root   128 Jan 29 14:36 global.conf
-rw-r--r-- 1 root root  9033 Jan 29 14:36 httpd.conf
-rw-r--r-- 1 root root  1055 Apr 11 20:32 listen.conf
-rw-r--r-- 1 root root  1957 Jan 29 14:36 loadmodule.conf

.
.
.

In my browser when I want to try to connect to web server:

127.0.0.1:defined Port number within listen.conf

Code:

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

and
Code:

nano /etc/apache2/default-server.conf

DocumentRoot /srv/www/htdocs
ServerName localhost
ServerAdmin [email protected]
<Directory /srv/www/htdocs>
 AllowOverride None
 Require all granted
</Directory>
UserDir public_html
NameVirtualHost 127.0.0.1

and
Code:

nano /etc/apache2/conf.d/wsl.conf
AcceptFilter http none

I attached images here to show you:
https://imgur.com/610pzEl
https://imgur.com/a/LvncC
https://imgur.com/a/nCW3N
https://imgur.com/a/BSOK4

I cannot connect to my web server

@therealkenc
Copy link
Collaborator

#1579 etc. Landing zone is #994.

@redscience
Copy link
Author

win:~ # sudo service apache2 start
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants