{"id":519,"date":"2014-08-07T21:56:59","date_gmt":"2014-08-07T21:56:59","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=519"},"modified":"2014-08-07T21:56:59","modified_gmt":"2014-08-07T21:56:59","slug":"519","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/07\/519\/","title":{"rendered":"PHP Session write error"},"content":{"rendered":"<p>php Sessions write error suddenly on website<\/p>\n<p><a href=\"http:\/\/kb.parallels.com\/en\/115704\" target=\"_blank\" rel=\"noopener\">http:\/\/kb.parallels.com\/en\/115704<\/a><\/p>\n<p>Step 1<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n cd \/var\/lib\/php\/\n&#x5B;root@austin php]# ls -la\ntotal 12\ndrwxr-xr-x  3 root root 4096 Apr  9 19:54 .\ndrwxr-xr-x 37 root root 4096 Apr 24 23:41 ..\ndrwx-wx-wt  2 apache apache 4096 Aug  5 20:01 session\n\n<\/pre>\n<p>Change the permissions and ownership<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nchmod 1733 \/var\/lib\/php\/session\nchown root:root \/var\/lib\/php\/session\n\n<\/pre>\n<p>Step 2<\/p>\n<p>Check the yum update log for php updates as this is usually the cause of the permissions change.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&#x5B;root@austin log]# grep php \/var\/log\/yum.log\nApr 09 19:54:09 Installed: php-5.3.3-27.el6_5.x86_64\n<\/pre>\n<p>This will give you the date and time of the last php update!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php Sessions write error suddenly on website http:\/\/kb.parallels.com\/en\/115704 Step 1 cd \/var\/lib\/php\/ &#x5B;root@austin php]# ls -la total 12 drwxr-xr-x 3 root root 4096 Apr 9 19:54 . drwxr-xr-x 37 root root 4096 Apr 24 23:41 .. drwx-wx-wt 2 apache apache 4096 Aug 5 20:01 session Change the permissions and ownership chmod 1733 \/var\/lib\/php\/session chown root:root &#8230; <a title=\"PHP Session write error\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/07\/519\/\" aria-label=\"Read more about PHP Session write error\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,84,86,104],"tags":[],"class_list":["post-519","post","type-post","status-publish","format-standard","hentry","category-administration","category-php","category-plesk","category-sessions"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=519"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/519\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}