[Bug 1262853] Re: Apache2 config file not set up correctly during install
apache would not run after performing a fresh server install This would indeed be a bug, but you haven't described how to reproduce this, and the report you filed here appears to be a different issue (that calling apache2 -V doesn't work, which is not a bug). If you do have a Apache doesn't work out of the box problem, and you believe that this is a bug rather than something different you are doing locally, then please file a new bug and detail that specific case, including exact steps to reproduce, expected results and actual results, with detail. If you aren't aware of it or the issues discussed there, How to report bugs effectively http://www.chiark.greenend.org.uk/~sgtatham/bugs.html is a helpful general guide on filing bugs. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
Hi, I installed Apache 2.4.6 mpm worker on Ubuntu 12 LTS (after uninstalling all kind of apache php mysql) it seems to work (page it's ok) but some usual commands do not work and results are unexpected. 1° Webmin shows event module activated instead of worker 2° apache2 -l doesn't return worker.c as compiled in module 3° apache2 -V complains about config variables not defined relying on SUFFIX=??? in envvars (AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf) 4° service apache2 restart or /etc/init.d/apache2 restart not replying OK 5° apache2 -L same as apache2 -V 6° apache2ctl configtest gives Syntax OK uname -a = Linux WORGANE 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4 17:25:51 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux lsb_release -a = Ubuntu 12.04.4 LTS \n \l apache2 -v Server version: Apache/2.4.6 (Ubuntu) Server built: Sep 23 2013 07:23:34 apt-cache show apache2-mpm-worker=2.4.6* = Package: apache2-mpm-worker Source: apache2 Priority: extra Section: oldlibs Installed-Size: 22 Maintainer: Debian Apache Maintainers debian-apa...@lists.debian.org Architecture: amd64 Version: 2.4.6-3+debphp.org~precise+1 Depends: apache2 (= 2.4.6-3+debphp.org~precise+1) Filename: pool/main/a/apache2/apache2-mpm-worker_2.4.6-3+debphp.org~precise+1_amd64.deb apt-cache show apache2=2.4.6* = Package: apache2 Priority: optional Section: httpd Installed-Size: 435 Maintainer: Debian Apache Maintainers debian-apa...@lists.debian.org Architecture: amd64 Version: 2.4.6-3+debphp.org~precise+1 Recommends: ssl-cert Replaces: apache2.2-common Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, apache2-utils Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.6-3+debphp.org~precise+1), apache2-data (= 2.4.6-3+debphp.org~precise+1) Conflicts: apache2.2-common Filename: pool/main/a/apache2/apache2_2.4.6-3+debphp.org~precise+1_amd64.deb thanks by advance Gilles -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
@brokengillou This is a bug for a separate bug that is marked Invalid. It is not the appropriate venue for your issue. It also looks like your problem is not related to Ubuntu itself, because you're using a custom third party source of Apache 2.4 on Precise, and because you're using webmin. Thus, this bug tracker isn't an appropriate venue to seek help. Try http://www.ubuntu.com/support/community for pointers to get community assistance, or try seeking help from the same place you got your custom packages (debphp.org?) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
I appreciate the replies to the bug. I would like to state, just in case the point was missed, that apache would not run after performing a fresh server install. Whether it was because the service was not started by the install or it is a misconfigured config file, it doesn't matter. It has always run out of the box in previous Ubuntu versions and it should now. If it doesn't, then it's a bug in my book. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
Thank you for your report. The default configuration provided by apache2 is in /etc/apache2. It uses apache2ctl, which uses /etc/apache2/envvars. If you do not have these variables defined in your environment when you call apache2, then you either need to source /etc/apache2/envvars to define them first, or replace the default configuration with one that does not need these variables defined. I expected to see no errors when performing the apache2 -V command. I appears that a file that defines these variables is missing. I think your expectation here is mismatched, and this behaviour is by design. If you want to call the binary directly instead of through apache2ctl, then of course you can do so, but must do it correctly. From the apache2(8) manpage: In general, apache2 should not be invoked directly, but rather should be invoked via /etc/init.d/apache2 or apache2ctl. The default Debian configuration requires environment variables that are defined in /etc/apache2/envvars and are not available if apache2 is started directly. However, apache2ctl can be used to pass arbitrary arguments to apache2. If I do: . /etc/apache2/envvars apache2 -V then I see the output that perhaps you were expecting. Marking this bug as Invalid, as I think that this behaviour is by design and shouldn't be a problem. If you disagree, please explain and set the bug status back to New. ** Changed in: apache2 (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
Use service apache2 to start/stop/restart Apache. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1262853] Re: Apache2 config file not set up correctly during install
Just wanted to note that I had installed the 64-bit versions of the server software. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1262853 Title: Apache2 config file not set up correctly during install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1262853/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs