[ZendTo] Re: Questions about a Centos 5.6/7 installation

John Cooper johnpcooper at yahoo.com
Fri Nov 11 15:14:29 GMT 2011


On 11/11/11 14:46, Steve Campbell wrote:
> I've just finished getting a working Centos installation of ZendTo on a
> Centos Xen VM for testing purposes. I've got a few questions that I
> couldn't find the answers for in the archives.
>
> Firstly, I found a thread on the apc settings that are to go into either
> php.ini or apc.ini which indicated someone else didn't have those
> settings and didn't know where to put them. I, too, didn't have those
> settings and was wondering about them. The thread ended without an
> answer from Jule's last question to the OP. Seems to work without them
> though.
Steve, why didn't you use Centos 6? The install for that is easier 
(omitting the >2GB changes)

yum -y install postfix httpd mod_ssl mysql mysql-server rpm-build vixie-cron crontabs logrotate yum-cron
chkconfig mysqld on
chkconfig httpd on
chkconfig iptables off
chkconfig ip6tables off
service mysqld start

mysql_secure_installation
Set root password? [Y/n] y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

rpm -Uvhhttp://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -Uvhhttp://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm  http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm

*yum install php php-pear php-gd php-mbstring php-mcrypt php-mysql php-pdo php-soap php-xml php-xmlrpc php-bcmath php-pecl-apc php-pecl-memcache php-ldap*


yum -y install libdbi lua-devel gettext lua ruby xorg-x11-fonts-Type1 perl-rrdtool rrdtool clamav clamav-db clamd
service clamd start
chkconfig clamd on
freshclam

rpm -Uvhhttp://zend.to/files/zendto-repo.rpm
yum install zendto


php.ini

This is already documented here. http://zend.to/phpini.php

Note: Ensure timezone is set for PHP 5.3 onwards

date.timezone = Europe/London

Ensure /etc/php.d/apc.ini has

apc.rfc1867 = on
apc.max_file_size = 50G
apc.slam_defense = off

Apache

Edit /etc/httpd/conf/httpd.conf and set the following lines 
appropriately for your site:


The name of your ZendTo website with ":80" added on the end

ServerName DocumentRoot /var/www/html

to

DocumentRoot /opt/zendto/www

Around line 307, should contain /opt/zendto/www between the quotes

<Directory "/var/www/html">

to

<Directory "/opt/zendto/www">

HostnameLookups on

Set Permissions

usermod -a -G apache clam

Setup Mail

Postfix should just work as installed.

service postfix start
chkconfig postfix on

Setup Database

ZendTo requires a small back-end database to store all its information. 
On CentOS you have to use MySQL as SQLite is not available for PHP on 
CentOS or RedHat. MySQL

Setting up the MySQL database can be done by creating an empty database, 
importing the table layout and granting the proper permissions to the 
zendto user. Here is an example of that procedure:

# mysql -uroot -p mysql> CREATE DATABASE zendto; mysql> GRANT ALL 
PRIVILEGES ON zendto.* TO zendto at localhost IDENTIFIED by 'zendpassword'; 
mysql> quit

where zendpassword is your own password

# mysql -u zendto -p zendto < /opt/zendto/sql/zendto.MySQL

Enter the zendto mysql password

Update /opt/zendto/config/preferences.php

define('SqlBackend', 'MySQL');
//define('SqlBackend', 'SQLite');
// Next 4 lines needed for MySQL operation
'MySQLhost' => 'localhost',
'MySQLuser' => 'zendto',
'MySQLpassword' =>
'zendpassword<',
'MySQLdb' => 'zendto',

Update /opt/zendto/config/preferences.php

'localIPSubnets'       =>  array('139.166.','152.78'),
'recaptchaPublicKey'   =>  '1111111111111111111111111111111111111111',
'recaptchaPrivateKey'  =>  '1111111111111111111111111111111111111111',
'authIMAPServer' =>  'mail.soton.ac.uk',
'authIMAPDomain' =>  'soton.ac.uk',
'defaultEmailDomain' =>  'soton.ac.uk',
'emailDomainRegexp' =>  '/^([a-zA-Z\.\-]+\.)?soton\.ac\.uk$/i',
'cookieSecret'      =>  '11111111111111111111111111111111',


Apply for a recaptcha account at http://www.google.com/recaptcha




More information about the ZendTo mailing list