[ZendTo] Re: Installing on CentOS 6

Jules Jules at Zend.To
Tue Jan 24 21:34:40 GMT 2012



On 24/01/2012 19:44, Jared Smith wrote:
>
> Hello -- I was trying to install ZendTo on CentOS 6 
> (CentOS-6.2-i386).  In the CentOS documentation it says "These next 2 
> are not for CentOS 6:" -- does this mean these two lines:  "yum remove 
> php php-cli ...." and "yum install php52-pear php52 ..."?
>
Yes. It means "These next 2 commands", sorry for writing unclear docs. 
My bad :-(
>
>   Do I continue with "yum --y install libdbi lua-devel ..."?
>
Yes.
>
> When I get to setting up PHP.ini and APC.ini -- apc is not mentioned 
> in php.ini and there is no apc.ini.  I see that APC is mentioned to be 
> installed in the line "yum install php52-pear php52 ...".
>
You do need to install the PHP rpms
php-gd
php-cli
php-common
php-mysql
php-ldap
php-pecl-apc
php-pdo
php-xml
php-pear
php
php-devel
Then you'll have a configuration file /etc/php.d/apc.ini that you can go 
and edit appropriately.
>
> I also tried setting up permissions for virus scanning but it kept 
> saying user clamav doesn't exist.
>
You need to make sure that freshclam and clamd are both set up to use 
the same username, and then ensure the permissions of /var/clamav (or 
wherever freshclam is configured to put the signature databases) and 
/var/log/clamav/ are all set correctly so that freshclam runs without 
producing any errors, once you've started clamd.

They are configured in /etc/clamd.conf and /etc/freshclam.conf.

I hit exactly the same problem when I did my install, but had assumed I 
had got an RPM from the wrong place so just got it working myself. I 
have clamd.conf saying
User clamav
and in both files I have
DatabaseDirectory /var/clamav

The permissions of /var/clamav are then
drwxr-xr-x.  2 clamav clamav     4096 Jan 24 03:10 .
drwxr-xr-x. 24 root   root       4096 Feb 24  2011 ..
-rw-r--r--   1 clamav clamav   294400 Jan 17 03:49 bytecode.cld
-rw-r--r--   1 clamav clamav  4956160 Jan 24 03:10 daily.cld
-rw-r--r--   1 clamav clamav 77453824 Oct 12 03:25 main.cld
-rw-------.  1 clamav clamav      208 Jan 24 03:10 mirrors.dat

and /var/log/clamav is
drwxr-xr-x.  2 clamav clamav  4096 Jan 22 03:27 .
drwxr-xr-x. 11 root   root    4096 Jan 22 08:37 ..
-rw-r--r--   1 clamav clamav 61700 Jan 24 21:23 clamd.log
-rw-r--r--   1 clamav clamav  3618 Jan 24 03:10 freshclam.log

Once you've got that lot set correctly, clamd and freshclam should work 
okay. Remember to restart clamd with "service clamd restart" before 
testing it out and testing freshclam. You can test out clamd with the 
"clamdscan /tmp" command, which will virus-scan your /tmp directory, but 
do it by calling clamd rather than just doing it directly which is what 
the "clamscan" command would do. You're trying to test clamd. :)

Hopefully that's enough to get your virus scanning going.

If you would like to write it up as some notes I can add to the website, 
please do!

Hope you don't mind, I've cc-ed this to the mailing list as it contains 
some info that might be useful to other folks too!

Jules

-- 
Julian Field MEng CITP CEng
www.Zend.To

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20120124/8baacf22/attachment.html 


More information about the ZendTo mailing list