Overwrite CLI
Permalink
hi,
i was wondering if there is another way to "fake" a CLI install of concrete.
i copied /controllers/install.php and changed line 317 to:
if (PHP_SAPI != 'cli' && !defined("CLI")) {
because i want to install concrete from another site using ajax.
when i change this line it works fine.
but if i could force concrete to the cli mode in my instalation script then we woudn't need a costumized version of the concrete script to install it.
canceling the redirect on line 318 in the same file would be fine to. that's the only line that needs to be skiped.
Yours sincerely,
Laurence Mommers
i was wondering if there is another way to "fake" a CLI install of concrete.
i copied /controllers/install.php and changed line 317 to:
if (PHP_SAPI != 'cli' && !defined("CLI")) {
because i want to install concrete from another site using ajax.
when i change this line it works fine.
but if i could force concrete to the cli mode in my instalation script then we woudn't need a costumized version of the concrete script to install it.
canceling the redirect on line 318 in the same file would be fine to. that's the only line that needs to be skiped.
Yours sincerely,
Laurence Mommers
I used that script and edited it a bit so i could send post variables
to it. But when apache executes that script the concrete core
redirects after it has generated the setup file because php_sapi isn't
equals to 'cli'
to it. But when apache executes that script the concrete core
redirects after it has generated the setup file because php_sapi isn't
equals to 'cli'
what I did is setup a shell file with the php code from that repo and then made a php to call that shell file.
works for me :)
works for me :)
Yes that works. I started with about the same. But i want to show the
progress to the user. I hav an script dat does this all i have to do
is write the progress to session.
progress to the user. I hav an script dat does this all i have to do
is write the progress to session.
http://www.concrete5.org/documentation/how-tos/developers/install-c...