Page 2 of 3

Re: Running bash script post install?

Posted: Thu Sep 01, 2011 11:26 am
by darryl
Thanks a lot Phil, hopeful for a fix :)

Re: Running bash script post install?

Posted: Thu Sep 01, 2011 9:57 pm
by Phil
Hi,

Quick update:

We didn't get to this today. Expect an update tomorrow (Friday).

Thanks,
Phil.

Re: Running bash script post install?

Posted: Fri Sep 02, 2011 5:46 am
by darryl
Thanks for the update, hopefully there will be time to check this today :)

Re: Running bash script post install?

Posted: Fri Sep 02, 2011 10:56 am
by Phil
Hello,

This is now fixed in the latest 7.0 edge build. To update:

Code: Select all

/usr/local/installatron/repair -f --edge
If there are any questions let us know.

Thanks,
Phil.

Re: Running bash script post install?

Posted: Mon Sep 05, 2011 10:26 am
by darryl
Just wanted to say thanks for this update, all working correctly now :)

Re: Running bash script post install?

Posted: Tue Sep 06, 2011 10:02 am
by darryl
Hi, further to this I seem to be having some trouble setting a directory to 777 permissions, this is the code that I am using

Code: Select all

<?php
class i_installer_customcode
{
	function init()
	{
$this->registerCustomCode("drupal", "all", "install", 3, "process", "drupalinstall");
	}
	function drupalinstall($o)
	{
$o->chmod("./",0555,0755,true);
$o->chmod("sites/default/files/",0777);
	}
}
?>
The maximum permissions it seems to set is 755 though, I've tried a few variations of the code which didn't help either:

Code: Select all

$o->chmod("sites/default/files/",0777,0777,true);

Code: Select all

$o->chmod("./sites/default/files/",0777);

Re: Running bash script post install?

Posted: Thu Sep 08, 2011 6:21 am
by darryl
*bump*

Re: Running bash script post install?

Posted: Fri Sep 09, 2011 10:19 am
by darryl
Really quite desperate for an answer to this please :|

Re: Running bash script post install?

Posted: Wed Sep 14, 2011 6:29 pm
by Josh
Hello,

SuPHP is the most likely culprit. Under SuPHP, 0777 is transformed into 0755 to adhere to SuPHP requirements.

If you still want to use 0777, try using the regular PHP chmod function:

Code: Select all

chmod($this->path."/sites/default/files", 0777);
Let us know if that helps.

Thanks,
Josh

Re: Running bash script post install?

Posted: Thu Sep 15, 2011 8:07 am
by darryl
Hi,

I tried the following 2 versions as I wasn't sure which was correct:

Code: Select all

$o->chmod("./",0555,0755,true);
$o->chmod($this->path."/sites/default/files", 0777);

Code: Select all

$o->chmod("./",0555,0755,true);
chmod($this->path."/sites/default/files", 0777);
Both of these resulted in Installatron giving the following error message during Drupal install, and neither of them changed the permissions:

Code: Select all

Installing: A fatal error has occurred.
Please let me know if you have any other ideas, I need to get this sorted urgently, thanks.