You are not logged in.

#1 2016-01-06 17:07:10

charliez1312
Member
Registered: 2015-11-23
Posts: 17

[SOLVED] Apache server - not working

Hi, I updated my system with pacman (php updated too) and I reboot it. After login, my apache server not working. I append extract from my terminal.

 [root@Thinkpad_X220 http]# systemctl status httpd
● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since St 2016-01-06 17:53:31 CET; 8min ago
 Main PID: 5159 (code=exited, status=1/FAILURE)

led 06 17:53:31 Thinkpad_X220 systemd[1]: Started Apache Web Server.
led 06 17:53:31 Thinkpad_X220 httpd[5159]: httpd: Syntax error on line 184 of /etc/htt...ry
led 06 17:53:31 Thinkpad_X220 systemd[1]: httpd.service: Main process exited, code=exi...RE
led 06 17:53:31 Thinkpad_X220 httpd[5161]: httpd: Syntax error on line 184 of /etc/htt...ry
led 06 17:53:31 Thinkpad_X220 systemd[1]: httpd.service: Control process exited, code=...=1
led 06 17:53:31 Thinkpad_X220 systemd[1]: httpd.service: Unit entered failed state.
led 06 17:53:31 Thinkpad_X220 systemd[1]: httpd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
 

Do you know where is a problem?

Sorry for my english, I am student and I am learning it.

Thank you very much

Last edited by charliez1312 (2016-01-06 17:29:00)

Offline

#2 2016-01-06 17:11:59

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] Apache server - not working

Yes, I know where the problem is. The error messages tell you the filename and line number! tongue

I had to follow the instructions for updating PHP before my webserver would start again.

Offline

#3 2016-01-06 17:28:37

charliez1312
Member
Registered: 2015-11-23
Posts: 17

Re: [SOLVED] Apache server - not working

drcouzelis wrote:

Yes, I know where the problem is. The error messages tell you the filename and line number! tongue

I had to follow the instructions for updating PHP before my webserver would start again.

Oh, thank you for the very quick answer. It is working!

Offline

#4 2016-02-14 17:41:03

mak705
Member
Registered: 2016-02-14
Posts: 1

Re: [SOLVED] Apache server - not working

HI

I am using ubuntu 15.10

Not able to login http://localhost/ from browser, it shows A username and password are being requested by http://localhost. The site says: "Restricted Access". After entering username and password, it shows incorrect.

I have configured apache server with password.

Cn any one help regarding this

root@VER-BLR-LT1449:~# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: active (exited) since Sun 2016-02-14 22:26:25 IST; 43min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 23166 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 23177 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

Feb 14 22:26:24 VER-BLR-LT1449 systemd[1]: Starting LSB: Apache2 web server...
Feb 14 22:26:24 VER-BLR-LT1449 apache2[23177]: * Starting web server apache2
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: no listening sockets available, shutting down
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: AH00015: Unable to open logs
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: Action 'start' failed.
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: The Apache error log may have more information.
Feb 14 22:26:25 VER-BLR-LT1449 apache2[23177]: *
Feb 14 22:26:25 VER-BLR-LT1449 systemd[1]: Started LSB: Apache2 web server.

Offline

#5 2016-02-14 18:03:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: [SOLVED] Apache server - not working

mak705,

Welcome to Arch Linux.  Unfortunately, we have no idea how Ubuntu is configured.  You will need to take your questions to the Ubuntu forums.  Thanks.

As this thread is solved, I am going to go ahead and close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB