Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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
Offline
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
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
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