Server-side includes? Are you a time-traveller from 1995?
Suggest you try to get a more modern solution working - php, python, something like that. There's a slightly (only ever so slightly) steeper learning curve (tonnes of tutorials out there though) but you'll end up with much more useful skills to have in the long run. Just a thought.
Anyway. Enabling mod_include, like any other module, is done by symlinking it into /etc/apache2/mods-enabled, as described on this page:
http://www.debuntu.org/2006/06/15/66...based-system/2
Easy!
The probable reason you can't write to /var/www when logging in with SFTP is because you're not a member of the www-data group. Add your username to the www-data line in /etc/group (you'll need to edit that file as root - there is some other way to add yourself to a group but I always just edit /etc/group myself). This is from memory, so may not entirely be right. You can check:
If you do "ls -al /var/", which group owns the "www" directory?
Add your user to that group, and you should be sorted.
"XBitHack on" in your apache config should do the trick. There's more on that here:
http://httpd.apache.org/docs/2.0/mod....html#xbithack
Although as for running from /var/www being the "right" way to do it - not one of my many websites has ever run from there. It's the default setting, that doesn't mean it's the "correct" one. Much "better"- imo - to put each site under it's own uid and run it from it's own home directory (usually, I do /home/user/sites/site/ and /home/user/sites/logs/ and so on) - that way you have plenty of control, and can add more sites easily. But who's to say what's "right" and "wrong" there's only - "works best for me"
Bookmarks