{"id":3226,"date":"2014-01-27T18:00:22","date_gmt":"2014-01-27T18:00:22","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=3226"},"modified":"2014-01-27T18:01:11","modified_gmt":"2014-01-27T18:01:11","slug":"wordpress-cannot-create-directory-error-got-everything-chmoded-to-777","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/wordpress-cannot-create-directory-error-got-everything-chmoded-to-777\/","title":{"rendered":"WordPress: Cannot create directory error, got everything chmoded to 777?"},"content":{"rendered":"<p>So you went as far as chmod&#8217;ing your entire folder structure to 777 (very unsafe), you&#8217;ve hacked wp\/wp-admin\/includes\/file.php<\/p>\n<p><code>return new WP_Error( 'mkdir_failed_ziparchive', __( get_current_user() . ' Could not create directory. ('.$_dir.')' )...<\/code><\/p>\n<p>to print out exactly what directory it cannot create and what user is trying to create the folder, <strong>everything is correct, yet it won&#8217;t create the fucking folder?<\/strong><\/p>\n<h2>the issue might be your vsftpd configuration!<\/h2>\n<p>Go to \/etc\/vsftpd.con and make sure that you have this setting uncommented:<\/p>\n<p>write_enable=YES<\/p>\n<p>restart your vsftpd (sudo service vsftpd restart) and try upgrading again, you&#8217;ll want to hit that &#8216;Donate Bitcoin&#8217; button if I saved your ass today.<\/p>\n<p>Cheers<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you went as far as chmod&#8217;ing your entire folder structure to 777 (very unsafe), you&#8217;ve hacked wp\/wp-admin\/includes\/file.php return new WP_Error( &#8216;mkdir_failed_ziparchive&#8217;, __( get_current_user() . &#8216; Could not create directory. (&#8216;.$_dir.&#8217;)&#8217; )&#8230; to print out exactly what directory it cannot create and what user is trying to create the folder, everything is correct, yet it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[30,1],"tags":[1437,959,1000,1369,1117],"class_list":["post-3226","post","type-post","status-publish","format-standard","hentry","category-geeklife","category-uncategorized","tag-code","tag-sysadmin","tag-tips","tag-troubleshooting","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-Q2","jetpack-related-posts":[{"id":2219,"url":"https:\/\/www.gubatron.com\/blog\/your-profile-can-not-be-used-because-it-is-from-a-newer-version-of-google-chrome\/","url_meta":{"origin":3226,"position":0},"title":"Your profile can not be used because it is from a newer version of Google Chrome","author":"gubatron","date":"May 22, 2011","format":false,"excerpt":"Getting this error every time you start Chrome? Fix for MacOSX Remove the \"Web Data\" file inside your Home's Library\/Application Support\/Google\/Chrome\/Default folder \"~\/Library\/Application Support\/Google\/Chrome\/Default\/Web Data\" Then restart Chrome and the error message should be gone. Fix for Windows Remove the \"Web Data\" file inside the following folder %APPDATA%LocalGoogleChromeUser DataDefault Then\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1015,"url":"https:\/\/www.gubatron.com\/blog\/python-script-to-update-wordpress-in-one-step\/","url_meta":{"origin":3226,"position":1},"title":"Python Script to Update WordPress in One Step","author":"gubatron","date":"November 26, 2008","format":false,"excerpt":"During the past week, I think I had to update all my wordpress instances twice, and it's become really annoying doing this manually. I've written a python script which I'll share with you. How I keep my wordpress updated by hand I tend to keep my wp-content folder outside of\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":584,"url":"https:\/\/www.gubatron.com\/blog\/svn-gotchas-importing-a-folder-in-one-step\/","url_meta":{"origin":3226,"position":2},"title":"svn gotchas: Importing a Folder in one step","author":"gubatron","date":"September 6, 2007","format":false,"excerpt":"Up until this day when my friend Gabe told me how, I didn't know how to import a folder, without doing this first: svn mkdir svn+ssh:\/\/server.com\/path\/to\/repo\/myfolder svn import myFolder svn+ssh:\/\/server.com\/path\/to\/repo\/myfolder If I didn't do that, If I just imported the local \"myFolder\", it would end up adding all the files\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":572,"url":"https:\/\/www.gubatron.com\/blog\/list-dir-by-gubatron-list-your-directories-on-a-text-file-with-a-right-click\/","url_meta":{"origin":3226,"position":3},"title":"List Dir by Gubatron &#8211; List your directories on a text file with a right click","author":"gubatron","date":"August 12, 2007","format":false,"excerpt":"Last week my wife told me if I knew an easy way (without using the cmd.exe) on Windows to list the contents of a directory, she basically wanted to give her users a one click solution to list the contents of a folder and have them on notepad. So, I\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2749,"url":"https:\/\/www.gubatron.com\/blog\/deploying-html5-apps-on-cloudfront-with-efficient-invalidation-requests\/","url_meta":{"origin":3226,"position":4},"title":"Deploying HTML5 apps on CloudFront with efficient invalidation requests","author":"gubatron","date":"June 8, 2012","format":false,"excerpt":"So you decided to build your next web app\/site using nothing but HTML5 and Javascript. No server side processing for anything related to UI. This means you will be coding a lot of JavaScript. Wouldn't it be nice to put all that static HTML and JS on your CloudFront CDN\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2202,"url":"https:\/\/www.gubatron.com\/blog\/have-the-latest-haproxy-as-a-ubuntu-service\/","url_meta":{"origin":3226,"position":5},"title":"Have the latest HAProxy as a Ubuntu Service","author":"gubatron","date":"April 6, 2011","format":false,"excerpt":"So you need to use HAProxy and you love the convenience of binary packages on repos, but when you install the version HAProxy available in the repos you realize that it is way too old for what you need. Then you download the latest HAProxy, compile it, configure it, but\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=3226"}],"version-history":[{"count":0,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3226\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=3226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=3226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=3226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}