Apache did not start
Error log contains:
[emerg] (28)No space left on device: Couldn’t create accept lock
or
[crit] (28)No space left on device: mod_rewrite: could not [...]
Error log contains:
[emerg] (28)No space left on device: Couldn’t create accept lock
or
[crit] (28)No space left on device: mod_rewrite: could not [...]
PHP mail() and SMTP Authentication
Part of what makes the PHP mail() function is so simple is its lack of flexibility. Most importantly and frustratingly, the stock mail() does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication, required by many a mail server today, at [...]
Not many CPANEL server admin knows that when they delete user account, there are some of those user files that still left on the server. Because user has been deleted, so the files will be owned by nouser.
This can be a problem when your server is highly cycled (you add and delete users very frequently) [...]
A Smart Host is a SMTP server that will accept mail from another server and then deliver the mail for that server. For example, server1 is setup to use server2 as a smart host. Anytime someone sends e-mail on server1 it is automatically relayed to server2 regardless of the MX entrys for the domain. Server2 then accepts [...]
First, download the latest version from Sourceforge:
Code:
wget http://downloads.sourceforge.net/clamav/clamav-0.95.1.tar.gz
Extract it and move into that directory:
Code:
tar -xzf clamav-*
cd clamav*
Compile:
Code:
./configure –prefix=/usr
make
make install
Comment out examples in the config files:
Code:
replace “Example” “#Example” — /usr/etc/freshclam.conf
replace “Example” “#Example” — /usr/etc/clamd.conf
Get the new virus definitions:
Code:
freshclam
Then just make sure you have the latest version of the ClamAV scanner if you’re using it (this can [...]
just paste to shell (cpanel server):
ps -axo “%C %p” |sort -nr |head -5 |while read i p; do echo -n $i; /usr/local/apache/bin/apachectl fullstatus |grep -A 1 $p; done
there is also a python script for that : apache-top.py . you can donwload it from: http://www.fr3nd.net/projects/apache-top/. it’s a nice tool but still need some customization.
Just change perl permissions like bellow . apache will be able of course to execute perl scripts from cgi.
-bash-3.2# ls -al /usr/bin/perl
-rwxr-xr-x 2 root root 13688 Sep 17 20:40 /usr/bin/perl
-bash-3.2# chgrp apache /usr/bin/perl
-bash-3.2# chmod 705 /usr/bin/perl
-bash-3.2# ls -al /usr/bin/perl
-rwx—r-x 2 root apache 13688 Jan 28 15:09 /usr/bin/perl
If you are using CPanel 11 (the latest version available at this time) you can easily install ruby on your system using CPanel. Previously, you had to do this using operating system packages or manually from sources. Now, we can just run /scripts/installruby and this will do everything for us:
download, compile and install ruby
download and [...]