{"id":82,"date":"2011-08-29T10:55:19","date_gmt":"2011-08-29T10:55:19","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/08\/29\/php-ownershippermission-issues\/"},"modified":"2024-03-11T16:06:32","modified_gmt":"2024-03-11T20:06:32","slug":"php-ownershippermission-issues","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/","title":{"rendered":"PHP Ownership\/Permission Issues"},"content":{"rendered":"<h2>&#8220;Bad File Descriptor&#8221; Errors in FTP<\/h2>\n<p><em>Note that this applies to servers running mod_php only<\/em><\/p>\n<p>As <a href=\"https:\/\/www.inmotionhosting.com\/php-hosting\">PHP<\/a> applications are becoming more popular, we often come across issues where users are unable to access, edit, or remove their own files or folders. The reason for this is typically due to ownership and permission issues associated with the PHP user, &#8220;nobody.&#8221; When you install a PHP program such as phpNuke, phpBB, Gallery, Joomla, etc. on your website, these files are created by the PHP programs and are therefore owned by this virtual php user.<\/p>\n<h2>Just a basic rundown on permissions:<\/h2>\n<p>Every file and folder on your website has an owner, a group, and a set of permissions (read, write, and execute. Also, there are three categories of user type: the owner, the group, and the &#8220;world&#8221; (meaning; everyone else). So you can basically make a file writeable by the owner, but only readable by everyone else. By &#8220;owner&#8221; I am referring to the user who created the file. When dealing with PHP and everything else on your website you would consequently be dealing with two users: you (username) and the PHP user (&#8220;nobody&#8221;).<\/p>\n<p>This means that when a PHP program goes through the installation process, it is creating files owned by its user, &#8220;nobody.&#8221; When you access your site via FTP or File Manager, you are accessing the files are your user, which is the username that you used to log in (userna5 or such). So then when you go into FTP and try to edit files for the PHP program, you&#8217;ll find that you don&#8217;t have permission because you are not the owner; &#8220;nobody&#8221; is. On the other side, when you upload a file in FTP and try to call it from the PHP program, that php program may not be able to read or edit it as well because -you- are the owner.<\/p>\n<p>We most often see these problems with customers who use FrontPage or Dreamweaver, as they will try to edit PHP files and such in these programs and then try to upload them, then realize that they can&#8217;t. That&#8217;s because they will try to upload into one of the php directories, where the PHP user &#8220;nobody&#8221; will say, &#8220;Hey, that&#8217;s MY file and you can&#8217;t change it!&#8221; therefore giving you a lovely &#8220;Access Denied&#8221; message.<\/p>\n<p>Our solution to this is to edit your website as usual but use the provided administrative panel from your php software to make any changes to your php program. For instance, if you have Gallery2 installed in a subdirectory on your website, you should log into the admin panel of Gallery2 to upload or make changes, while using FTP, Frontpage, etc. to make changes to the rest of your site. If you find it absolutely necessary to be able to access your PHP files through FTP or vice-versa, you would need to contact us so that we can make the necessary ownership changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Bad File Descriptor&#8221; Errors in FTP Note that this applies to servers running mod_php only As PHP applications are becoming more popular, we often come across issues where users are unable to access, edit, or remove their own files or folders. The reason for this is typically due to ownership and permission issues associated with<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\"> Read More ><\/a><\/p>\n","protected":false},"author":56983,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4299,4288],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-security","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP Ownership\/Permission Issues | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"This article is intended to briefly explain PHP Ownership\/ Permission Issues\" \/>\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.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Ownership\/Permission Issues | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"This article is intended to briefly explain PHP Ownership\/ Permission Issues\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-29T10:55:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-11T20:06:32+00:00\" \/>\n<meta name=\"author\" content=\"Carrie Smaha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@carriesmaha\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carrie Smaha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\"},\"author\":{\"name\":\"Carrie Smaha\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\"},\"headline\":\"PHP Ownership\/Permission Issues\",\"datePublished\":\"2011-08-29T10:55:19+00:00\",\"dateModified\":\"2024-03-11T20:06:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\"},\"wordCount\":501,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Security\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\",\"name\":\"PHP Ownership\/Permission Issues | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2011-08-29T10:55:19+00:00\",\"dateModified\":\"2024-03-11T20:06:32+00:00\",\"description\":\"This article is intended to briefly explain PHP Ownership\/ Permission Issues\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Ownership\/Permission Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\",\"name\":\"Carrie Smaha\",\"description\":\"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/carriesmaha\/\",\"https:\/\/x.com\/carriesmaha\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Ownership\/Permission Issues | InMotion Hosting","description":"This article is intended to briefly explain PHP Ownership\/ Permission Issues","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.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/","og_locale":"en_US","og_type":"article","og_title":"PHP Ownership\/Permission Issues | InMotion Hosting","og_description":"This article is intended to briefly explain PHP Ownership\/ Permission Issues","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-08-29T10:55:19+00:00","article_modified_time":"2024-03-11T20:06:32+00:00","author":"Carrie Smaha","twitter_card":"summary_large_image","twitter_creator":"@carriesmaha","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Carrie Smaha","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/"},"author":{"name":"Carrie Smaha","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8"},"headline":"PHP Ownership\/Permission Issues","datePublished":"2011-08-29T10:55:19+00:00","dateModified":"2024-03-11T20:06:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/"},"wordCount":501,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Security","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/","name":"PHP Ownership\/Permission Issues | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2011-08-29T10:55:19+00:00","dateModified":"2024-03-11T20:06:32+00:00","description":"This article is intended to briefly explain PHP Ownership\/ Permission Issues","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/php-ownershippermission-issues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"PHP Ownership\/Permission Issues"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8","name":"Carrie Smaha","description":"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.","sameAs":["https:\/\/www.linkedin.com\/in\/carriesmaha\/","https:\/\/x.com\/carriesmaha"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/56983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":108988,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/82\/revisions\/108988"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}