Loading...
 

Tikiwiki-devel (mailman list mirror)


Another composer problem: old php version default on managed server

posts: 1544

Hi devs,

on one server of the provider 1und1.de (German 1&1) I have the problem
that they on whatever reason keep php 4.x as default in the shell
(managed servers there offer more or less basic shell access).

This means, that default use of composer after svn checkout or up is
impossible.

They have different (higher) php versions available aswell and it shall
possible, to use for example "...$ php5 somecommand" instead of "...$
php somecommand" to run commands under php5 (in the shell). Our document
root / public html stuff runs on php5.5 anyway, so it is a specific
shell problem.

With another provider (all-inkl.com) I have a similar problem, but they
have php5.3, which is the mnimum requirement of composer. So with
all-inkl.com I only need to edit the requirements in setup.sh from 55 to
53 and it runs smoothly.

With 1und1.de I would have to tell the composer script somehow to use
explicitely 5.5 instead of the default or I need to tell the composer
script that 5.5 is available and how to use it.

Was anybody in the list facing similar problems or has a solution for
such server setups?

Thx for feedback,
Torsten

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
TikiWiki-devel mailing list
TikiWiki-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

posts: 126226 United Kingdom

Hi Torsten

Yes, this was also what the problem on demo/trunk was for the past few months.

If someone who knows bash scripting can add a parameter to setup.sh for the php executable, and fill the variable $\{PHPCLI\} with it then everything should work on these cases - using for example:

sh setup.sh phpcli=/usr/bin/php56

jb




> On 17 Jan 2016, at 19:00, Torsten Fabricius <torsten@tiki.org> wrote:
>
> Hi devs,
>
> on one server of the provider 1und1.de (German 1&1) I have the problem
> that they on whatever reason keep php 4.x as default in the shell
> (managed servers there offer more or less basic shell access).
>
> This means, that default use of composer after svn checkout or up is
> impossible.
>
> They have different (higher) php versions available aswell and it shall
> possible, to use for example "...$ php5 somecommand" instead of "...$
> php somecommand" to run commands under php5 (in the shell). Our document
> root / public html stuff runs on php5.5 anyway, so it is a specific
> shell problem.
>
> With another provider (all-inkl.com) I have a similar problem, but they
> have php5.3, which is the mnimum requirement of composer. So with
> all-inkl.com I only need to edit the requirements in setup.sh from 55 to
> 53 and it runs smoothly.
>
> With 1und1.de I would have to tell the composer script somehow to use
> explicitely 5.5 instead of the default or I need to tell the composer
> script that 5.5 is available and how to use it.
>
> Was anybody in the list facing similar problems or has a solution for
> such server setups?
>
> Thx for feedback,
> Torsten
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> ___
> TikiWiki-devel mailing list
> TikiWiki-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
TikiWiki-devel mailing list
TikiWiki-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

posts: 828 United Kingdom

Hi Torsten

I've lived with this problem for ages so I just run a daily cronjob with the
following script:

  1. svn script for xxxx test site

export PATH=/usr/local/php55/bin/:$PATH
cd /home/yyyyyyy/xxxxxxx.com; sh doc/devtools/svnup.sh

This may not be a 'great' way of doing but it works for me - but the path to
your php55 or whatever may be something different however

Cheers

g


-----Original Message-----
From: Jonny Bradley mailto:jonny@tiki.org # svn script for opendev2 test
site
export PATH=/usr/local/php55/bin/:$PATH
cd /home/esdevpsadmin/opendev2.enmoreservices.com; sh doc/devtools/svnup.sh
Sent: 17 January 2016 19:47
To: Tiki developers <tikiwiki-devel@lists.sourceforge.net>
Subject: Re: Tiki-devel Another composer problem: old php version default
on managed server

Hi Torsten

Yes, this was also what the problem on demo/trunk was for the past few
months.

If someone who knows bash scripting can add a parameter to setup.sh for the
php executable, and fill the variable $\{PHPCLI\} with it then everything
should work on these cases - using for example:

sh setup.sh phpcli=/usr/bin/php56

jb




> On 17 Jan 2016, at 19:00, Torsten Fabricius <torsten@tiki.org> wrote:
>
> Hi devs,
>
> on one server of the provider 1und1.de (German 1&1) I have the problem
> that they on whatever reason keep php 4.x as default in the shell
> (managed servers there offer more or less basic shell access).
>
> This means, that default use of composer after svn checkout or up is
> impossible.
>
> They have different (higher) php versions available aswell and it
> shall possible, to use for example "...$ php5 somecommand" instead of
> "...$ php somecommand" to run commands under php5 (in the shell). Our
> document root / public html stuff runs on php5.5 anyway, so it is a
> specific shell problem.
>
> With another provider (all-inkl.com) I have a similar problem, but
> they have php5.3, which is the mnimum requirement of composer. So with
> all-inkl.com I only need to edit the requirements in setup.sh from 55
> to
> 53 and it runs smoothly.
>
> With 1und1.de I would have to tell the composer script somehow to use
> explicitely 5.5 instead of the default or I need to tell the composer
> script that 5.5 is available and how to use it.
>
> Was anybody in the list facing similar problems or has a solution for
> such server setups?
>
> Thx for feedback,
> Torsten
>
> ----------------------------------------------------------------------
> --------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> ___
> TikiWiki-devel mailing list
> TikiWiki-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>


----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM +
Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor
end-to-end web transactions and take corrective actions now Troubleshoot
faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
TikiWiki-devel mailing list
TikiWiki-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7294 / Virus Database: 4489/11420 - Release Date: 01/17/16



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7294 / Virus Database: 4489/11425 - Release Date: 01/17/16


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
TikiWiki-devel mailing list
TikiWiki-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.