{"id":6591,"date":"2014-04-20T13:43:19","date_gmt":"2014-04-20T13:43:19","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/ubuntu-12-04-php-pear-package-problem-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:43:19","modified_gmt":"2014-04-20T13:43:19","slug":"ubuntu-12-04-php-pear-package-problem-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/ubuntu-12-04-php-pear-package-problem-collection-of-common-programming-errors\/","title":{"rendered":"Ubuntu 12.04 php PEAR package problem-Collection of common programming errors"},"content":{"rendered":"<p>Permissions on directory <code>\/var\/www\/Prestashop\/config<\/code> are wrong. They are <code>drwx------<\/code> meaning that ONLY the <code>newuser<\/code> user can access them. The webserver is run as <code>www-data<\/code> and obviously it can&#8217;t access your config directory.<\/p>\n<p>There&#8217;s absolutely no harm at adding read permissions to both group and all.<\/p>\n<pre><code>chmod +rx \/var\/www\/Prestashop\/config\n<\/code><\/pre>\n<p>It might be considered a security issue adding write permission to the directory, but also this is disputable since <code>\/tmp\/<\/code> is always accessible and malicious software tends to use that as a support directory.<\/p>\n<p>Of course don&#8217;t give write access to the files themselves as <strong>that<\/strong> would be a security issue.<\/p>\n<p>If you really don&#8217;t want to make it readable to the world you can change the owner to <code>www-data<\/code><\/p>\n<pre><code>sudo chown www-data \/var\/www\/Prestashop\/config\n<\/code><\/pre>\n<p>that should be enough since files inside the directory are world readable (except for the <code>xml<\/code> folder that again needs the right ownership or permissions).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Permissions on directory \/var\/www\/Prestashop\/config are wrong. They are drwx&#8212;&#8212; meaning that ONLY the newuser user can access them. The webserver is run as www-data and obviously it can&#8217;t access your config directory. There&#8217;s absolutely no harm at adding read permissions to both group and all. chmod +rx \/var\/www\/Prestashop\/config It might be considered a security issue [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6591","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6591"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6591\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}