This (OLD!) guide may help you install ZendTo on FreeBSD systems.
NOTE: The guide assumes you already have Apache and
PHP installed. If you don't have them installed, please
follow:
http://www.freebsdmadeeasy.com/tutor...on-freebsd.php
for Apache.
http://www.freebsdmadeeasy.com/tutor...eb-hosting.php
for PHP.
Overview:
# cd /root/ # fetch http://zend.to/files/ZendTo-4.08-4.tgz (or the latest) # tar -xzf ZendTo-4.08-4.tgz
# mkdir /opt # mv /root/ZendTo-4.08-4 /opt/zendto # chown -R www:www /opt/zendto
# mkdir /var/zendto # mkdir /var/zendto/dropoffs # mkdir /var/zendto/incoming # chown -R www:www /var/zendto
# cd /usr/local/etc/apache22/Includes # touch zendto.conf
Alias /zendto /opt/zendto/www <Directory /opt/zendto/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Add this part only if you want to force HTTPS RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </Directory>
Include etc/apache22/Includes/*.conf
# cd /opt/zendto/templates # cp header.tpl header.tpl.backup
On line 47 and 50, change: <a href="/"> to: <a href="index.php">
<Directory /opt/zendto/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </Directory>
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/opt/zendto/www" Include etc/apache22/Includes/*.conf
# General setup for the virtual host DocumentRoot "/opt/zendto/www"
cd /usr/ports/lang/php5-extensions/ && make install clean Select the following options [x] BCMATH [x] CURL [x] GD [x] IMAP [x] LDAP [x] MBSTRING [x] MCRYPT [x] MYSQL [x] PDO [x] PDO_SQLITE [x] SESSION [x] SOAP [x] SQLITE [x] XMLRPC cd /usr/ports/www/pecl-APC/ && make install clean cd /usr/ports/databases/pecl-memcache/ && make install clean
# cd /usr/local/etc/ # cp php.ini php.ini.backup if php.ini doesn't exist, then: # cp php.ini-production php.ini
... * error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE * max_execution_time = 7200 * max_input_time = 7200 * memory_limit = 300M * display_errors = On * post_max_size = 50000M * upload_tmp_dir = /var/zendto/incoming * upload_max_filesize = 50G * max_file_uploads = 200 This setting does not apply to CentOS * apc.rfc1867 = on * apc.max_file_size = 50G * apc.slam_defense = off * Set "date.timezone" to the relevant timezone you are in, for example "Europe/London". ...
Change the quota to something a little bigger: (this is supposed to be a large-file replacement for E-mail, right?) ... 'defaultMyZendToQuota' => 1000000000, // 1GB ...
Enter the keys respectively in preferences.php ... 'recaptchaPublicKey' => '', 'recaptchaPrivateKey' => '', ...
# ee zendto.conf ... ContactInfo = "Copyright © 2011" Username = "Southampton Username" NonLocalUsers = "non-Southampton users" LocalUser = "a Southampton user" OrganizationType = "the University" # These are settings used in email messages EmailSenderAddress = 'ZendTo <helpdesk@zend.to>' UnknownRecipient = "One of the recipients" VerifyEmailSubject = "[ZendTo] You are trying to drop-off some files" # The %s in the next lines are replaced with the name of who picked it up PickupEmailSubject = '[ZendTo] %s has picked up your drop-off!' DropoffEmailSubject1 = '[ZendTo] %s has dropped off a file for you' DropoffEmailSubject2 = '[ZendTo] %s has dropped off files for you' ErrorWillNotSend = "You must be logged in as an Southampton user in order to drop-off a file for a non-Southampton user.<br /> <br />Return to the ZendTo main menu to log in and then try again." ...
# cd /usr/ports/security/clamav/ && make install clean
# echo "clamav_clamd='YES'" >> /etc/rc.conf # echo "clamav_freshclam_enable='YES'" >> /etc/rc.conf
change: User clamav to: User www
# pw usermod www -G clamav # chmod 775 /var/run/clamav # chmow 775 /var/log/clamav
# /usr/local/etc/rc.d/clamav-freshclam start # /usr/local/etc/rc.d/clamav-clam start
... 'clamdscan' => '/usr/local/bin/clamdscan --quiet', ...
//'authenticator' => 'Local', 'authenticator' => 'IMAP', 'authIMAPServer' => 'www.example.com:993/ssl/novalidate-cert', 'authIMAPDomain' => '', 'authIMAPOrganization' => 'example.com',