Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,091
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,259
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,259
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

#46 2014-07-24 13:23:30

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

Re: Any Digital Ocean users?

Gocom wrote #282423:

Still the same incompatible PHP-Textile version.

Interesting, then, because I haven’t seen any errors since. Just lucky, I guess.

Offline

#47 2014-07-24 21:05:40

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

Re: Any Digital Ocean users?

michaelkpate wrote #282432:

Interesting, then, because I haven’t seen any errors since. Just lucky, I guess.

You should just use the older legacy version. The API simply isn’t compatible and it will generate wrong HTML in certain cases; one of them being the fact that it has no clue where relative images are, since that PHP-Textile version doesn’t contain Textpattern specific code and would require an implementation wrapper.

Offline

#48 2015-11-26 23:42:18

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Any Digital Ocean users?

So question for DigitalOcean users… do you use this hosting for Live websites or just for Development work?

Is the learning curve hard? Can you install (within reason) anything you like on the server, such as PageSpeed Module (not checked requirements, just wondering if you have this freedom)

Thanks

Offline

Board footer

Powered by FluxBB