{"id":2933,"date":"2013-03-16T15:06:37","date_gmt":"2013-03-16T15:06:37","guid":{"rendered":"http:\/\/178.62.14.192\/?p=2933"},"modified":"2013-03-16T15:06:37","modified_gmt":"2013-03-16T15:06:37","slug":"installing-php-and-nginx-on-a-raspberrypi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=2933","title":{"rendered":"Installing PHP and nginx on a RaspberryPi"},"content":{"rendered":"<p style=\"text-align: left;\">Jose Carlos Andreu has written a great tutorial on how to use the lightweight web server nginx to run a PHP web server on the Raspberry Pi. Very well written.\u00a0<a href=\"http:\/\/en.joscandreu.com\/blog\/install-php-raspberrypi\/\">Read the tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jose Carlos Andreu has written a great tutorial on how to use the lightweight web server nginx to run a PHP web server on the Raspberry Pi. Very well written.\u00a0Read the tutorial<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[51],"tags":[],"class_list":["post-2933","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Jose Carlos Andreu has written a great tutorial on how to use the lightweight web server nginx to run a PHP web server on the Raspberry Pi. Very well written.\u00a0Read the tutorialRead more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-16T15:06:37+00:00\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Installing PHP and nginx on a RaspberryPi\",\"datePublished\":\"2013-03-16T15:06:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\"},\"wordCount\":40,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=2933#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\",\"name\":\"Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-03-16T15:06:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=2933\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2933#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing PHP and nginx on a RaspberryPi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=2933","og_locale":"en_US","og_type":"article","og_title":"Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod","og_description":"Jose Carlos Andreu has written a great tutorial on how to use the lightweight web server nginx to run a PHP web server on the Raspberry Pi. Very well written.\u00a0Read the tutorialRead more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=2933","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-03-16T15:06:37+00:00","author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Installing PHP and nginx on a RaspberryPi","datePublished":"2013-03-16T15:06:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933"},"wordCount":40,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=2933#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933","url":"https:\/\/www.recantha.co.uk\/blog\/?p=2933","name":"Installing PHP and nginx on a RaspberryPi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-03-16T15:06:37+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=2933"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2933#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Installing PHP and nginx on a RaspberryPi"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-Lj","jetpack-related-posts":[{"id":17560,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17560","url_meta":{"origin":2933,"position":0},"title":"Get started with the NGINX web server on your Raspberry Pi","author":"Michael Horne","date":"29 August 2017","format":false,"excerpt":"Gus, over at PiMyLifeUp, has written this great tutorial to get your started with the NGINX web server. He goes through all the commands you'll need to install it and everything you need to know to get the PHP language working with it correctly. Take a look here. For those\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=49"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/nginx-v1-small-web.jpg?fit=733%2C549&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/nginx-v1-small-web.jpg?fit=733%2C549&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/nginx-v1-small-web.jpg?fit=733%2C549&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/nginx-v1-small-web.jpg?fit=733%2C549&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":13081,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13081","url_meta":{"origin":2933,"position":1},"title":"Set up an nginx web server on the Raspberry Pi","author":"Michael Horne","date":"5 August 2015","format":false,"excerpt":"Most of the time when you're setting up a web server on the Pi, you'll end up using Apache. However, sometimes you want a lighter-weight solution. This is where nginx comes in.\u00a0Shane Pfaffly has written a tutorial on setting it up and creating a simple website using nginx. Read it\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=49"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wiki.nginx.org\/local\/nginx-logo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":6174,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6174","url_meta":{"origin":2933,"position":2},"title":"WordPress for #RaspberryPi using Nginx and MySQL","author":"Michael Horne","date":"28 September 2013","format":false,"excerpt":"I'm just setting up a new blog for the Cambridge Raspberry Jam. :-) I've managed to install Wordpress on a rev 1 256mb Raspberry Pi using Nginx as the web server and MySQL as the back end. This was accomplished by following the tutorial on CNXSoft:\u00a0Wordpress for Raspberry Pi using\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=49"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12172,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=12172","url_meta":{"origin":2933,"position":3},"title":"Install WordPress and NGINX on Raspberry Pi","author":"Michael Horne","date":"9 March 2015","format":false,"excerpt":"Russ Sanderlin has written a comprehensive tutorial for getting a PHP\/NGINX\u00a0stack working with Wordpress on the Pi. Read it here. Apparently NGINX works better than Apache, particularly under high loads (although I've never had a problem with Apache) and is more lightweight.","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=49"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rsanderlin.com\/wp-content\/uploads\/2015\/03\/ras_pi-825x420.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rsanderlin.com\/wp-content\/uploads\/2015\/03\/ras_pi-825x420.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/rsanderlin.com\/wp-content\/uploads\/2015\/03\/ras_pi-825x420.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rsanderlin.com\/wp-content\/uploads\/2015\/03\/ras_pi-825x420.png?resize=700%2C400 2x"},"classes":[]},{"id":1642,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1642","url_meta":{"origin":2933,"position":4},"title":"Live Webcam running on a #RaspberryPi \/ @Raspberry_Pi","author":"Michael Horne","date":"31 January 2013","format":false,"excerpt":"I wanted, as part of a new project, to be able to stream live video from my Pi to the internet. I followed some tutorials. First of all, I wanted to get my Webcam (a little XBox Live Cam) working. So, I followed Calin Crisan's PiEye post on his blog.\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9872,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=9872","url_meta":{"origin":2933,"position":5},"title":"Simple PHP-driven #RaspberryPi photo gallery","author":"Michael Horne","date":"30 May 2014","format":false,"excerpt":"Matt Hawkins has written a tutorial based on Kenny Svalgaard's Single File PHP Gallery script. You run a web server and PHP and then put the script into a folder containing your images. All you have to do is have your Pi Camera output images to that folder and Bob's\u2026","rel":"","context":"In &quot;Camera module&quot;","block_context":{"text":"Camera module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=8"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.raspberrypi-spy.co.uk\/wp-content\/uploads\/2014\/05\/photo_gallery_script_04.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.raspberrypi-spy.co.uk\/wp-content\/uploads\/2014\/05\/photo_gallery_script_04.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.raspberrypi-spy.co.uk\/wp-content\/uploads\/2014\/05\/photo_gallery_script_04.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.raspberrypi-spy.co.uk\/wp-content\/uploads\/2014\/05\/photo_gallery_script_04.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2933"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2933\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}