[opensuse-factory] I need some help on getting apache2-2.4.6-5.1.x86_64 working on a local pc {127.0.0.1}
Hello, I need some help on getting apache2-2.4.6-5.1.x86_64 working on a local pc {127.0.0.1} and get this message[1] when i use firefox 127.0.0.1 Apache starts [2]when start is used rpms installed [3] other settings [4] Apache stops ok [5] when stop is used Using this documentation -> http://en.opensuse.org/SDB:Apache_installation I am using 13.1 milestone4. What else needs to be checked ? to get apache working on a local pc {127.0.0.1} Thanks Glenn [1] Unable to connect Firefox can't establish a connection to the server at 127.0.0.1. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. [2] apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled) Active: active (running) since Fri 2013-09-13 00:20:30 EST; 59s ago Process: 26868 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS) Main PID: 26891 (httpd2-worker) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/apache2.service ├─26891 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─26908 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─26909 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─26910 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start └─26911 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start Sep 13 00:20:30 test.site start_apache2[26891]: [Fri Sep 13 00:20:30.261743 2013] [core:warn] [pid 26891:tid 139645525448576] AH00117: Ignoring deprecated use of DefaultType in line 140 of /etc/apache2/httpd.conf. Sep 13 00:20:30 test.site systemd[1]: Started The Apache Webserver. Sep 13 00:20:32 test.site systemd[1]: Started The Apache Webserver. # systemctl status apache2.service apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled) Active: active (running) since Fri 2013-09-13 00:25:37 EST; 26min ago Process: 27064 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS) Main PID: 27173 (httpd2-worker) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/apache2.service ├─27173 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─27190 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─27191 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start ├─27192 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start └─27193 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start Sep 13 00:25:36 test.site start_apache2[27173]: [Fri Sep 13 00:25:36.958320 2013] [core:warn] [pid 27173:tid 140401963132800] AH00117: Ignoring deprecated use of DefaultType in line 140 of /etc/...e2/httpd.conf. Sep 13 00:25:37 test.site systemd[1]: Started The Apache Webserver. Sep 13 00:27:07 test.site systemd[1]: Started The Apache Webserver. Sep 13 00:46:36 test.site systemd[1]: Started The Apache Webserver. [3] # rpm -qa | grep -i apache |sort apache2-2.4.6-5.1.x86_64 apache2-example-pages-2.4.6-5.1.x86_64 apache2-utils-2.4.6-5.1.x86_64 apache2-worker-2.4.6-5.1.x86_64 [4] # sysconf_addword /etc/sysconfig/SuSEfirewall2 FW_CONFIGURATIONS_EXT apache2 "apache2" already present # sysconf_addword /etc/sysconfig/SuSEfirewall2 FW_CONFIGURATIONS_EXT apache2-ssl "apache2-ssl" already present # rcSuSEfirewall2 restart # chkconfig -a apache2 ln -s '/usr/lib/systemd/system/apache2.service' '/etc/systemd/system/multi-user.target.wants/apache2.service' Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. # systemctl start apache2.service # journalctl -xn -- Logs begin at Thu 2013-09-12 14:02:48 EST, end at Fri 2013-09-13 00:46:36 EST. -- Sep 13 00:46:01 test.site systemd[1]: Starting Session 958 of user root. -- Subject: Unit session-958.scope has begun with start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-958.scope has begun starting up. Sep 13 00:46:01 test.site systemd[1]: Started Session 958 of user root. -- Subject: Unit session-958.scope has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-958.scope has finished starting up. -- -- The start-up result is done. Sep 13 00:46:01 test.site /USR/SBIN/CRON[28004]: (root) CMD (/usr/bin/smart update) Sep 13 00:46:14 test.site postfix/pickup[26493]: 9F30E63CC6: uid=0 from=<root> Sep 13 00:46:14 test.site postfix/cleanup[27715]: 9F30E63CC6: message-id=<20130912144614.9F30E63CC6@test.site> Sep 13 00:46:14 test.site /USR/SBIN/CRON[28003]: pam_unix(crond:session): session closed for user root Sep 13 00:46:14 test.site postfix/qmgr[1283]: 9F30E63CC6: from=<root@test.site>, size=1490, nrcpt=1 (queue active) Sep 13 00:46:14 test.site postfix/local[27851]: 9F30E63CC6: to=<root@test.site>, orig_to=<root>, relay=local, delay=13, delays=13/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Sep 13 00:46:14 test.site postfix/qmgr[1283]: 9F30E63CC6: removed Sep 13 00:46:36 test.site systemd[1]: Started The Apache Webserver. -- Subject: Unit apache2.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit apache2.service has finished starting up. -- -- The start-up result is done. [5] apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled) Active: inactive (dead) since Fri 2013-09-13 00:21:56 EST; 3s ago Process: 27064 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS) Process: 26891 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k start (code=exited, status=0/SUCCESS) Main PID: 26891 (code=exited, status=0/SUCCESS) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" Sep 13 00:20:30 test.site start_apache2[26891]: [Fri Sep 13 00:20:30.261743 2013] [core:warn] [pid 26891:tid 139645525448576] AH00117: Ignoring deprecated use of DefaultType in line 140 of /etc/apache2/httpd.conf. Sep 13 00:20:30 test.site systemd[1]: Started The Apache Webserver. Sep 13 00:20:32 test.site systemd[1]: Started The Apache Webserver. Sep 13 00:21:56 test.site systemd[1]: Stopping The Apache Webserver... Sep 13 00:21:56 test.site start_apache2[27064]: [Fri Sep 13 00:21:56.519336 2013] [core:warn] [pid 27064:tid 140499491452800] AH00117: Ignoring deprecated use of DefaultType in line 140 of /etc/apache2/httpd.conf. Sep 13 00:21:56 test.site systemd[1]: Stopped The Apache Webserver. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op woensdag 11 september 2013 08:22:19 schreef doiggl@velocitynet.com.au:
Hello, I need some help on getting apache2-2.4.6-5.1.x86_64 working on a local pc {127.0.0.1} and get this message[1] when i use firefox 127.0.0.1
Apache starts [2]when start is used rpms installed [3] other settings [4] Apache stops ok [5] when stop is used Using this documentation -> http://en.opensuse.org/SDB:Apache_installation I am using 13.1 milestone4.
What else needs to be checked ? to get apache working on a local pc {127.0.0.1} Thanks Glenn
What is the output of: ss -tlnp | grep ' ' It gives processes that listen on certain ports. It should give a process listening on port 80. Set the firewall configuration to log all dropped packages and give the output of: grep ' DPT=80 ' /var/log/firewall | tail Give the output of: tail /var/log/apache2/error_log The above right after you have tried to make the connection to 127.0.0.1. -- fr.gr. Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op woensdag 11 september 2013 08:22:19 schreef doiggl@velocitynet.com.au:
Hello, I need some help on getting apache2-2.4.6-5.1.x86_64 working on a local pc {127.0.0.1} and get this message[1] when i use firefox 127.0.0.1
Apache starts [2]when start is used rpms installed [3] other settings [4] Apache stops ok [5] when stop is used Using this documentation -> http://en.opensuse.org/SDB:Apache_installation I am using 13.1 milestone4.
What else needs to be checked ? to get apache working on a local pc {127.0.0.1} Thank you for the help, Glenn
What is the output of:
ss -tlnp | grep ' '
It gives processes that listen on certain ports. It should give a
On Thu, 12 Sep 2013 22:10:54 +0200, Freek de Kruijf <f.de.kruijf@gmail.com> wrote: process
listening on port 80.
Set the firewall configuration to log all dropped packages and give the output of:
grep ' DPT=80 ' /var/log/firewall | tail
Give the output of:
tail /var/log/apache2/error_log
The above right after you have tried to make the connection to 127.0.0.1.
-- fr.gr.
Freek de Kruijf
Hello, Outputs are as follows: see [1],[2],[3] --Glenn [1] # ss -tlnp | grep ' ' State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 *:22 *:* users:(("sshd",635,3)) LISTEN 0 100 127.0.0.1:25 *:* users:(("master",1355,12)) LISTEN 0 128 127.0.0.1:199 *:* users:(("snmpd",741,8)) LISTEN 0 50 *:3306 *:* users:(("mysqld",1225,14)) LISTEN 0 128 :::22 :::* users:(("sshd",635,4)) LISTEN 0 128 :::631 :::* users:(("systemd",1,28)) LISTEN 0 100 ::1:25 :::* users:(("master",1355,13)) LISTEN 0 128 :::80 :::* users:(("httpd2-worker",2559,4),("httpd2-worker",2558,4),("httpd2-worker",2557,4),("httpd2-worker",2539,4)) [2] Altered firewall # firefox 127.0.0.1 gives 'It works!' # tail /var/log/apache2/error_log [Fri Sep 13 14:26:56.789064 2013] [core:warn] [pid 3498:tid 139703247816576] AH00117: Ignoring deprecated use of DefaultType in line 140 of /etc/apache2/httpd.conf. [Fri Sep 13 14:26:57.004494 2013] [ssl:warn] [pid 3498:tid 139703247816576] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Sep 13 14:26:57.006155 2013] [mpm_worker:notice] [pid 3498:tid 139703247816576] AH00292: Apache/2.4.6 (Linux/SUSE) OpenSSL/1.0.1e configured -- resuming normal operations [Fri Sep 13 14:26:57.006229 2013] [core:notice] [pid 3498:tid 139703247816576] AH00094: Command line: '/usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND [3] # grep ' DPT=80 ' /var/log/firewall # [4] rpms installed # rpm -qa | grep -i apache |sort apache2-2.4.6-5.1.x86_64 apache2-example-pages-2.4.6-5.1.x86_64 apache2-utils-2.4.6-5.1.x86_64 apache2-worker-2.4.6-5.1.x86_64 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Freek de Kruijf