WebDAV, php and permissions

I am having trouble with WebDAV executing PHP code when opening files remotely on the server using a text editor and not showing the php code.
If we access the server through a text editing tool via WebDAV, it executes the php code and displays the resulting code in html, but not the original php code. But if we log-in to the server using FTP, same user, just different protocol, then the code is displayed as php code, but then that user then owns the file and we generate other permission problems.
So the question is: How can you set up a machine to have users access the server only through WebDAV, but have the text editor they are using NOT execute the PHP files when they open, but show the php code?
Many thanks for your help.
Pilar

Hi.
Please check both the error_log and access_log found inside /var/log/httpd/
These are apache's log files and you may find the solution of your problems there
Mihalis.

Similar Messages

  • WebDAV, php and executing the file

    I am having trouble with WebDAV executing PHP code when opening files remotely on the server using a text editor and not showing the php code.
    If we access the server through a text editing tool via WebDAV, it executes the php code and displays the resulting code in html, but not the original php code. But if we log-in to the server using FTP, same user, just different protocol, then the code is displayed as php code, but then that user then owns the file and we generate other permission problems.
    So the question is: How can you set up a machine to have users access the server only through WebDAV, but have the text editor they are using NOT execute the PHP files when they open, but show the php code?
    Many thanks for your help.
    Pilar

    Huh?
    And exe only runs on the machine that it is accessible from via the OS. So an exe on a server can 'run' on a client.
    There are word viewers that can be installed in a browser that allows a word file to be viewed in the browser. The viewer has to be installed in the browser however.

  • Users and permissions for a small home server

    Hello community,
    I have been using Linux on the desktop for many years now, but unfortunately my knowledge about servers is very limited, almost non-existent. Therefore my question is most probably equally well fitting here and into the newbie corner.
    I'm trying to set up a little home server which should be in charge of following tasks:
    - CUPS print server in the local network
    - access to shared files through NFS in the local network
    - backup (again over NFS)
    - an Owncloud server
    - maybe a mail server in the long run (NSA, paranoia, etc. )
    For now I have set up the print server, the NFS server and was working on the Owncloud installation, when Owncloud gave me some errors with users and permissions. So I was led to the idea of rethinking the users and permissions on server. So far there is only the root user who may do everything. This seems like a quite unsafe configuration. I'd like to make it safer. First, the printer, the backup and the locally shared files should be accessible from the local network only. SSH access should also be accessible locally only. The Owncloud file folder should be accessible from the internet, but of course only for the Owncloud users registered to the Owncloud server.
    What is the best way to set up users and permissions for such a set up?
    Thanks for any hints,
    PhotonX

    Hi, i think it depends who are you serving for, if you are just serving for a small office or home server or a big organization. The following quick thinking just came to me:
    I think cups set automatically a system  user of its own, and runs as it, so no trouble there. Cups also has the option to set users and it uses the system users as default, i think it depends in in how many printers/users your have in your server.Users that can manage cups are in the lp group. 
    For nfs every user should have their home, samba is also a good option if you have  windows computer in your network and it integrates better with graphical file  managers like nautilus in the clients side, but it is a hassle to configure.
    You should run the web server (owncloud ) as it own user, maybe you can manage to set something up for owncloud in the filesystem, but owncloud uses a database, and the users for owncloud are stored in there, and they are not system users.
    You can configure ssh for local use only enabling the corresponding subnets in your /etc/sshd.conf and optionally but recommended you can set a firewall and permissions. You can use iptables but i prefer ufw for simple setup.
    I think you should read the wiki:
    https://wiki.archlinux.org/index.php/users_and_groups
    and the other respective topics in the wiki.
    Also as an advice i know that arch linux is a great distribution, but you have to do more work to mantain a stable server. I would recommend debian or another more conservative distro, but of course it is your choice.
    Last edited by hydrosIII (2014-11-06 06:26:45)

  • Sharing and Permissions for Admin Users Home Folder

    Staff user group deleted from Admin User home folder.  User groups listed are the user as read/write, admin as read and everyone as read.  If you create a new Admin user the group "staff" is listed instead of "admin"????  How do i get it back to how it was?  It also seems to be effecting stored passwords in my keychain and other apps.

    Hi, i think it depends who are you serving for, if you are just serving for a small office or home server or a big organization. The following quick thinking just came to me:
    I think cups set automatically a system  user of its own, and runs as it, so no trouble there. Cups also has the option to set users and it uses the system users as default, i think it depends in in how many printers/users your have in your server.Users that can manage cups are in the lp group. 
    For nfs every user should have their home, samba is also a good option if you have  windows computer in your network and it integrates better with graphical file  managers like nautilus in the clients side, but it is a hassle to configure.
    You should run the web server (owncloud ) as it own user, maybe you can manage to set something up for owncloud in the filesystem, but owncloud uses a database, and the users for owncloud are stored in there, and they are not system users.
    You can configure ssh for local use only enabling the corresponding subnets in your /etc/sshd.conf and optionally but recommended you can set a firewall and permissions. You can use iptables but i prefer ufw for simple setup.
    I think you should read the wiki:
    https://wiki.archlinux.org/index.php/users_and_groups
    and the other respective topics in the wiki.
    Also as an advice i know that arch linux is a great distribution, but you have to do more work to mantain a stable server. I would recommend debian or another more conservative distro, but of course it is your choice.
    Last edited by hydrosIII (2014-11-06 06:26:45)

  • Include PHP and/or JAVA code in any BC site.

    I am thinking about including some PHP and/or JAVA code into my BC site and I was wondering if I am allowed to do this. Just Curious. Thanks.

    That's a shame, because I was thinking about implementing a business search api for my real estate website that was created using business catalyst that allows the collection of all real estate agents in Australia by searching and collecting their information from the Yellow Pages and White Pages directories, and include these information in a database that allows users to search for the real estate agent they want and comment on that agent. This can only be done by integrating some PHP or JAVA code into my BC website.
    So that means that the only way that I can do this is to create a web app that allows users to search for the real estate agent they want to see and comment on that agent, just by entering real estate agents' information into the web app's database and using various BC modules and plugins. Are there other easier ways to do this? Thanks.

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

    I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

    Does this involve iPhoto in some way?

  • SharePoint 2013 - Site Settings - Users and permissions - "Access Request and invitations" link missing

    I am site collection administrator and have configured the outgoing email in Central administration but "Access Request and invitations" link  is missing, pl advice any additional configurations for this link to show up
    I was though able to configure access requests by going to Site Settings->Users and permission and on the ribbon selected "Access Request Settings"
    What is the difference in either of the approaches?
    Thanks
    Abhishek

    Hi there,
    I noticed this post, and didnt really find an appropriate solution to your issue. I noticed the same issue when dealing with Access Requests. First of all to make sure that the Request feature is enabled, you need to access 
    Site Settings -> Site Permissions -> Access Request Settings -> Make sure the
    'Allow access requests' option is enabled.
    The Allow access screen just allows you to enable the feature and also to specify a email address that notifications are sent to. Whereas the 'Access Requests and Invitations' section provides a screen to manage Access Requests and request history.
    I noticed then that the Access Requests and Invitations link under 'User and Permissions' didnt actually appear until someone actually requests to join the site. It seems that this is needed to display the screen. Once actioned once, the option stays there.
    Hope it helps

  • Can you change Layout of php and filter?

    HI All,
    I have some code:
    function tc($v) {
    if (!$v) {
    return 'NULL';
    } else {
    return '\''.mysql_real_escape_string($v).'\'';
    $field = array(
    array("surname", "Surname"),
    array("forename", "Forename(s)"),
    array("address", "Address"),
    array("post_code", "Post Code"),
    array("telephone1", "Telephone Number"),
    array("telephone2",  "Alternative Number 1"),
    array("telephone3", "Alternative Number 2"),
    array("dob", "Date of Birth"),
    array("gender", "Gender"),
    array("religion", "Religion"),
    array("special", "Disabilities / Special Needs"),
    array("mother_name", "Mother Name"),
    array("mother_occ", "Mother Occupation"),
    array("mother_crb", "Mother CRB?"),
    array("father_name", "Father Name"),
    array("father_occ", "Father Occupation"),
    array("father_crb", "Father CRB?"),
    array("email", "Email Address"),
    array("subs", "Subs"),
    array("GA", "Gift Aid Signed?"),
    array("dpa", "DPA Signed?"),
    array("editby", "Record last edited by"),
    array("edittime", "Record last edited at"),
    array('datejoined', 'Date Joined'),
    array('year1', 'Year One Badge'),
    array('year2', 'Year Two Badge'),
    array('year3', 'Year Three Badge'),
    array('year4', 'Year Four Badge'),
    array('year5', 'Year Five Badge'),
    array('year6', 'Year Six Badge'),
    array('year7', 'Year Seven Badge'),
    array('year8', 'Year Eight Badge'),
    array('year9', 'Year Nine Badge'),
    array('EA1', 'Emergency Aid Stage 1'),
    array('EA2', 'Emergency Aid Stage 2'),
    array('EA3', 'Emergency Aid Stage 3'),
    array('EA4', 'Emergency Aid Stage 4'),
    array('EA5', 'Emergency Aid Stage 5'),
    array('HA1', 'Hikes Away Stage 1'),
    array('HA2', 'Hikes Away Stage 2'),
    array('HA3', 'Hikes Away Stage 3'),
    array('HA4', 'Hikes Away Stage 4'),
    array('HA5', 'Hikes Away Stage 5'),
    array('HA6', 'Hikes Away Stage 6'),
    array('IT1', 'IT Stage 1'),
    array('IT2', 'IT Stage 2'),
    array('IT3', 'IT Stage 3'),
    array('IT4', 'IT Stage 4'),
    array('IT5', 'IT Stage 5'),
    array('music1', 'Musician Stage 1'),
    array('music2', 'Musician Stage 2'),
    array('music3', 'Musician Stage 3'),
    array('music4', 'Musician Stage 4'),
    array('music5', 'Musician Stage 5'),
    array('NAtotal', 'Total Nights Away'),
    array('NA1', 'Nights Away Stage 1'),
    array('NA2', 'Nights Away Stage 2'),
    array('NA3', 'Nights Away Stage 3'),
    array('NA4', 'Nights Away Stage 4'),
    array('NA5', 'Nights Away Stage 5'),
    array('NA6', 'Nights Away Stage 6'),
    array('NA7', 'Nights Away Stage 7'),
    array('NA8', 'Nights Away Stage 8'),
    array('NA9', 'Nights Away Stage 9'),
    array('NA10', 'Nights Away Stage 10'),
    array('NA11', 'Nights Away Stage 11'),
    array('NA12', 'Nights Away Stage 12'),
    array('swim1', 'Swimming Stage 1'),
    array('swim2', 'Swimming Stage 2'),
    array('swim3', 'Swimming Stage 3'),
    array('swim4', 'Swimming Stage 4'),
    array('swim5', 'Swimming Stage 5'),
    array('OCDATE', 'SCOUTS: Outdoor Challenge'),
    array('OPCDATE', 'SCOUTS: Outdoor Plus Challenge'),
    array('ACDATE', 'SCOUTS: Adventure Challenge'),
    array('CCDATE', 'SCOUTS: Creative Challenge')
    if ($user = User()) {
    if ($_POST['section'])  {
    if (UserRead($_POST['section']) || UserAdmin()) {
    echo '<h1>1st Chalfont St Giles Scout Group - ';
    $lsec_query = mysql_query('SELECT * FROM csg_section WHERE section='.tc($_POST['section'])) or die("<b>MySql Error:</b>".mysql_error());
    if ($lsec = mysql_fetch_array($lsec_query)) {
    echo $lsec['name']."\n</h1>";
    } else {
    echo 'Section Not Found</h1>';
    die();
    echo '<table border="2"><tr>'."\n";
    foreach ($field as $item) {
    if ($_POST[$item[0]]==1) {
    $fielddo[] = $item;
    echo '<td>'.$item[1].'</td>'."\n";
    echo '</tr>';
    switch($_POST['sort']) {
    case 'a':
    $sort = 'surname ASC, forename ASC';
    break;
    default:
    $sort = 'dob ASC';
    $ypl_query = mysql_query("SELECT * FROM csg_yp WHERE section=".tc($_POST['section'])." ORDER BY $sort") or die('<b>MySql Error:</b>'.mysql_error());
    while ($ypl = mysql_fetch_array($ypl_query)) {
    echo '<tr>'."\n";
    foreach ($fielddo as $item)
    echo '<td>'.$ypl[$item[0]].'</td>'."\n";
    echo '</tr>'."\n";
    echo '</table>'."\n";
    } else {
    ?>
    <p><b>Access Denied.</b> You are not authorised to view this section.
    <?
    } else {
    ?>
    All this does is produce a list of all the fields in the database in a long list so we can choose which fields to print.
    As this list is now growing as we have added a lot more fields to the database ... is there anyway we could split it into say 3 columns?
    Ideally the first column would be all the personal details - i.e. down to DPA Signed - Second column would be the other badges and the third column different depending on the section.
    On the data input page we have different badges depending on section. Using the following code:
    if ($action=='add' || ($action=='edit' && (UserRead($yp['section']) || UserAdmin()))) {
    $yp_section_query = mysql_query("SELECT name FROM csg_section WHERE section=".tc($yp['section'])) or die("<b>MySql Error:</b>".mysql_error());
    $yp_name = mysql_fetch_assoc($yp_section_query);
    $yp_name = $yp_name['name'];
    $yp_section = (strstr($yp_name,"Scout")) ? 1 : (strstr($yp_name,"Cub") ? 2 : 3) //If has word 'scout' -> 1. Else If has word 'cub' -> 2 Else 3 (beaver)
    ?>
    <form action="yp2.php" method="post">
    <input type="hidden" name="yp" value="<?php echo $yp['yp_id']; ?>">
    <input type="hidden" name="section" value="<?php echo $yp['section']; ?>">
    could we use this on the print page to show different badge list depending on section in the third column??
    Many Thanks,
    Steve

    I am not sure how it looks familiar ... are you in Scouting too?
    So can i just create columns and put the different bits in each column?
    How can I sort by database - sorry I am a bit of a novice when it comes to php and coding, etc.
    Also was it able to filter depending on section?
    Many Thanks,
    Steve

  • Unable to download from AppStore, updates,etc.Messages 'the installer is damaged' to 'there might be a problem with file ownership and permissions.' I am the owner and only user of a new MBP. What could be going on?

    Is anyone having the same type of problems I'm having with Lion. I have a new MacBook Pro, received 7 weeks ago, preinstalled with Leopard 10.6.7. I didn't migrate anything from my old iMac, wanted a clean install from the Apple Store. While there, I asked for the upgrade to Lion 10.7, however their system was down.
    I  installed it myself, wirelessly about a week later, and Apple emailed me a receipt. Now, I've had to call support directly last week when I lost Mail, Address Book, was unable to open Preview or iTunes, among other problems. Seemed fixed after a session that baffled even the store tech.  Now I am unable to download or install the recent Mac updates for Lion, from the App Store, could not install Adobe Reader, etc. Messages range from 'A network error has occured - Check your Internet connection and try again' to 'The Installer is damaged and cannot open the package. There may be a problem with file ownership or permissions.'  All fail and I'll probably have to call Apple again. I am frustrated beyond words.  Logs 'Install's runner tool is not properly configured as a setuid tool', domain errors, 'attempt to write a readonly database, and on and on. I have barely done a thing on this computer except search online for help with these problems. Safari gives me a 'You are not connected to the internet' too often. Diagnostics disagrees. I do see wi-fi problems in the forum. Disk and permissions were fine at the beginning of the earlier problems, checked first by support tech. I'm not sure if support tech even knew. I was just happy they were fixed. Anyone have these download and/or install problems after a 'clean bill of health' so to speak, only a week ago?

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • DANGER: Do Not Change Hard Drive Ownership and Permissions

    DANGER: Do Not Change Hard Drive Ownership and Permissions (Unless you know what you are doing... I didn't!)
    FIRST, THE REPAIR PERMISSIONS SOLUTION:
    Use Disk Utilities on the "Sofware Install and Restore" DVD that came with your computer to set the permissions back to the defaults. Not the MacOSX Installation Disk. (This worked in MacOS 10.3.9)
    MY SCREW UP
    In my Hard Drive's "Get Info" dialog I switched the permissions of the Owner to my username and all others to no access. I had not yet closed the dialog and decided that it was probably dangerous so I started changing them back. I first changed the owner back to system. It asked for authentication.
    After entering my password I assumed that I would be able to go back and change the others as well. Nope! The dialog disappeared, my desktop disappeared and I couldn't do anything. I was locked out.
    After ten minutes of the beachball I restarted to the "Panther Installation disk" and tried repairing permissioins using disk utility. Evertime it "lost contact" with the system and would not work. Restarting (without CD) took me to a root user login (black sreen). My username and password did nothing.
    THE SOLUTION
    I then restarted to the "Software Install and Restore" DVD that came with my computer and used its Disk Utility to repair permissions. IT WORKED! It set permissions back to the default. THANK GOD.
    NOTE: I wonder, will using the Install and Restore DVD to repair permissions reset any computer's files to the defaults? Is that a backdoor into someones currently restricted files and folders? (Assuming that you have physical access and the computer specific DVD)

    Using the Repair Permissions function will not change the permissions on an account's home folder or anything in it, but there are at least two other ways in which someone with a Mac OS X 10.4 installation disk can get access to an account's files or folders unless some or all of those files are encrypted.
    (19285)

  • 'unable to connect' and 'localhost' and index.php and dreamweaverCC

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root Library/WebServer/Documents
    so my path is: Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am now using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Site window settings.
    Site Name: dwwdSite
    Local site folder: /Library/WebServer/Documents/dwwdSite
    Server window settings.
    Server Name: testing Server
    Address: Macintosh HD/Library/WebServer/Documents/dwwdSite
    Connect using: Local/network
    Testing: yes (checked)
    Server folder: /Library/WebServer/Documents/dwwdSite
    (I also tried this: Server folder: /Library/WebServer/Documents)
    Web URL: http://www.localhost/dwwdSite
    Server Advanced tab: (within server window settings)
    Testing server: PHP MySQL
    Advanced Settings window.
    Local info: Web URL: http://www.localhost/dwwdSite
    Enable cache: yes (checked)

  • Org.clamav.freshclam and permissions error on freshclam.log

    This is an adjunct to a branched discussion in this thread regarding org.clamav.freshclam continually generating error reports in the system log.
    After enabling, but not starting, Mail service on my server (XServe Dual-G5, 10.5.8 Server) my system log began filling with the error as per the referenced thread. The first entry when the error cropped up was:
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Unknown key for integer: Iterations
    Nov 5 15:23:20 xserve1 org.clamav.freshclam[40472]: ERROR: Incorrect argument format for option --checks (-c)
    Nov 5 15:23:20 xserve1 org.clamav.freshclam[40472]: ERROR: Can't parse command line options
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam[40472]): Exited with exit code: 1
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Per the instructions in the referenced thread, I ran
    launchctl unload /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    I then used pico to edit the org.clamav.freshclamplist file, removing the space between the '-c' and value in the line:
    <string>-c 4</string>
    I also edited the /etc/freshclam.conf file to change the value:
    #DatabaseMirror db.XY.clamav.net
    to
    DatabaseMirror db.us.clamav.net
    I then ran
    freshclam -v
    followed by
    launchctl load /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    Checking the log again, not only had the original error continued whilst I was editing, but also on the relaunch of freshclam a new error cropped up:
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Unknown key for integer: Iterations
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Ignored this key: UserName
    *Nov 7 08:35:39 xserve1 org.clamav.freshclam[474]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).*
    *Nov 7 08:35:39 xserve1 org.clamav.freshclam[474]: ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).*
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam[474]): Exited with exit code: 62
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Nov 7 08:35:48 xserve1 org.clamav.freshclam[475]: ERROR: Incorrect argument format for option --checks (-c)
    Nov 7 08:35:48 xserve1 org.clamav.freshclam[475]: ERROR: Can't parse command line options
    Nov 7 08:35:48 xserve1 com.apple.launchd[1] (org.clamav.freshclam[475]): Exited with exit code: 1
    Nov 7 08:35:48 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Nov 7 08:35:49 xserve1 org.clamav.freshclam[476]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).
    Nov 7 08:35:49 xserve1 org.clamav.freshclam[476]: ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).
    Nov 7 08:35:49 xserve1 com.apple.launchd[127] (org.clamav.freshclam[476]): Exited with exit code: 62
    Nov 7 08:35:49 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    (Note: after the first 'Exited with exit code: 1' entry, it only repeated the last four lines as above as it respawned.)
    Checking the ownership / permissions on the freshclam.log file showed that the owner/goup was _clamav:admin and the permisions were -rw-r----- which is proper and in line with the other clamav files in the directory. Thinking that perhaps the logfile was corrupted, I deleted it and made a new one, setting the owner, group and permissions as per the original. The log errors continued.
    Finally, in desparation, I ran
    chmod 660 /var/log/freshclam.log
    setting the permissions to -rw-rw---- and the errors ceased!
    Now, this is not proper file permissions nor does it explain why freshclam suddenly could not append the logfile, but freshclam is now happily churning away without generating continuous log error entries. For the moment, I am not going to argue with successful results!
    -Doug

    Hi Fred,
    interesting.. but I'm of the mind "If it ain't broke.." and it has been running without problem since applying the fix. I may end up having to migrate Mail services to a different server soon though, so I'll keep it in mind if the error crops up again. Thanks for the tip!
    -Doug

Maybe you are looking for