WordPress MU in Softaculous https://www.softaculous.com/board/index.php?tid=265 <![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=2#p1964
Sir you have a good knowledge of the Process.
And you are right on the problems you have pointed.

Please read some points I make as follows:
1) You are right on the Direct Admin bug and we have provided a solution for it in 2.3
When the CRON is run it will update the ROOT Folders to the user 'admin' . This will remove the Upgrade failures from the Admin Panel.

There is no Security Threat if the CRON runs as ROOT. Some aspects require ROOT Privilieges as well.

2.3 is scheduled for release in this week.

If you want any further clarifications i would be glad to help.

Regards,
Alons]]>
Mon, 30 Nov 2009 15:14:58 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=2#p1964
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=2#p1963 There are threads in this forum that some scripts can not be updated/upgraded.

Lets look a bit closer in to the chain of the events -
Scenario 1:
  1. Cron job is being fired as root.
  2. Cron downloads a script.
  3. For some reason will not populate (unzip) in the /var/softaculous directory
  4. Cron job sends a failure report to the administrator.
  5. Admin logs in and tries to update the script.
  6. Update will fail as there is a zipped script already owned by root and can not be overwritten by the admin user.
Scenario 2:
  1. Cron job is being fired as root.
  2. Cron downloads a script.
  3. Cron populates (unzip) a sript in the /var/softaculous directory
  4. Cron job sends a success report to the administrator.
  5. Admin logs in and tries to apply a new update latter on for the same script but never version.
  6. Update will fail as the target directory is owned by root and can not be overwritten by the admin user.


As a precautionary measure I wrapped cron job to do the following:
1. Remove exiting zip files from /var/softaculous
2. Change ownership permissions on all directories and files to the admin user inside the /var/softaculous directory.

Hope this helps.

]]>
Mon, 30 Nov 2009 14:59:08 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=2#p1963
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1958
All plugins run CRON as root.
Its required as all the folders are either owned by ROOT or admin.
The ownership varies as per various panels.
Its root in cPanel and admin in Direct Admin and so on.

Sir if you think that CRON should run as a different user then please suggest which user should it run as ?

Regards,
Alons
]]>
Mon, 30 Nov 2009 13:16:57 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1958
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1957
Quote From : alons November 30, 2009, 10:34 am
A root user can write to any directory.
Hence the CRON is run as root.

Regards,
Alons


Permissions basics - do the exercise:

1. Execute something as root.
2. Use the result as executable and execute as another user (unless it is recommended to run everything as root user as security prerequisite for Softaculous plugin)

If you can not see a problem here with Softaculous cron then I'm giving up.

Good luck with it anyway.

]]>
Mon, 30 Nov 2009 11:16:53 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1957
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1956 Hence the CRON is run as root.

Regards,
Alons]]>
Mon, 30 Nov 2009 10:34:45 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1956
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1955 Cron job is being executed as the root user. Downloaded fie like openx.zip will have root.root ownership. /admin/cron.php is "IonCubbed" (Softaculous paranoia) and this is only my wild guess that it is executed as your admin user. Since downloaded file is locked to root...
I had to delete stalled zip files from /var/softaculous and execute update from within the plugin's administration panel.

Hope this helps.

]]>
Mon, 30 Nov 2009 08:48:52 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1955
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1884
Which panel are you using ?
We can solve the issue for you sir. Please contact Support.

Regards,
Alons]]>
Thu, 26 Nov 2009 10:19:59 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1884
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1883
The following software were updated during Automatic Cron Updates:

Geeklog 1.6.1 - Successful

phpBB 3.0.6 - Failed

TikiWiki 4.0 - Failed

OpenX 2.8.2 - Failed

WordPress MU 2.8.6 - Failed

so Geeklog worked - rest didn't:

phpBB

Versions dont match.....Needs Update

Deleting previous files......

Fetching Latest File......Saved the Latest File

Unzipping the files......Error unzipping......Continuing



TikiWiki

Versions dont match.....Needs Update

Deleting previous files......

Fetching Latest File......Saved the Latest File

Unzipping the files......Error unzipping......Continuing



OpenX

Versions dont match.....Needs Update

Deleting previous files......

Fetching Latest File......Saved the Latest File

Unzipping the files......Error unzipping......Continuing

WordPress MU

Software not found.....Needs Update

Deleting previous files......

Fetching Latest File......Saved the Latest File

Unzipping the files......Error unzipping......Continuing



From Softaculous Cron Jobs
]]>
Thu, 26 Nov 2009 09:05:50 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1883
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1882
The following software were updated during Automatic Cron Updates:
Crafty Syntax 2.16.8 - Successful
WordPress MU 2.8.6 - Failed

......
WordPress MU
Versions dont match.....Needs Update
Deleting previous files......
Fetching Latest File......Saved the Latest File
Unzipping the files......Error unzipping......Continuing

From Softaculous Cron Jobs ]]>
Wed, 25 Nov 2009 12:18:12 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1882
<![CDATA[WordPress MU in Softaculous]]> https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1881
Quote From : ozace November 25, 2009, 8:17 am
Hi,
I am also getting the failure to unzip error:

WordPress MU
Versions dont match.....Needs Update
Deleting previous files......
Fetching Latest File......Saved the Latest File
Unzipping the files......Error unzipping......Continuing

?

Jim


Sir its working and we have tested it 3 times on different servers.
Please try again or contact support and they will do it for you.]]>
Wed, 25 Nov 2009 11:16:28 GMT https://www.softaculous.com/board/index.php?tid=265&tpg=1#p1881