Greetings all.
Some will have seen my posting of my webserver setup for the Raspbian Wheezy OS with Apache2, MySQL and PHP.
You can find the link to the PDF file at (http://www.raspberrypi.org/phpBB3/viewt ... 30#p238830).
As I have now been running that server live on the Internet for pretty nearly a full month, I thought that people might be interested in a brief report. The details of the setup are all in the PDF given in the original posting so I won't repeat them here, but here is the news:
1. Hits: between 29th November and 27th December, the server received well over 22,000 hits to the main virtual host. These are user hits, not maintenance or other retrievals. They were from more than 65 countries worldwide, and consequently came in at all times of day and night.
2. Data: Between the same period, well over 1.7GByte of data was transferred from the server. These data include lots of music files (MP3) of original recordings (not copies of commercial recordings), video files (MP4, WMV and MPG) and images, mainly to do with music (guitars and pipe organs).
3. Downtime: the server has been down early most Sunday mornings (GMT) each week for a couple of hours - for the reason for this, please read the "Issues" section below. As well as this there were more-or-less two days when it was not noticed that Apache had stopped - the stoppage was related to the Sunday morning stoppages mentioned earlier and explained below.
4. Security: reading the logs reveals several attempts each week to either bring the server down or to obtain illegal access. Some of these were from a hacker using the Morpheus tool on several different IP addresses. Each address has been blocked as soon as it has been identified. There have also been several other attempted access that appear suspicious: people looking for various scripts and so on. Whereas when I used a Belkin ADSL2+ router, SYN Flood attacks used to get through and crash my network, I find that my cable router is much more resilient at protecting my LAN from these types of attack.
Personally, I'd like to see more debate on the security of Raspbian Wheezy in general.
5. Performance: Since 1995, I have had several domains, including .COM, .CO.UK and .ORG.UK which are run on commercial servers. However, I have also run many other domains and sub-domains from servers in my office: these platforms have included Red Hat and Fedora Core Linux, SCO Unix, Windows NT Professional, Windows 2000 Advanced Server, and currently Windows Server 2003 R2 on hardware ranging from Pentium II, III, 4, and Core2Duo and Core2Quad, with RAM varying from 64Mbyte to 16Gbyte. It is interesting to note that it does seem that the Raspberry Pi compares quite well with the web server function of the other platforms, although it is (not unexpectedly) quite a bit slower to start delivery of a large video file. My current Internet connection is fast (Fibre-to-the-cabinet @ 40Mbps nominal, 35Mbps most of the time).
Generally the Raspberry Pi as a web server has been hugely successful, and when I complete my setting up of my third Raspberry Pi as a Domain Controller and File server, I shall switch off my Windows 2003 R2 Server, saving a lot on my annual electricity bill. But I do wish to mention a couple of
issues.
1. Segmentation Faults in Child Processes: I have noted from the error logs that there are on average, about 24 Segmentation Faults recorded each day (approximately one per hour). These are all Fault Code 11, but I am not familiar with their significance. They do not seem to damage the server as it remains functional.
Can anyone issue any advice?
2. Weekly Apache2 Shutdown: As mentioned in section 3 above, the server shuts itself down each Sunday at about 6:00am (GMT). The error log report states, in two separate lines-
Msg Line 1 Graceful Restart requested, doing restart.
Msg Line 2 Seg fault or similar nasty error detected in the parent process.
Apache2 fails to restart. However restarting it manually can be accomplished without a problem, although the following error is reported-
Msg Line 1 Warning PID file [address] overwritten -- unclean shutdown of previous Apache run?
Msg Line 2 Apache 2.2.22 (Debian) configured - resuming normal operations.
My suspicion is that this is something to do with the Log File Rotation?
Can anyone issue any advice?
I hope that those considering the embarkation of a similar project to my own will find the report helpful, and in turn would appreciate advice on the issues raised from anyone with a greater (or lesser!) expertise than myself.
Happy New Year to all,
Kenneth Spencer