Posts

Showing posts from September, 2019

Host empty when creating a new DB after installing percona

/usr/local/vesta/conf/vesta.conf DB_SYSTEM='mysql' add it /usr/local/vesta/conf/mysql.conf HOST='localhost' USER='root' PASSWORD='rootpassword' CHARSETS='UTF8,LATIN1,WIN1250,WIN1251,WIN1252,WIN1256,WIN1258,KOI8' MAX_DB='500' U_SYS_USERS='admin' U_DB_BASES='2' SUSPENDED='no' TIME='08:15:31' DATE='2015-12-08' add it change root password as per your password

wordpress address (url) greyed out

define( ‘WP_HOME’, ‘https://somedomain.com’ ); define( ‘WP_SITEURL’, ‘https://somedomain.com’ ); just update URL from wpconfig.php

FTP Stuck at Retrieving Directory Listing

Allow in firewall iptables -I INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 49152:65534 -j ACCEPT or  21,12000-12100 49152-65534 iptables -I INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 12000:12100 -j ACCEPT iptables -A INPUT -p tcp -s 182.57.0.0/16 -j ACCEPT iptables -A OUTPUT -p tcp -d 182.57.0.0/16 -j ACCEPT Do passive mode from site manager in filezilla. worked also on active and plain insecure password on port 21

To get all the email ID contains for a domain

Below script is to find email accounts for all domains --> to find for one domain fire command like this ---> sh email.sh | grep domain.com #vi email.sh #!/bin/sh for d in `cat /etc/virtual/domains`; do {        #system account        S=`grep "^${d}:" /etc/virtual/domainowners | cut -d: -f2 | awk '{print $1;}'`        if [ "${S}" != "" ]; then                echo "${S}@${d}";        fi        if [ ! -s /etc/virtual/$d/passwd ]; then                continue;        fi        for e in `cat /etc/virtual/$d/passwd | cut -d: -f1`; do        {                echo "${e}@${d}";        };        done; }; done; exit 0; execute the above script with  sh email.sh | grep domain

exim limit email for both php mail() script and smtpd mail per hour

you can send mail from both smtp and mail( )  script so we need to set limit for the smtp and mail () acl_not_smtp  is for the case when hosting PHP scripts is sending an email via mail() function, so it will works fine with  $authenticated_id  - you will get 'username' of the site that is sending an email - and you can limit 'per user' that is hosting a site(s). Not sure why your Roundcube is running as 'www-data' - do you access Roundcube via  http://server-hostname/webmail/  and does 'server-hostname' is created under 'admin' account on Vesta? You are using Apache2+nginx combination? Anyway. I'll try (in next 2-3 days) to figure out how to force Roundcube to send emails via SMTP (it didn't work tonight when I tried to do that, it still used mail() function even I entered SMTP host in Roundcube config file). Next, we need to see what is an ACL section for authorized SMTP user - it's probably  acl_check_rcpt  that Sku

RoundCube webmail is not accessible

if saying config.inc not found just rename /etc/roundcubemail/ config.inc.php.sample to config.inc.php do if db error create a user with roundcube and set password as pass and give all rights db connection file is config.inc.php $config['db_dsnw']='mysql://roundcube:pass' roundcube is the username and pass is the password then insert this query on roundcubemail database https://github.com/roundcube/roundcubemail/blob/master/SQL/mysql.initial.sql

New server Provisioning

1.Hostname 2.swap 3. Timezone

screen command in linux

1. Installing Linux Screen Command The screen comes preinstalled on some of the popular distributions. You can check if it is installed on your server using the following command screen -v Screen Command Example in Linux If you do not have a screen to the VPS, you can easily install it using the package manager provided by the OS.  2. Install Linux Screen Command – CentOS/RedHat/Fedora yum -y install screen Ubuntu/Debian apt-get -y install screen 3. How to start a Linux Screen Command session You can start screen by typing ‘screen’ at the command prompt and a new screen session will be started which looks the same as the command prompt screen It is a good practice to start screen sessions with descriptive names so you can easily remember which process is running in the session. To create a new session with a session name run the following command screen -S name and replace ‘name’ with a meaningful name for your session. 4. Detach from Linux S

How To Add Swap on CentOS 7

Introduction One of the easiest ways to make your server more responsive, and guard against out-of-memory errors in your application, is to add some swap space.  Swap  is an area on a storage drive where the operating system can temporarily store data that it can no longer hold in memory. This gives you the ability to increase the amount of information that your server can keep in its working memory, with some caveats. Reading from and writing to swap is slower than using memory, but it can provide a good safety net for when your server is low on memory. Without swap, a server that runs out of memory may start killing applications to free up memory, or even crash. This can cause you to lose unsaved data or experience downtime. To ensure reliable data access, some applications require swap to function. In this guide, we will cover how to create and enable a swap file on a CentOS 7 server. Note Although swap is generally recommended for systems utilizing traditional spinni