Posts

Showing posts from October, 2020

How to Setup SFTP Server in CentOS 7

Image
  In this post we will see, how to install Secure FTP Server in CentOS 7 distribution: Image Source - ipswitch.com Step 1: Install FTP Package (Package Name is vsftpd) yum install vsftpd ftp -y The location of ftp folder is /var/ftp/pub Step 2: After installation of vsftpd open the configuration file of vsftpd and make some change given below - vim /etc/vsftpd/vsftpd.conf Edit some line Disable anonymous_enable=YES to NO Un-comment the line  ascii_upload_enable=YES ascii_download_enable=YES If you want, you can add the welcome message to un-comment ftpd_banner=Welcome to blah FTP service And, add a line at the bottom of the file # use_localtime=YES Save and Exit the file Step 3: Enable VSFTP on boot mode and Start the service Allow the ftp port on firewall firewall-cmd —permanent - -add-port=21/tcp firewall-cmd —permanent - -add-service=ftp firewall-cmd - -reload Disable SELinux boolean for FTP Service setsebool -P ftp_home_dir on Finally, Enable the VSFTPD service and boot mode and st

WordPress Themes and Plugins Installation Problem

Image
WordPress plugins and themes installation problem Step 1 – Add the following line at the end of wp-config.php file define( 'FS_METHOD' , 'direct' ); Step 2 – Give 777 recursive permission to wp-content folder chmod -R 777 wp-content Most probably, this will fix all the issues of yours. But in case, you have bought and theme and plugins from some website like themeforest of other site and your theme or size is more than the size mentioned in php.in file. Then you need to increase the size of followings – upload_max_size post_max_size max_execution_size etc. and restart the apache service OR Best Solution: Simply give www-data user to user and group onwership to website serving directory