Share » Forums » Install & configuration » SSH Requirement

SSH Requirement

SSH Requirement

Monday 26 May 2008 9:05:53 pm - 8 replies

Author Message

Maxime Thomas

Monday 26 May 2008 11:52:40 pm

Hi Tim,

I believe that SSH is a kind of freedom that you won't do without it once you have tasted it.
It has a real singification if you get root access on the host :
- you can change the apache settings
- you can clear the cache in command line
- you can change the rights on some files

It represents no intersests to get a ssh access to a host you can't choose what packages are installed in.

It is still my opinion. :-D

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Tim Dickinson

Tuesday 27 May 2008 6:50:50 am

Thanks for the reply,

I agree that it adds an ease to doing things, but these sites are not being actively developed but more content being continually added so I don't need to do this stuff that often.

I have CPanel as a control panel, and can use cron jobs - any way I can run the PHP scripts through this (ie. set them 2 minutes into the future to run etc)?

The question is though - is SSH access a requirement for installing/running/upgrading an eZpublish site, or just a luxury that saves time and makes life easier?

Thanks

-Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Björn Dieding@xrow.de

Tuesday 27 May 2008 8:06:45 am

> is SSH access still a requirement of running/upgrading/installing eZpublish?

yes it is.

> Are there any work arounds?

Yes there are if you only have little data, but they are to costy to maintain. You would need to hack eZScript. This is not recommended at all. I would rather say there is not a workaround.

Recommendation:
Move to a host with SSH.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Gaetano Giunta

Tuesday 27 May 2008 2:07:36 pm

Hey, that might make an interesting feature request.
Or a nice extension. Maybe it even exists already?

Worst-case scenario is hard-to-solve chicken-and-egg situations, but for general usage, we could say that if user has access to cron, he can do it:
- minor (?) hacks to ezscript so that it can be run from "within" runcronjobs
- add a table used to hold scripts to be run
- add admin interface to fill the table
- schedule at 'frequent' the cronjob that goes read that table, executes the scripts and removes them from the table
Not really realtime, but it could be good for most of the long tasks that need to be started via cli...

Principal Consultant International Business
Member of the Community Project Board

Piotrek Karaś

Tuesday 27 May 2008 8:30:47 pm

One (freebsd-based) hosting platform that we use to host small-scaled projects:
a) has no CLI
b) has script-like CRON (read: PHP-based, with all the PHP restrictions, ie.: timeouts...)

When we stood the first steps with eZ, it was very challenging. Luckily, PHP's system() function makes it possible to perform all the basic maintenance tasks and also we were able to make CRON run, anyways.

Still, this is far from perfect, especially when one knows the freedom and security that CLI gives.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Maxime Thomas

Tuesday 27 May 2008 11:14:33 pm

Hi Gaetano,

I'm interested on your extension idea but I've got a kind of block with the concept of merging contexts : you would like to set or run commands that have to be executed in command line via a web interface ? So, how do you manage return on errors ?
Another point, if you go further, you lay implement the cron run on demand, by just clicking the button in the back office. But, if the cron spends so much time that it reachs the timeout limit, what happends ? We loose the control of the php script ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Gaetano Giunta

Wednesday 28 May 2008 12:59:47 am

What I was thinking about is more or less like this: runcronjobs.php is not actually invoked directly by the ui. Just a new task added to the list of stuff to be executed on the next cron run. When the cron job is run (by the system scheduler), runcronjobs.php runs the php code (we can call it "taskrunner") that will fetch the task and execute it.

There is little problem with timeouts, as the runcronjobs script already allows himself 24h to run. Otoh it is mutex-protected, which means only a runcronjobs script can be running at a time. If you have a very long executing task, the standard tasks executed by the frequent cronjob might be delayed.

About error/output reporting: the taskrunner code can set a flag in the task table so that currently executing tasks can be identified as such. Then, when the task terminates, the task output is also added to the table.

Using the 'system' php call this can be done in a very easy way, but I wonder if in some hosting environments system is disabled. Otherwise php output buffering is your friend

Principal Consultant International Business
Member of the Community Project Board

Maxime Thomas

Thursday 29 May 2008 12:18:19 am

I was thinking to another thing too, is it possible to make a daemon in php ? It can be solution for long processes that have to be run in background...
With a gui to monitor it...

I'm dreaming :-D

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu