On many hosting providers the default PHP Memory is usually 32 or 64 MB, however for WordPress that may not be enough sometimes, especially if you have a lot of plugins installed on your website. I recommend to increase the memory to 256 MB or more. How to change the WordPress Memory The most common solution to this problem is to edit the Read More
Category: Linux Family
Red Hat, Centos, Debian, Ubuntu, Fedora and the likes
Also including MySQL, Apache, Wordpress etc…
Hot to send a test email by telnet a SMTP SERVER
Hot to send a test email by telnet a SMTP SERVER [<username>@localhost ~]# telnet 192.168.x.x 25Trying 192.168.x.x …Connected to 192.168.x.x (192.168.x.x)Escape character is ‘^]’.220 Welcome to xxx SMTP service!HELO local.abc.com250 mailserver: Hello local.abc.comMAIL FROM: [email protected] [email protected]: Sender okRCPT TO: [email protected] [email protected]: Recipient okDATA354 Send data now. Terminate with .Subject: mail server testing.250 mailserver: Message accepted for deliveryquit221 mailserver closing Read More
The best way to disable directory browsing on Apache
The best way to do this is to disable it with webserver apache2. In Ubuntu open /etc/apache2/apache2.conf in Centos, open /etc/httpd/conf/httpd.conf change from to then restart apache by: This will disable directory listing from all folder that apache2 serves.
How to solve the problem of “Another application is currently holding the Yum lock” in CentOS 7
How to solve the problem of “Another application is currently holding the Yum lock” in CentOS 7 Solution 1: cd /var/run rm -f yum.pid Solution 2: Yum clean all
How to block an IP by iptables (Red hat 6.2)
How to block an IP by iptables (Red hat 6.2) Solution 1: Adjust the config file: Vim /etc/sysconfig/iptables Solution 2: Syntax to block an IP address under Linux iptables -A INPUT -s IP-ADDRESS -j DROP Replace IP-ADDRESS with your actual IP address. For example, if you wish to block an ip address 65.55.44.100 for whatever Read More
Allow SSH for specific IP Address and block all others
Allow SSH for specific IP Address and block all others Solution 1: Using /etc/hosts.allow And /etc/hosts.deny File SSHD will first check /etc/hosts.allow for entries. If there is no rule in /etc/hosts.allow which fits SSHD will go on checking /etc/hosts.deny for rules. So you need to add: vim /etc/hosts.deny sshd: ALL EXCEPT LOCAL To block every Read More