We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

User avatar
criz28
Posts: 6
Joined: Sun Dec 17, 2017 7:43 pm

Failed to start the Apache HTTP server

Sun Dec 17, 2017 8:00 pm

Hi everyone,
I have downloaded the Rapsbian Weather Station image (sep-17), burned it to the SD card, then inserted into the weather station board and when I boot the Weather Station it prompts me that "Failed to start the Apache HTTO server".
I also tried to update & upgrade but failed too.
I'm here providing you the links for both screenshots to see if you can help me:

https://i.imgur.com/ZJp2bXD.jpg
https://i.imgur.com/HCi1OoH.jpg

How can I fix the Apache error?
Thanks a lot from Argentina.

Cristián

knute
Posts: 1064
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas

Re: Failed to start the Apache HTTP server

Sun Dec 17, 2017 10:15 pm

Try running sudo apachectl config-test and post the output here.

User avatar
criz28
Posts: 6
Joined: Sun Dec 17, 2017 7:43 pm

Re: Failed to start the Apache HTTP server

Sun Dec 17, 2017 10:40 pm

This is the result of running 'sudo apachectl config-test':

/usr/sbin/apachectl: 208: /usr/sbin/apachectl: /usr/sbin/apache2: Exec format error
Action 'config-test' failed
The Apache error log may have more information

User avatar
DougieLawson
Posts: 43580
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Failed to start the Apache HTTP server

Sun Dec 17, 2017 10:46 pm

Take a look in /var/log/apache2/error.log.

Try sudo apt install --reinstall apache2
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Bluesky or by LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
criz28
Posts: 6
Joined: Sun Dec 17, 2017 7:43 pm

Re: Failed to start the Apache HTTP server

Sun Dec 17, 2017 10:58 pm

Before re-installing Apache, the error.log contains the following:

https://i.imgur.com/oqc12gl.png

User avatar
criz28
Posts: 6
Joined: Sun Dec 17, 2017 7:43 pm

Re: Failed to start the Apache HTTP server

Sun Dec 17, 2017 11:16 pm

When I do 'sudo apt install -reinstall apache2' I get the following prompt:

E: Comand line option 'r' [from -reinstall is not understood in combination with the other options.

User avatar
rpdom
Posts: 25187
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Failed to start the Apache HTTP server

Mon Dec 18, 2017 10:30 am

criz28 wrote:
Sun Dec 17, 2017 11:16 pm
When I do 'sudo apt install -reinstall apache2' I get the following prompt:
You need to put two dashes in front of the reinstall option.

Code: Select all

--reinstall

not
-reinstall
In most commands, one dash/minus is used for single letter options, and two dashes/minus signs are used for long options.

User avatar
criz28
Posts: 6
Joined: Sun Dec 17, 2017 7:43 pm

Re: Failed to start the Apache HTTP server

Mon Dec 18, 2017 12:17 pm

Thanks Rpdom!!
I finally solved the problem using the Raspbian Stretch Desktop image and then installing the weather station software manually.
Everything worked fine (except that I had to manually install MySQL) and now I have my weather station up and running (well, not NOW but yesterday night).
Now I'm ready to continue experimenting and learning using all the lessons.
Thanks again.
Kind regards,

Cristián

User avatar
DougieLawson
Posts: 43580
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Failed to start the Apache HTTP server

Mon Dec 18, 2017 3:11 pm

You also need a new camera, because your one is crap.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Bluesky or by LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

willip5
Posts: 78
Joined: Wed May 29, 2013 11:55 am
Location: France

Re: Failed to start the Apache HTTP server

Thu Dec 21, 2017 8:30 pm

You also need a new camera, because your one is crap.
And I thought it was my eyes/Christmas spirit

Return to “Weather station”