RaposoHUB.ca

Archive for July, 2012

Gallery3 Install on SME 8

by on Jul.11, 2012, under SME Server

Description

Gallery is an open source project with the goal to develop and support leading photo sharing web application solutions.

Tested with:

  • Gallery 3.04
  • SME 8

Prerequisites

You need to define the following name/user/password:

  • gallery name for ibay: <gallery_ibay_name>
  • gallery name for mysql database: <gallery_db_name>
  • gallery username for mysql: <gallery_mysql_user>
  • password for <gallery_mysql_user>: <password>

Access rights to a shell with root

Image plugins

Install ImageMagic

yum install ImageMagick

Install ffmpeg

Add the ATrpms repository to the yum configuration

/sbin/e-smith/db yum_repositories set atrpms repository 
Name 'atrpms stable - EL5' 
BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' 
EnableGroups no 
GPGCheck yes 
GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms 
Visible no 
Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,
perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,
libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,
librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,
libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,
gd,perl-TimeDate,librpm4.4 
status disabled

 

Important.png Note:
At the moment from editing the modules “libtheoraenc1” and “libtheoradec1” where not found in the stable repository and thereby we also need the ATrpms – testing repository.

 

/sbin/e-smith/db yum_repositories set atrpms-testing repository 
Name 'atrpms testing - EL5' 
BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/testing' 
EnableGroups no 
GPGCheck yes 
GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms 
Visible no 
Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,
perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,
libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,
librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,
libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,
gd,perl-TimeDate,librpm4.4 
status disabled

Make sure the configuration files on your server are up-to-date.

signal-event yum-modify

Install ffmpeg.

yum --enablerepo=atrpms-testing install libtheoraenc1 libtheoradec1 libogg libogg0
yum --enablerepo=atrpms install ffmpeg

Ibay

Create ibay

Create a ibay for gallery through server-manager and after that issue the following commands on the server’s shell:

mkdir /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
chmod 755 /home/e-smith/files/ibays/<gallery_ibay_name>/html/var

Set PHPBaseDir

db accounts setprop <gallery_ibay_name> PHPBaseDir /home/e-smith/files/ibays/<gallery_ibay_name>:/tmp:/usr/bin
signal-event ibay-modify <gallery_ibay_name>

Create mysql database

mysqladmin create <gallery_db_name>
mysql -e "GRANT ALL ON <gallery_db_name>.* TO <gallery_mysql_user>@localhost IDENTIFIED BY '<password>'"

Gallery files

Download the latest version from Gallery

For version 3.0.4

wget http://downloads.sourceforge.net/gallery/gallery-3.0.4.zip
unzip gallery-3.0.4.zip

Copy the files/directories from the gallery3 into the ibay’s html directory

cd gallery3
cp -r * /home/e-smith/files/ibays/<gallery_ibay_name>/html/

Remove original SME index.html file in de ibay

rm /home/e-smith/files/ibays/<gallery_ibay_name>/html/index.html

Set all file to user www

chown -R www:www /home/e-smith/files/ibays/<gallery_ibay_name>/html/*

Change memory limits

Below commands will set the required settings for PHP to support running Gallery3.

db configuration setprop php MemoryLimit 128M
db configuration setprop php PostMaxSize 112M
db configuration setprop php UploadMaxFilesize 96M

expand-template /etc/php.ini 
sv t httpd-e-smith

I also needed to do a yum install pcre to get the next step to work /browsem

Start gallery

Initial values

Go to <mysite>/<gallery_ibay_name> and fill in all the variables that you have used

Change Graphics settings

Go to “admin” –> “settings” –> “Graphics” and select “ImageMagick”

Uninstall

Delete the content of the ibay (you wll also loose all uploaded content) and delete the ibay through server-manager

mysqladmin drop <gallery_db_name>
mysqladmin drop user <gallery_mysql_user>@localhost

Additional information

Leave a Comment :, more...

WP Mail SMTP

by on Jul.08, 2012, under Email, Wordpress

This plugin reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page that allows you to specify various options.

You can set the following options:

  • Specify the from name and email address for outgoing email.
  • Choose to send mail by SMTP or PHP’s mail() function.
  • Specify an SMTP host (defaults to localhost).
  • Specify an SMTP port (defaults to 25).
  • Choose SSL / TLS encryption (not the same as STARTTLS).
  • Choose to use SMTP authentication or not (defaults to not).
  • Specify an SMTP username and password.

 

Original Post:

Leave a Comment :, more...

Configure SMTP

by on Jul.08, 2012, under Email, Wordpress

Configure SMTP mailing in WordPress, including support for sending e-mail via SSL/TLS (such as GMail).

This plugin is the renamed, rewritten, and updated version of the wpPHPMailer plugin.

Use this plugin to customize the SMTP mailing system used by default by WordPress to handle outgoing e-mails. It offers you the ability to specify:

  • SMTP host name
  • SMTP port number
  • If SMTPAuth (authentication) should be used.
  • SMTP username
  • SMTP password
  • If the SMTP connection needs to occur over ssl or tls

In addition, you can instead indicate that you wish to use GMail to handle outgoing e-mail, in which case the above settings are automatically configured to values appropriate for GMail, though you’ll need to specify your GMail e-mail (including the “@gmail.com”) and password.

Regardless of whether SMTP is enabled, the plugin provides you the ability to define the name and e-mail of the ‘From:’ field for all outgoing e-mails.

A simple test button is also available that allows you to send a test e-mail to yourself to check if sending e-mail has been properly configured for your blog.

original post: 

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...