Web Server and Hosting Arena Co-Powered by DomainStack.in and WebNinja.host

find and delete script command

1)find /home/username/mail/new -name “123*” -exec rm -fv {} ; Replace the “123*” entry with a prefix of what your files within this directory start with. This is a safeguard so you do not use...

Exim commands

# List all queued messages, grouped by sender addressexim -bpr | grep -Eo “<[^ ]*@[^ ]*>” | sort | uniq -c # List all queued messages, grouped by recipient addressexim -bpr | grep -Eo...

cpanel required ports

If your server is having cpanel , you should open following ports in firewall—20,21,25,26,43,53,80,110,143,443,465,873,993,995,2083,2082,2086,2087,2095,2096,3306,2089— Share it..

not able to sent mail

Not able to send mails to particular email id only x@xxx.com  and getting following logs – 2015-02-17 15:23:39 [3230] 1YNeqU-0000q1-No ** x@xxx.com F= P= R=dkim_lookuphost T=dkim_remote_smtp: SMTP error from remote mail server after initial connection: host x1x.xxx.com...

Recursive chmod

Recursive chmod within folder: For suphp you should have 644 permissions to all file and 755 permission for directories.If not then you can modify it with below commands –——————————————–find . -type f -exec chmod...

Send Email from a PHP Script Example

Send Email from a PHP Script Example To send a simple sample message, we could use: Email successfully sent! “);  } else {   echo(“Email delivery failed…“);  } ?> Share it..

Remove session files under /tmp weekly

Remove session files under /tmp weekly root@host [/scripts]# ll | grep cleanup.sh-rwxr-xr-x  1 root root      39 Nov 21 10:41 cleanup.sh*root@host [/scripts]# cat cleanup.shfind /tmp/  -name “sess_*” | xargs rm root@host [/scripts]#================================weekly on...

Find command

Recursive chmod only files within this folder: find . -type f -exec chmod 0644 {} ; Recursive chmod only folders within this folder: find . -type d -exec chmod 0755 {} ; into a...

Optimization WordPress Plugins & Solutions by W3 EDGE