{"id":3597,"date":"2019-02-08T12:21:15","date_gmt":"2019-02-08T06:51:15","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=3597"},"modified":"2019-02-08T12:21:19","modified_gmt":"2019-02-08T06:51:19","slug":"allow-ftp-access-to-developers-for-wordpress-sites-2","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/allow-ftp-access-to-developers-for-wordpress-sites-2\/","title":{"rendered":"Allow FTP access to developers for wordpress sites"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Allow FTP access to developers for wordpress sites<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Date posted : 07\/02\/2019<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this blog article, we will be explaining FTP related access to wordpress sites. Generally developers used to face issues with FTP uploads or wordpress plugins installs via wp-admin.<br><br>It happens due <strong>to incorrect user\/group file permissions<\/strong> given to wordpress files. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To accomplish this, we need to do the following:-<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Create a new user and strong password <\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ useradd devs\n\n$ sudo passwd devs\nenter password for user devs\nNew password:<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. Modify user folder to point to wordpress document root<br><\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ usermod -d \/var\/www\/pheonixsolutions.com devs<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. Add user to the apache group<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">First you should check the username of your webserver application. Mostly it will be <strong>apache or www-data<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ usermod -g apache devs<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4. Change ownership<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ cd \/var\/www\/pheonixsolutions.com\n$ chow devs:apache \/var\/www\/pheonixsolutions.com -R<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5. Make files writable by user\/group<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ find . -type f -exec chmod 664 {} \\;\n$ find . -type d -exec chmod 775 {} \\;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should be able to upload files without issues. Also you can install\/delete\/update new plugins via wp-admin flawlessly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using <a href=\"https:\/\/pheonixsolutions.com\">pheonix solutions<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You find this tutorial helpful? Share with your friends to keep it alive. Be the first to comment, we value your suggestions. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For further queries please comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allow FTP access to developers for wordpress sites Date posted : 07\/02\/2019 In this blog article, we will be explaining [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_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},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[185,167],"class_list":["post-3597","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-ftp-2","tag-wordpress-2","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-W1","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3597"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3597\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}