how to run script online without access to PHP

Author Message

Kristoffer Raun

Monday 13 November 2006 2:16:46 pm

How can i run the script online:
updatecontentobjectname.php
and without access to usr/bin/php in shell mode?
I need to update the content object name in the classes

Thanks in advance

/Kristoffer

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

kracker (the)

Monday 13 November 2006 2:54:25 pm

Sorry, this is not recommended....

There are a number of dependent issues involved with this subject.
- It is s php-cli script which is different than stock php
- While you might be able to patch or hack the script to run,
I would not trust it as many other issues could cause it to
'timeout' and fail to complete it's task or simply catch a 'fatal' error.

<b>Reference</b>
<i>http://ez.no/community/forum/install_configuration/patch_for_systems_without_phpcli/re_patch_for_systems_without_phpcli</i>

I would urge you to seek a host which provides ssh access to the server as the best solution to reduce time exausted in search of a solution and remove this potential <b>major</b> breakdown in using and supporting an eZ publish installation.

I've been developing with eZ for just about 6 years now and I can't stress the above warning enough.

//kracker
<i>Modest Mouse - Paper Thin Walls ...</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Kristoffer Raun

Monday 13 November 2006 3:30:52 pm

Thanks a lot.

I've dealt with this problem in a "detour"-way.
By taking the whole site to my local computer, using Cli-mode and then uploading the whole thing again. I was just wondering if there was an easier way.

I'm new to all this, have been using Ez in 1 1/2 year, everything selftaught and with the help of this forum. It has been a battle, but now it's great to say "yes this is certainly possible" to your boss ;-)

by the way why does "1/2" (when using the key on the keyboard) look like ½???
Anyway i will read your link and contact my hosting for ssh.

/Kristoffer

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

kracker (the)

Monday 13 November 2006 7:01:02 pm

<b>@Kristoffer</b>
<i>
>Thanks a lot.</i>

Your welcome :)

<i>
> I've dealt with this problem in a "detour"-way.
> By taking the whole site to my local computer,
> using Cli-mode and then uploading the whole thing again.
> I was just wondering if there was an easier way.</i>

This is a very smart detour indeed!

Though doing this to a production site with uptime requirements, search stats, or other data being created within the eZ publish db when the site is live might pose serious problems of availability, loss of db data during this 'window', etc a problem to this detour dead ends it's usefulness. We each have our own marching orders, sometimes not quite the same.

Still in lower requirements arena this is just the way it's still done (sadly).

<i>
> I'm new to all this, have been using Ez in 1 1/2 year,
> everything self taught and with the help of this forum.</i>

This is great to hear 'how long' from another user who's been
hooked up on all things eZ.

<i>
> It has been a battle, but now it's great to say "yes this is certainly possible" to your boss ;-)</i>

<b>Agreed</b>

<i>
> by the way why does "1/2" (when using the key on the keyboard) look like ½???</i>

I have no idea ... I honestly did not follow the context unspoken in how this would happen. Sorry. When in doubt, file a detailed bug report in the issue tracker :\

<i>
> Anyway i will read your link and contact my hosting for ssh.</i>

Shell access, root access, dedicated server environment, co-located hardware ... these are the tools of a craftsman.

<i>Time to stop taking it all so serious ...</i>

Best wishes
//kracker

<i>Modest Mouse - Karma Payment Plan</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:22:10
Script start
Timing: Jan 31 2025 04:22:10
Module start 'layout'
Timing: Jan 31 2025 04:22:10
Module start 'content'
Timing: Jan 31 2025 04:22:10
Module end 'content'
Timing: Jan 31 2025 04:22:10
Script end

Main resources:

Total runtime0.0136 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.2578151.2266
Module start 'layout' 0.00450.0020 739.484436.6797
Module start 'content' 0.00650.0058 776.164194.1563
Module end 'content' 0.01220.0014 870.320337.9922
Script end 0.0136  908.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.1012140.0002
Check MTime0.00118.0470140.0001
Mysql Total
Database connection0.00074.922310.0007
Mysqli_queries0.001712.556630.0006
Looping result0.00000.064710.0000
Template Total0.00107.510.0010
Template load0.00085.983710.0008
Template processing0.00021.517810.0002
Override
Cache load0.00064.245610.0006
General
dbfile0.002115.305480.0003
String conversion0.00000.056040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs