Use the following code:
ini_set("log_errors", 1); ini_set("error_log", "/tmp/php-error.log"); error_log( "Hello, errors!" );
“PHP: How to log errors and warnings into a file?”Continue reading
Use the following code:
ini_set("log_errors", 1); ini_set("error_log", "/tmp/php-error.log"); error_log( "Hello, errors!" );
“PHP: How to log errors and warnings into a file?”Continue reading
By default, every Linux OS has an efficient memory management system used to clear the buffer cache periodically. You can manually free up the memory cache with the following simple command:
# echo 3 > /proc/sys/vm/drop_caches"
However, if you want to force the Linux OS to do clearing memory cache on a particular interval, just add the command to cron job. Here, I show you how.
Just create a directory:
# mkdir -p /usr/local/apache/conf/userdata/(std|ssl)/2/yourusername/yourmaindomain.com
“Tips: How to disable mod_security2 rules on CPANEL/WHM for any domain.”Continue reading
Here are the two common situations of adding custom changes:
Changes added inside a
1 | <VirtualHost> |
This is very simple as we only need to create a single file that will contain our changes. But we need to understand the correct location on where to place this file so that our changes will be read properly.
“Tips: Custom Configurations of httpd.conf on WHM/CPANEL server”Continue reading
SCP / SSH may not need a (pseudo-)terminal but something may expect it regardless on the remote end.
Does any global or personal shell resource files contain “stty” or “mesg” (‘egrep -r “stty|mesg” /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile;’)? For example:
root@server [/]# egrep -r "stty|mesg" /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile /etc/bashrc:mesg y root@server [/]#
If exactly as above, then you need just to comment this row in /etc/bashrc file.