zip command question

Status
Not open for further replies.

intern1

New Member
Messages
4
Reaction score
0
Points
0
Hi there,

I got this message "Your system does not have the zip command. Please install zip to enable this feature" when I tried to run export function in my site. Any idea is welcomed.

Thanks,

Roy
 

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
Which server are you on and which command are you trying to use? Is this the zip function in PHP or somewhere else?
 

intern1

New Member
Messages
4
Reaction score
0
Points
0
Server name: absolut

I am building an open source site called "Mahara"

Sorry I am still not familiar with the site setting. I found these variables.

$cfg->pathtounzip = '/usr/bin/unzip';
$cfg->pathtozip = '/usr/bin/zip';

Here is the best related answer I can find on the internet.

http://mahara.org/interaction/forum/topic.php?id=1662

Thank you for your help.

Roy
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
It's probably in /usr/local/bin. You can find out yourself by writing a short CGI script:

Code:
#!/bin/sh
echo "Content-type: text/plain"
echo

echo `which -a zip`
# or:
#which -a zip >/dev/tty

Make sure you set permissions to mode 0755.
 
Last edited:
Status
Not open for further replies.
Top