Apache httpd

From IndieWeb


Apache HTTP Server Project is widely deployed open source web server software from the Apache Software Foundation. With Linux, MySQL and PHP it makes up the LAMP stack.

HTTP 406 Not Acceptable Error

In some cases, Apache returns HTTP 406 when fetched from a client that does not include */* in the Accept header. This is due to a common misconfiguration where PHP is enabled by using the AddType declaration instead of a proper solution.

This error surfaced when XRay was unable to fetch posts on adactio.com because XRay does not include */* in its Accept header. The fix was to remove the AddType declaration and include the below instead.

<Files "*.php">
    MultiviewsMatch Any
</Files>


Permissions

Summary (from serverfault thread):

  • Apache usually runs as the www-data, which will at the very least need read access to files
  • β€œApplication” files (e.g. *.php) don’t need execute permissions as they’re not directly executed by the web server, they only need read permissions
  • Your user should own the files
  • The www-data user should own the group, which should have read and execute (why execute?) permissions
  • Any files or folders which will be changed by apache need to have write (+w) permissions for the group owner
  • Run umask XXX to set the default permissions for newly created files. umask 007 sets permissions to read+write for owner and group, no permissions for others, which is a sensible default

wikipedia has a clear explanation of the unix permissions shorthand.

See Also

Open Source IndieWeb related projects and tools
Topics Why open source? β€’ How to open source a project β€’ Open for contributions β€’ IndieWeb Principles
PHP (See LAMP) b2evolution β€’ CASSIS β€’ Known β€’ Falcon (portions) β€’ p3k β€’ stapibas β€’ dobrado β€’ Grav β€’ Miniflux-legacy β€’ ProcessWire β€’ Reader Self β€’ Textpattern β€’ tt-rss β€’ Twyne β€’ TYPO3
WordPress (PHP) Indieweb Plugin β€’ Webmention β€’ Semantic Linkbacks β€’ Micropub β€’ IndieAuth β€’ Post Kinds β€’ Syndication Links β€’ WebSub plugins β€’ See Template:WordPress for others.
Python Bridgy Fed β€’ BeautifulSoup β€’ Bleach β€’ Bundle β€’ django CMS β€’ IndieWeb Search β€’ IndieWeb Utils β€’ kaku β€’ mf2util β€’ Nefelibata β€’ ninka β€’ Publ β€’ python-indieweb β€’ Red Wind β€’ Requests β€’ ronkyuu β€’ Woodwind β€’ gunicorn
Ruby Dark Matter β€’ Feedbin β€’ FrancisCMS β€’ Micropublish β€’ Publify β€’ Ruby on Rails β€’ Sinatra β€’ Singulus β€’ Transformative β€’ webmention.io β€’ Jekyll β€’ Authorio β€’ ruby parser β€’ microformats-ruby
JavaScript AerosolCMS β€’ CASSIS β€’ Ghost β€’ Camel β€’ IndieKit β€’ Eleventy
Others Hugo (Go) β€’ Firefox β€’ NetNewsWire