[opensuse-factory] Apache: The connection was refused when attempting to contact 127.0.0.1

Hello How do I get apache going on localhost[127.0.0.1] opensuse x86_64 factory 12.2 rc2 How can I get this service going? Thanks Glenn Browser result: Failed to Connect The connection was refused when attempting to contact 127.0.0.1 Rpms installed: # rpm -qa | grep -i apache | sort ant-apache-bcel-1.8.2-11.1.9.noarch ant-apache-bsf-1.8.2-11.1.9.noarch ant-apache-log4j-1.8.2-11.1.9.noarch ant-apache-oro-1.8.2-11.1.9.noarch ant-apache-regexp-1.8.2-11.1.9.noarch ant-apache-resolver-1.8.2-11.1.9.noarch apache-commons-logging-1.1.1-4.1.1.noarch apache2-2.2.22-8.1.x86_64 apache2-example-pages-2.4.2-76.1.x86_64 apache2-utils-2.4.2-76.1.x86_64 apache2-worker-2.2.22-8.1.x86_64 # rpm -qa | grep -i mysql | sort libmysqlclient-devel-5.5.25a-1.1.1.x86_64 libmysqlclient18-32bit-5.5.25a-1.1.1.x86_64 libmysqlclient18-5.5.25a-1.1.1.x86_64 libmysqlclient_r18-5.5.25a-1.1.1.x86_64 libmysqld18-5.5.25a-1.1.1.x86_64 libqt4-sql-mysql-32bit-4.8.1-2.1.2.x86_64 libqt4-sql-mysql-4.8.1-2.1.2.x86_64 libreoffice-base-drivers-mysql-3.6.0.4-4.1.x86_64 mysql-community-server-5.5.25a-1.1.1.x86_64 mysql-community-server-client-5.5.25a-1.1.1.x86_64 mysql-community-server-errormessages-5.5.25a-1.1.1.x86_64 php5-mysql-5.3.15-1.1.1.x86_64 # ls /srv/www/htdocs 50x.html favicon.ico gif images index.html info2html.css robots.txt # cat /srv/www/htdocs/index.html <html><body><h1>It works!</h1></body></html> -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting doiggl@velocitynet.com.au:
rcapach2 start ? (or more modern: systemctl start apache2.service) Is the service running? Or does it 'die' once you start it? Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org>:
sorry.. clumsy fingers.. make that an rcapache2 start (I'm sure you figured that). Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 11:34:39 +0200, "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org> wrote:
Hello, Thanks for the info. Here are the results of the commands: # rcapache2 start redirecting to systemctl Job failed. See system journal and 'systemctl status' for details. # systemctl status Too few arguments. What do I check next? Thanks Glenn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 21:29:25 +1000, <doiggl@velocitynet.com.au> wrote:
Aug 20 23:51:53 orac start_apache2[1395]: httpd2-worker: Syntax error on line 205 of /etc/apache2/httpd.conf: Sy...osed. # head -205 /etc/apache2/httpd.conf | tail -5 # # You may use the command line option '-S' to verify your virtual host # configuration. # Include /etc/apache2/vhosts.d/*.conf # ll /etc/apache2/vhosts.d/*.conf -rw-r--r-- 1 root root 2113 Aug 3 23:13 /etc/apache2/vhosts.d/cacti.conf # -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting doiggl@velocitynet.com.au:
So using the apache 'standard' debug methods might help you: try apachectl -T or httpd -t -f /etc/apache2/httpd.conf Let's see what we get. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 16:24:04 +0200, "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org> wrote:
Hello, Results as follows and attaching files -Glenn - /etc/apache2/httpd.conf - /etc/apache2/vhosts.d/cacti.conf # apache2ctl -T httpd2: Syntax error on line 205 of /etc/apache2/httpd.conf: Syntax error on line 1 of /etc/apache2/vhosts.d/cacti.conf: /etc/apache2/vhosts.d/cacti.conf:1: <?php> was not closed.

Quoting doiggl@velocitynet.com.au:
On Mon, 20 Aug 2012 16:24:04 +0200, "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org> wrote:
cacti.conf does look like a PHP script, not like an apache config file.. I'm certain this files must not be in the folder /etc/apache2/vhosts.d Check why it's there (did a package put it there? rpm -qf /etc/apache2/vhosts.d/cacti.conf) or did you put it there? Package -> bug report. This is clearly WRONG; in the meantime, move this file out and see if you can fix 'cacti' to look for the file in the right place. You -> Bug report to yourself :) hope that helps you in this case. Best regards Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Le lundi 20 août 2012 à 21:29 +1000, doiggl@velocitynet.com.au a écrit :
systemctl status apache2.service (otherwise systemctl doesn't know which service you want to check..) -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting doiggl@velocitynet.com.au:
rcapach2 start ? (or more modern: systemctl start apache2.service) Is the service running? Or does it 'die' once you start it? Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org>:
sorry.. clumsy fingers.. make that an rcapache2 start (I'm sure you figured that). Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 11:34:39 +0200, "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org> wrote:
Hello, Thanks for the info. Here are the results of the commands: # rcapache2 start redirecting to systemctl Job failed. See system journal and 'systemctl status' for details. # systemctl status Too few arguments. What do I check next? Thanks Glenn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 21:29:25 +1000, <doiggl@velocitynet.com.au> wrote:
Aug 20 23:51:53 orac start_apache2[1395]: httpd2-worker: Syntax error on line 205 of /etc/apache2/httpd.conf: Sy...osed. # head -205 /etc/apache2/httpd.conf | tail -5 # # You may use the command line option '-S' to verify your virtual host # configuration. # Include /etc/apache2/vhosts.d/*.conf # ll /etc/apache2/vhosts.d/*.conf -rw-r--r-- 1 root root 2113 Aug 3 23:13 /etc/apache2/vhosts.d/cacti.conf # -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Quoting doiggl@velocitynet.com.au:
So using the apache 'standard' debug methods might help you: try apachectl -T or httpd -t -f /etc/apache2/httpd.conf Let's see what we get. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 20 Aug 2012 16:24:04 +0200, "Dominique Leuenberger a.k.a DimStar" <DimStar@openSUSE.org> wrote:
Hello, Results as follows and attaching files -Glenn - /etc/apache2/httpd.conf - /etc/apache2/vhosts.d/cacti.conf # apache2ctl -T httpd2: Syntax error on line 205 of /etc/apache2/httpd.conf: Syntax error on line 1 of /etc/apache2/vhosts.d/cacti.conf: /etc/apache2/vhosts.d/cacti.conf:1: <?php> was not closed.
participants (3)
-
doiggl@velocitynet.com.au
-
Dominique Leuenberger a.k.a DimStar
-
Frederic Crozat