Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

  1. #1

    Default How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    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:
    Code:
    systemctl enable apache2
    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 nano /etc/apache2/
    .....
    -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

    I cannot connect to my web server

    Any suggestions?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,763
    Blog Entries
    14

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    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
    • Configure and start the apache2 webserver
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,763
    Blog Entries
    14

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    Another thing: always include the prompt when posting a command, it shows us whether a normal user or root is executing it.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    Quote Originally Posted by Knurpht View Post
    Another thing: always include the prompt when posting a command, it shows us whether a normal user or root is executing it.
    Hi,
    my activity is with root user every time

  5. #5

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    every necessary package was installed like phpmyadmin, apache2, php, and mysql
    please see my pictures taken:

    https://ibb.co/jsFyCS
    https://ibb.co/nhLbz7
    https://ibb.co/iDbGz7

  6. #6

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    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 redscience.official@gmail.com
    <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

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,763
    Blog Entries
    14

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    Why don't you use YaST, like I suggested, You can even use it on a server without desktop:
    Code:
    su -c yast
    BTW: where's that wsl.conf coming from? I don't have it on my systems.

    EDIT: Sorry, missed the pictures. What you can do is remove the /etc/apache2/* , then reinstall apache2 to start with a clean config,
    Last edited by Knurpht; 12-Apr-2018 at 15:58.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    Quote Originally Posted by Knurpht View Post
    Why don't you use YaST, like I suggested, You can even use it on a server without desktop:
    Code:
    su -c yast
    BTW: where's that wsl.conf coming from? I don't have it on my systems.

    EDIT: Sorry, missed the pictures. What you can do is remove the /etc/apache2/* , then reinstall apache2 to start with a clean config,
    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

  9. #9

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE


  10. #10

    Default Re: How to resolve 'Failed to connect to bus: No such file or directory' in openSUSE

    Quote Originally Posted by Knurpht View Post
    Why don't you use YaST, like I suggested, You can even use it on a server without desktop:
    Code:
    su -c yast
    BTW: where's that wsl.conf coming from? I don't have it on my systems.

    EDIT: Sorry, missed the pictures. What you can do is remove the /etc/apache2/* , then reinstall apache2 to start with a clean config,
    Knurpht, do you have any idea?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •