404 File Not Found ? - Brand New Install on Raspberry Pi

1,129 views
Skip to first unread message

michael.d...@gmail.com

unread,
Jun 14, 2013, 3:36:33 PM6/14/13
to weewx...@googlegroups.com

Hi All,

I recently upgraded a Rasbperry Pi running the latest rev of Weewx, 2.3.1, via the .deb install and it is in simulator mode.  It appears as though everything is running correctly, however when I open up my browser I receive a 404 File Not Found error.  Apache is installed locally on the Raspberry Pi as is Weewx and I can get to the Apache test page successfully.

From the CLI of the Pi I can see the files being updated in the /var/www/weeex directory, so I know the files are there.

When I do an ls -l, I see the permissions on the index.html file is set to -rw-r--r-- 1 root root 12950 Jun 14 15:30 index.html

I have also pasted in the output from the debug log below.

pi@pi /var/www/weewx $ sudo tail -f /var/log/syslog

Jun 14 15:20:15 pi weewx[10004]: Archive: added archive record 2013-06-14 15:20:00 EDT (1371237600)
Jun 14 15:20:16 pi weewx[10004]: filegenerator: generated 1 'SummaryByMonth' files in 0.38 seconds
Jun 14 15:20:18 pi weewx[10004]: filegenerator: generated 1 'SummaryByYear' files in 1.97 seconds
Jun 14 15:20:21 pi weewx[10004]: filegenerator: generated 12 'toDate' files in 2.37 seconds
Jun 14 15:20:23 pi weewx[10004]: genimages: Generated 11 images in 2.76 seconds
Jun 14 15:25:15 pi weewx[10004]: Archive: added archive record 2013-06-14 15:25:00 EDT (1371237900)
Jun 14 15:25:16 pi weewx[10004]: filegenerator: generated 1 'SummaryByMonth' files in 0.39 seconds
Jun 14 15:25:18 pi weewx[10004]: filegenerator: generated 1 'SummaryByYear' files in 1.99 seconds
Jun 14 15:25:21 pi weewx[10004]: filegenerator: generated 12 'toDate' files in 2.58 seconds
Jun 14 15:25:24 pi weewx[10004]: genimages: Generated 11 images in 2.60 seconds
Jun 14 15:30:15 pi weewx[10004]: Archive: added archive record 2013-06-14 15:30:00 EDT (1371238200)
Jun 14 15:30:16 pi weewx[10004]: filegenerator: generated 1 'SummaryByMonth' files in 0.38 seconds
Jun 14 15:30:18 pi weewx[10004]: filegenerator: generated 1 'SummaryByYear' files in 1.98 seconds
Jun 14 15:30:21 pi weewx[10004]: filegenerator: generated 12 'toDate' files in 2.74 seconds
Jun 14 15:30:24 pi weewx[10004]: genimages: Generated 11 images in 2.58 seconds 

Any thoughts as to why no files load in the browser?  Do I not have my permissions set correctly?  If so, what steps do I need to do to correct?

Thank you!

Mike

George D. Nincehelser

unread,
Jun 14, 2013, 6:59:37 PM6/14/13
to weewx...@googlegroups.com
Have you verified the root of the Apache server is where you think it is?  Try modifying index.html in /var/www to be sure.

michael.d...@gmail.com

unread,
Jun 14, 2013, 8:13:15 PM6/14/13
to weewx...@googlegroups.com
Hi George,

Thanks for the reply.

I just checked and I was able to edit the Apache test page located at /var/www/index.html.  It still loads correctly with my edits.

However, when I go to /var/www/weewx/index.html (or any of the other .html pages in the weewx directory), I get the '404' Error The requested URL /var/www/weewx/index.html was not found on this server.

Any thoughts?

Thanks again,

Mike

michael.d...@gmail.com

unread,
Jun 14, 2013, 8:34:59 PM6/14/13
to weewx...@googlegroups.com
I got it sorted out.

I had to edit the /apache/conf.d/weewx.conf file to reflect the proper directory in /var/www/weewx/. I then copied it over to /etc/apache2/conf.d. I then restarted Apache. That did the trick.

Thanks again!

Mike
Reply all
Reply to author
Forward
0 new messages