Setting up FTP Server for WordPress in Centos.
STEP-1
Install Software Dependencies:
[mp@web-srv1 ~]$sudo yum install vsftpd ftp -y
[mp@web-srv1 ~]$yum install gcc php-devel php-pear libssh2 libssh2-devel make –y
STEP-2
FTP Server Setup:
#Make changes in /etc/vsftpd/vsftpd.conf and Uncomment following Lines
anonymous_enable=NO
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
[mp@web-srv1 ~]$sudo /etc/init.d/vsftpd start
[mp@web-srv1 ~]$chkconfig vsftpd on
STEP-3
User Add & Folder Permission settings:
#FTP user for security reasons
[mp@web-srv1 ~]$sudo useradd wp-user
#Change login shell to protect login on server
[mp@web-srv1 ~]$sudo usermod -s /sbin/nologin wp-user
WordPress folder Permission Setting:
[mp@web-srv1 ~]$sudo chmod -R 775 /var/www/html/wordpress /wp-content/
[mp@web-srv1 ~]$sudo chown -R apache.wp-user /var/www/html/wordpress
STEP-4
WordPress config file setting:
#Wordpress web-config.php file Setting, add following Lines into file
if(is_admin()) { add_filter('filesystem_method', create_function('$a', 'return "direct";' )); define( 'FS_CHMOD_DIR', 0751 ); } define('FS_METHOD', 'ftpext'); define('FTP_BASE', '/var/www/html/wordpress/'); define('FTP_CONTENT_DIR', '/var/www/html/wordpress/wp-content/'); define('FTP_PLUGIN_DIR ', '/var/www/html/wordpress/wp-content/plugins/'); define('FTP_USER', 'wp-user'); define('FTP_PASS', ''); define('FTP_HOST', 'ftp.yoursite.com');
STEP-6
IPTABLE Setting:
[mp@web-srv1 ~]$sudo iptables –N FTP
[mp@web-srv1 ~]$sudo iptables 5 –j FTP
[mp@web-srv1 ~]$sudo –I FTP –p tcp –dport 21 –j ACCEPT
[mp@web-srv1 ~]$sudo /etc/init.d/iptables save
[mp@web-srv1 ~]$sudo chkconfig iptables on
🙂
Different remedies existing from the Web to why to waste season and visit dispensary if you can easily purchase medications sit at home. There are numerous of legal online drugstores that will deliver remedies to your home. If you are considering Cialis, you probably want to study more about Cialis. (See also Amoxicillin Over the Counter). This website provides you with some useful information on the benefits of remedies and how they are evaluated for security. Generally, both men and women are afflicted by sexual disorders. Often, when people think about Cialis, they mean Generic Amoxil Amoxicillin. The very momentous matter you must look for is Cialis. (Read more Other Forms of Metronidazole). Finally, such kind of difficulties can be an early warning symptom of serious health problems, such as soul disease. Finally ordering remedies online can save money, but keep these tips in mind.
Leave a Reply
You must be logged in to post a comment.