Linux FTP ProFtpd server configuration: setup timeouts

First step before making any changes to configuration files is to create backup: # cp -fvp /etc/proftpd.conf /etc/proftpd.conf-2013-03-08.bak Second step is to check service configuration to make sure it is correct. # proftpd -td10 Checking syntax of configuration file … Syntax check complete. Edit configuration file /etc/proftpd.conf: add timout directives inside <Global> </Global> section. TimeoutNoTransfer … Continue reading Linux FTP ProFtpd server configuration: setup timeouts

Linux: enable or disable PHP APC opcode cache for virtual host

1. To install PHP APC module run commands: # yum install php-devel php-pear pcre-devel # pecl install apc 2. Example configuration file for APC # more /etc/php.d/apc.ini extension=apc.so apc.enabled=”1″ ; [ disable APC opcode cache by default apc.cache_by_default=0 ; ] apc.shm_segments=”1″ apc.num_files_hint=”1024″ apc.ttl=”7200″ apc.user_ttl=”7200″ apc.gc_ttl=”3600″ apc.cache_by_default=”1″ ;apc.filters=”” apc.slam_defense=”0″ apc.file_update_protection=”2″ apc.enable_cli=”0″ apc.max_file_size=”1M” apc.stat=”1″ apc.write_lock=”1″ apc.report_autofilter=”0″ apc.include_once_override=”0″ … Continue reading Linux: enable or disable PHP APC opcode cache for virtual host

Backup WordPress website procedure for Linux

To backup your WordPress website on Linux you can follow these steps: 1. Log in via ssh to your server. 2. Change directory where your website files are located. For example: $ cd /home/shkodenko/public_html 3. Find out MySQL connection settings using command: $ grep -ni "DB" ./wp-config.php You will need these lines below. 19:define(‘DB_NAME’, ‘db_name’); … Continue reading Backup WordPress website procedure for Linux

Linux FTP ProFtpd server configuration: enable display hidden files

I have been working with some Linux servers with Plesk control panel. By default ProFtpd FTP server is configured to not display hidden files. To fix this edit ProFtpd main configuration file /etc/proftpd.conf add line below: ListOptions “-a” inside <Global> </Global> section. Check ProFtpd configuration using command: Checking syntax of configuration file Syntax check complete. … Continue reading Linux FTP ProFtpd server configuration: enable display hidden files

MySQL error: failed to connect to server on ‘xxx.yyy.zzz.aaa’ (113)

Sometimes using MySQL Workbench I am getting this kind of errors: Failed to Connect to MySQL at xxx.yyy.zzz.aaa:3306 with user db_user Can’t connect to MySQL server on ‘xxx.yyy.zzz.aaa’ (113) To fix it add configuration directive: skip_name_resolve = off to main MySQL configuration file /etc/my.cnf using your favorite text editor (mine is Vim). to section [mysqld] … Continue reading MySQL error: failed to connect to server on ‘xxx.yyy.zzz.aaa’ (113)