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

Apache2 cannot start on fresh install #2120

Closed
ChristopheCaron opened this issue May 17, 2017 · 5 comments
Closed

Apache2 cannot start on fresh install #2120

ChristopheCaron opened this issue May 17, 2017 · 5 comments

Comments

@ChristopheCaron
Copy link

  • Windows build number: Microsoft Windows [version 10.0.15063]

I install Ubuntu on my PC, I executed just before my issue :


$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install apache2

I added to /etc/apache2/apache2.conf in end of file,
AcceptFilter http none
And :
$ sudo a2enmod rewrite

telmedia@PC-CCA:~$ sudo service apache2 start
 * Restarting Apache httpd web server apache2                                                                    [fail]
 * The apache2 configtest failed.
Output of config test was:
apache2: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Aborted (core dumped)
Action 'configtest' failed.
The Apache error log may have more information.
  • I turn off Skype, Xampp, I have no proxy, no firewall.
  • Apache error log is empty
  • I already tried to uninstall / reinstall BoW
    lxrun /uninstall /full

Thanks

@gmasquelier59
Copy link

+1

@snickler
Copy link

I've tested this on the latest RS3 build (16193) and it seems to work for me.

I did all the same things that you did, but changed the port it listened on from within /etc/apache2/ports.conf

~$ nano /etc/apache2/apache2.conf
~$ sudo nano /etc/apache2/apache2.conf
~$ sudo a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart
~$ sudo service apache2 restart
 * Restarting Apache httpd web server apache2                                                                           (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                                                                 [fail]
~$ sudo nano /etc/apache2/apache2.conf
~$ sudo nano /etc/apache2/ports.conf
~$ sudo a2enmod rewrite
Module rewrite already enabled
~$ sudo service apache2 restart
 * Restarting Apache httpd web server apache2                                                                    [ OK ]
~$

@ycecube
Copy link

ycecube commented May 19, 2017

Hi,

I've experienced the same issue, but for me it caused by a VPN solution called Pulse Secure.

After I've uninstalled it, apache started to working again.

@aaronsvk
Copy link

I had the same problem caused by Pulse Secure VPN.

Here is the output of strace -o apache.txt -ff apache2:

open("/etc/gai.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0
read(3, "# Configuration for getaddrinfo("..., 4096) = 2584
read(3, "", 4096)                       = 0
close(3)                                = 0
futex(0x7f235c8e5ee4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
getsockname(3, {sa_family=AF_INET6, sin6_port=htons(50916), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
connect(3, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(3, {sa_family=AF_INET6, sin6_port=htons(50916), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
write(2, "apache2: ../sysdeps/posix/getadd"..., 128) = 128
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f235d410000
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(555, 555, SIGABRT)               = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=555, si_uid=0} ---
+++ killed by SIGABRT (core dumped) +++

full output of strace

@therealkenc
Copy link
Collaborator

therealkenc commented Nov 23, 2017

#508

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

6 participants