Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2014-05-11 08:13:43

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Any Digital Ocean users?

Hi Jukka,

Just going through your suggestions this afternoon with a new droplet running Ubuntu 14.04. Apart from the server setup, I’m wondering what you use for email?

Currently, I use Gandi for domain registrations and email, Mailjet for sending business emails (for the SPF and tracking delivery of the mails) and Cloudflare for caching and DNS (unfortunately on Cloudflare one can’t install an SSL certificate without paying).

I’m looking through the Postfix tutorial and wondering about email. I have one business site for which I’d like to have pretty solid backups, security and uptime.

Any experience with Fastmail or other service? I’m quite happy with Gandi but its limited to 5GB and seems to be down every now and then.

Offline

#32 2014-05-11 09:16:11

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Any Digital Ocean users?

jstubbs wrote #280710:

Just going through your suggestions this afternoon with a new droplet running Ubuntu 14.04. Apart from the server setup, I’m wondering what you use for email?

Google Apps, and any other reputable hosted service would work too, including FastMail.

I’m looking through the Postfix tutorial and wondering about email. I have one business site for which I’d like to have pretty solid backups, security and uptime.

You just need it for MTA (sending only, from Textpattern and so). Due to stability and added maintenance burden, I don’t recommend hosting email yourself.

Offline

#33 2014-05-11 12:12:24

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Any Digital Ocean users?

Thanks Jukka, I forgot about Postfix for internal emails, will set it up.

I’ve just reached the Install LAMP stage for the droplet, and wondering about PHP modules. Seems most of them need to manually installed:

php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language
php5-common - Common files for packages built from the php5 source
php5-curl - CURL module for php5
php5-dbg - Debug symbols for PHP5
php5-dev - Files for PHP5 module development
php5-gd - GD module for php5
php5-gmp - GMP module for php5
php5-json - JSON module for php5
php5-ldap - LDAP module for php5
php5-mysql - MySQL module for php5
php5-odbc - ODBC module for php5
php5-pgsql - PostgreSQL module for php5
php5-pspell - pspell module for php5
php5-readline - Readline module for php5
php5-recode - recode module for php5
php5-snmp - SNMP module for php5
php5-sqlite - SQLite module for php5
php5-tidy - tidy module for php5
php5-xmlrpc - XML-RPC module for php5
php5-xsl - XSL module for php5
libphp5-embed - HTML-embedded scripting language (Embedded SAPI library)
php5-adodb - Extension optimising the ADOdb database abstraction library
php5-apcu - APC User Cache for PHP 5
php5-enchant - Enchant module for php5
php5-exactimage - fast image manipulation library (PHP bindings)
php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php5-gdcm - Grassroots DICOM PHP5 bindings
php5-gearman - PHP wrapper to libgearman
php5-geoip - GeoIP module for php5
php5-gnupg - wrapper around the gpgme library
php5-imagick - ImageMagick module for php5
php5-imap - IMAP module for php5
php5-interbase - interbase/firebird module for php5
php5-intl - internationalisation module for php5
php5-lasso - Library for Liberty Alliance and SAML protocols - PHP 5 bindings
php5-librdf - PHP5 language bindings for the Redland RDF library
php5-mapscript - php5-cgi module for MapServer
php5-mcrypt - MCrypt module for php5
php5-memcache - memcache extension module for PHP5
php5-memcached - memcached extension module for PHP5, uses libmemcached
php5-midgard2 - Midgard2 Content Repository - PHP5 language bindings and module
php5-ming - Ming module for php5
php5-mongo - MongoDB database driver
php5-msgpack - PHP extension for interfacing with MessagePack
php5-mysqlnd - MySQL module for php5 (Native Driver)
php5-mysqlnd-ms - MySQL replication and load balancing module for PHP
php5-oauth - OAuth 1.0 consumer and provider extension
php5-pinba - Pinba module for PHP 5
php5-ps - ps module for PHP 5
php5-radius - PECL radius module for PHP 5
php5-redis - PHP extension for interfacing with Redis
php5-remctl - PECL module for Kerberos-authenticated command execution
php5-rrd - PHP bindings to rrd tool system
php5-sasl - Cyrus SASL Extension
php5-stomp - Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP 5
php5-svn - PHP Bindings for the Subversion Revision control system
php5-sybase - Sybase / MS SQL Server module for php5
php5-tokyo-tyrant - PHP interface to Tokyo Cabinet's network interface, Tokyo Tyrant
php5-vtkgdcm - Grassroots DICOM VTK PHP bindings
php5-xcache - Fast, stable PHP opcode cacher
php5-xdebug - Xdebug Module for PHP 5
php5-xhprof - Hierarchical Profiler for PHP5

I guess they all need to be installed like so sudo apt-get install name of the module – but thought I should check with an expert first!

Offline

#34 2014-05-11 12:27:54

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Any Digital Ocean users?

jstubbs wrote #280713:

I guess they all need to be installed like so sudo apt-get install name of the module – but thought I should check with an expert first!

Yes, as outlined in the guide. Only install the stuff you need, tho. In addition to the packages installed in the guide, Textpattern requires cURL, GD and JSON extensions:

$ sudo apt-get install php5-curl php5-gd php5-json

You may also want/need php5-fpm instead of the Apache module, depending on what you are serving from the server and whether you want to run nginx instead. The Apache module in general performs faster than FastGCI, but every Apache process will require more memory, leading into higher memory usage if the server is used to serve non-PHP generated pages (i.e. flat files).

I personally also use memcached (via rah_memcached) for fast in memory caching:

$ sudo apt-get install memcached php5-memcached

Last edited by Gocom (2014-05-11 12:31:12)

Offline

#35 2014-05-11 12:52:50

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Any Digital Ocean users?

I don’t see a guide to the packages required – the tutorial talks about the list of modules and how to install them. Did I miss something?

At the moment, I’m not able to access my_ip_number/info.php (I get a 404) which is quite frustrating, I can’t check the current PHP setup.

Offline

#36 2014-05-11 14:20:11

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Any Digital Ocean users?

jstubbs wrote #280715:

I don’t see a guide to the packages required – the tutorial talks about the list of modules and how to install them. Did I miss something?

Those are packages, and you install them as any other packages. In the guide you specifically install php5, mcrypt extension and mod_php module for Apache that then loads PHP in Apache, and is responsible processing served .php files.

At the moment, I’m not able to access my_ip_number/info.php (I get a 404) which is quite frustrating, I can’t check the current PHP setup.

If you get 404, then the server is responding properly, but file requested does not exist. Checking PHP configuration doesn’t involve Apache or creating files, tho. E.g.

$ php -i

Offline

#37 2014-05-18 10:28:37

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Any Digital Ocean users?

Jukka, I’ve got 2 droplets right now, one which is running on root with LAMP on Ubuntu 12.04, the other is running the latest Ubuntu 14.04. I’m struggling a bit with the latter droplet while I work (slowly as time permits) with your initial setup guidelines.

For the meantime, I need to be able to get permissions setup for the main root droplet so that Textpattern can do its thing in the Images tab, specifically with the smd_thumbnail plugin. Temporarily, the images, files and textpattern/tmp folders have been set to 777, but I see that the images themselves are chmod 775 and smd_thumbnail doesn’t work properly – thumbnail creation runs into permissions problems.

You mentioned the following:

$ usermod -a -G www-data someuser
$ chgrp -r www-data /path/to/server/document/root
$ chmod g+s /path/to/server/document/root

For a root user, should that be:

$ usermod -a -G www-data root
$ chgrp -r www-data /var/www/domain.com/public_html
$ chmod g+s /var/www/domain.com/public_html

I’m a bit nervous with permissions, so any help is appreciated. For the second and virgin droplet setup, I may have more questions later as it is a bit hard to get it all working as easily as a LAMP Ubuntu 12.04 application image.

Offline

#38 2014-05-23 17:11:19

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,260
Website Mastodon

Re: Any Digital Ocean users?

After thrashing about in the Ocean i have headed for dry land. I’ll go for a bike ride instead


…. texted postive

Offline

#39 2014-07-17 21:23:53

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Any Digital Ocean users?

I setup a Droplet a few months ago to play around with Ghost but found it kind of boring. A couple of weeks ago I needed someplace to put a ThinkUp install (it was timing out on Dreamhost) and ended up redoing the server and just tossing WordPress on it since I was following the LAMP Guide.

So this afternoon I decided to resurrect CMSStyles – last seen on TextDrive – and setup a new Droplet. This time I went with the Ubuntu 14.04 with LAMP Image and everything worked great for the most part (the guide is out of data over the fact that Apache now uses /var/www/html/ instead of /var/www/ by default) and I logged in and was ready to do some serious blogging when I ran into:

Upgrade PHP to 5.5 – Internal error preg_replace(): The /e modifier

So now I am trying to decide: Do i figure out how to downgrade back to an earlier PHP or do I install a Nightly? Anyone have any thoughts?

Offline

#40 2014-07-18 05:46:19

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,740
GitHub

Re: Any Digital Ocean users?

michaelkpate wrote #282246:

Do i figure out how to downgrade back to an earlier PHP or do I install a Nightly?

Drop in the latest classTextile.php from Subversion and it should fix the preg_replace() error – no need to switch to a dev/nightly or downgrade PHP.

Last edited by gaekwad (2014-07-18 05:46:32)

Offline

#41 2014-07-18 14:51:37

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Any Digital Ocean users?

gaekwad wrote #282265:

Drop in the latest classTextile.php from Subversion and it should fix the preg_replace() error – no need to switch to a dev/nightly or downgrade PHP.

That did indeed fix it. I should have thought of that sooner.

Offline

#42 2014-07-23 20:44:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Any Digital Ocean users?

gaekwad wrote #282265:

Drop in the latest classTextile.php from Subversion and it should fix the preg_replace() error – no need to switch to a dev/nightly or downgrade PHP.

That PHP-Textile version is not backwards compatible with the one that is used in 4.5.x; that’s the one used in the current dev branch and will cause bugs if dropped into Textpattern 4.5 installation. Instead, you should get PHP-Textile v2.4.3 that is also included in the upcoming Textpattern 4.5 patch.

Offline

#43 2014-07-23 20:46:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,740
GitHub

Re: Any Digital Ocean users?

Gocom wrote #282398:

That PHP-Textile version is not backwards compatible with the one that is used in 4.5.x; that’s the one used in the current dev branch and will cause bugs if dropped into Textpattern 4.5 installation.

Thanks for the clarification, Jukka – appreciated.

Offline

#44 2014-07-24 01:32:49

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Any Digital Ocean users?

Gocom wrote #282398:

That PHP-Textile version is not backwards compatible with the one that is used in 4.5.x; that’s the one used in the current dev branch and will cause bugs if dropped into Textpattern 4.5 installation. Instead, you should get PHP-Textile v2.4.3 that is also included in the upcoming Textpattern 4.5 patch.

I actually didn’t get it from Subversion – I just downloaded a nightly. Not sure if that makes a difference or not.

Offline

#45 2014-07-24 05:59:40

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Any Digital Ocean users?

michaelkpate wrote #282407:

I actually didn’t get it from Subversion – I just downloaded a nightly. Not sure if that makes a difference or not.

Still the same incompatible PHP-Textile version.

Offline

Board footer

Powered by FluxBB