LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-08-2012, 01:17 AM   #1
AcorpComputers
LQ Newbie
 
Registered: Apr 2010
Posts: 14

Rep: Reputation: 1
Apache error_log line: sh: zip: command not found


I am running Apache2 on a CentOS 5.8 x64 server, with many virtual hosts set up. Each virtual host has its own error_log and access_log, however in the, "main" error_log (/var/log/httpd/error_log) I have, for the last week or so, begun to see the following line:

Code:
sh: zip: command not found
There is no other information attached - no date, no time, no IP, no referrer, nothing - just the above. Typically I will see this line repeated 10, 20 or more times, though sometimes it only gets repeated once or twice before the next event gets logged.

Google search reveals this error is seen mainly in the context of compiling programs when the zip binary is not present or the path is not specified correctly...I would hope my Apache and web sites are not doing any type of compiling! Why am I getting this error? What Apache site or directive (?) is trying to zip something - and why is it appearing in the main error_log?

Any idea what this error line is telling me (other than the obvious, that it can't find the proper path to the zip binary)?

TIA,

- Acorp
 
Old 06-08-2012, 02:06 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
A hosted website is trying to run zip (e.g. from PHP or CGI) but cannot find it in the PATH.
Try by yourself creating a zip.php page containing:
Code:
<?php exec("zip zip.php", $output, $arg);  
echo $arg; ?>
Try to discover if Apache has /usr/bin set in PATH bu running the php script
Code:
<?php phpinfo(); ?>
and check the PATH content.

Last edited by Slackyman; 06-08-2012 at 02:14 AM.
 
Old 06-09-2012, 05:17 AM   #3
AcorpComputers
LQ Newbie
 
Registered: Apr 2010
Posts: 14

Original Poster
Rep: Reputation: 1
Thanks a lot. I was a little confused, because your zip.php code produced the same error. So then I checked the phpinfo.php, but the path was set correctly. A little more digging, however, revealed that I didn't have zip installed. bzip, gzip, and a bunch of others, but not plain old "zip".

I have installed it, and hope to see those errors go away. One question...do you think I am exposing myself to anything, "terrible" by installing and allowing access to the zip binary? Looks like it is currently used by a Wordpress backup program, which, other than not purging older backups, is probably not a big deal. Other thoughts?

Thanks for the help!

- Acorp
 
  


Reply

Tags
apache2, error message, httpd, path, zip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browseable zip command line utility? linux.noob Linux - Software 3 02-26-2012 03:09 PM
Command line utility to split a zip file paragkalra Linux - Software 1 09-16-2008 11:09 AM
7-zip wont open through the command line Shortlisted Linux - Software 1 07-18-2006 09:17 AM
replacing a file in a zip from command line davee Linux - General 3 02-28-2006 02:06 PM
Apache error_log "file not found" question WorldBuilder Linux - Networking 4 11-26-2003 01:53 PM


All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration