<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 24/01/2012 19:44, Jared Smith wrote:
<blockquote
cite="mid:7B9374DC2127EE42AA5EA07FBE9BC5A6E2AD499D44@FDS2008.fds002.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered
medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;">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
…”?</span></font></p>
</div>
</blockquote>
Yes. It means "These next 2 commands", sorry for writing unclear
docs. My bad :-(<br>
<blockquote
cite="mid:7B9374DC2127EE42AA5EA07FBE9BC5A6E2AD499D44@FDS2008.fds002.local"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;">
Do I continue with “yum –y install libdbi lua-devel …”?
</span></font></p>
</div>
</blockquote>
Yes.<br>
<blockquote
cite="mid:7B9374DC2127EE42AA5EA07FBE9BC5A6E2AD499D44@FDS2008.fds002.local"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;">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 …”.</span></font></p>
</div>
</blockquote>
You do need to install the PHP rpms<br>
php-gd<br>
php-cli<br>
php-common<br>
php-mysql<br>
php-ldap<br>
php-pecl-apc<br>
php-pdo<br>
php-xml<br>
php-pear<br>
php<br>
php-devel<br>
Then you'll have a configuration file /etc/php.d/apc.ini that you
can go and edit appropriately.<br>
<blockquote
cite="mid:7B9374DC2127EE42AA5EA07FBE9BC5A6E2AD499D44@FDS2008.fds002.local"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;">I also tried
setting up permissions for virus scanning but
it kept saying user clamav doesn’t exist.</span></font></p>
</div>
</blockquote>
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.<br>
<br>
They are configured in /etc/clamd.conf and /etc/freshclam.conf.<br>
<br>
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<br>
User clamav<br>
and in both files I have<br>
DatabaseDirectory /var/clamav<br>
<br>
The permissions of /var/clamav are then<br>
drwxr-xr-x. 2 clamav clamav 4096 Jan 24 03:10 .<br>
drwxr-xr-x. 24 root root 4096 Feb 24 2011 ..<br>
-rw-r--r-- 1 clamav clamav 294400 Jan 17 03:49 bytecode.cld<br>
-rw-r--r-- 1 clamav clamav 4956160 Jan 24 03:10 daily.cld<br>
-rw-r--r-- 1 clamav clamav 77453824 Oct 12 03:25 main.cld<br>
-rw-------. 1 clamav clamav 208 Jan 24 03:10 mirrors.dat<br>
<br>
and /var/log/clamav is<br>
drwxr-xr-x. 2 clamav clamav 4096 Jan 22 03:27 .<br>
drwxr-xr-x. 11 root root 4096 Jan 22 08:37 ..<br>
-rw-r--r-- 1 clamav clamav 61700 Jan 24 21:23 clamd.log<br>
-rw-r--r-- 1 clamav clamav 3618 Jan 24 03:10 freshclam.log<br>
<br>
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. :)<br>
<br>
Hopefully that's enough to get your virus scanning going.<br>
<br>
If you would like to write it up as some notes I can add to the
website, please do!<br>
<br>
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!<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
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
</pre>
</body>
</html>