Today, I've got my new Raspberry Pi setup - almost.
I installed the standard Raspbian Wheezy (Debian), that all went fine.
I then followed these instructions to install Apache webserver. I chose Apache because these were the instructions I found when googling "raspberry pi webserver"
Also, I've heard of Apache.
http://www.wikihow.com/Make-a-Raspberry-Pi-Web-ServerIt all went well, except at the end these bits didn't work. Sureley there's a mistake - if Im commenting out the user pi from /etc/passwd, how can I then "add the user as a mod"? It gave me an error indicating the user "pi" didn't exist, which of course it didn't, as the previous step instructed me to put a # in front of that users entry.
Edit the password configuration file:
sudo nano /etc/passwd
Find the line pi:x;1000:1000:Raspberry Pi User,,,:home/pi:/bin/bash and add a # sign to the beginning of it. Now save and exit the file.
Add the user pi as a mod.
sudo usermod -d /var/www pi
Now exit your SSH session, and log back in as pi, then grant mod rights to root.
sudo usermod -L root
That aside, it all seemed to work ok, and I got the test index.html when I accessed the raspberry pi's ip address from another computer web browser. Hurrah!
Next step - try to port over (hopefully, just copy over) my GardenCam web site from the Windows XP IIS server it's currently on. I ftp'd all the files over to /var/www, adjusted the permissions to match the example index.html file permissions, and tried the site out again on a web browser.
Big fail.
Front page loads ok, but main page only shows webcam image and minimal text.
The menus and borders on my little site are generated by server side includes. This works out of the box in Microsoft's IIS
So, Googling apache server side includes leads me to this page :
http://httpd.apache.org/docs/current/howto/ssi.html telling me how to enable SSI.
This is where I start getting really lost.
I find that I don't have/can't find an httpd.conf file, but more Googling reveals I should instead edit /etc/apache2/apache2.conf which I do.
I've added
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
XBitHack on
at the end of apache2.conf then restarted the apache service.
I then changed the file permission of all my .shtml files to a+x which I understand is a way of telling Apache to check those files for SSI scripting.
Result?
Nothing has changed - no sign of the server side includes working on my Rsapberry pi server
Particularly with the last bit, but, well, overall really - any idea what I did wrong?
Perhaps worringly, I also found this :
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=11567&p=191855Which is the problem I'm seeing, but no answer.
Ian (confused)