Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Softaculous assigns permissions of 0777 even if server is using suphp

1


Threaded Mode | Print  

 Softaculous assigns permissions of 0777 even if server is using suphp, this is causing errors in the site (18 Replies, Read 18667 times)
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
I notice that when i install a script, e.g. wordpress, from softaculous, the permissions of all files and directories are set to 0777. My server is using suphp and suexec and this is causing errors. What is the resolution for this problem?

Softaculous should never assign permissions of 0777 because not all servers are configured in that way.
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Just to add, though this is isnt generating any internal 500 errors, it is giving problems for some plugins. Example is plugin ozh-admin-drop-down-menu

If I make an install using FTP or Fantastico, and upload this plugin and activate, it is behaving correctly

But when i do installation using Softaculous, it's messing up my wp admin area. The only think I can attribute is the permissions of wp-content folder being in 0777 and this is a big no-no for servers running in suphp. You gotta find a solution for this.

I tried to manually change the permissions of wp-content and plugins folder to 755 and the plugin behaved correctly again.

So as you can see, this is clearly an issue with Softaculous assigning permissions 0777 by default. Everybody knows that suphp dislikes 0777
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Softaculous uses the following code to detect suphp :
PHP Code

 //Is suPHP installed ?
$apache_modules = (function_exists('apache_get_modules') ? apache_get_modules() : '');
if(
is_array($apache_modules)){
    foreach(
$apache_modules as $av){
        if(
strtolower($av) == 'mod_suphp'){
            
$globals['odc'] = 0755;//Octal Directory CHMOD
            
$globals['sdc'] = '0755';//String Directory CHMOD
            
$globals['ofc'] = 0755;//Octal File CHMOD
            
$globals['sfc'] = '0755';//String File CHMOD
        
}
    }



It will detect it if its running as an Apache module as per PHP. Are you using CGI ?

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Quote From : alons August 21, 2009, 3:36 pm
Softaculous uses the following code to detect suphp :
PHP Code

 //Is suPHP installed ?
$apache_modules = (function_exists('apache_get_modules') ? apache_get_modules() : '');
if(
is_array($apache_modules)){
    foreach(
$apache_modules as $av){
        if(
strtolower($av) == 'mod_suphp'){
            
$globals['odc'] = 0755;//Octal Directory CHMOD
            
$globals['sdc'] = '0755';//String Directory CHMOD
            
$globals['ofc'] = 0755;//Octal File CHMOD
            
$globals['sfc'] = '0755';//String File CHMOD
        
}
    }



It will detect it if its running as an Apache module as per PHP. Are you using CGI ?


Well for some reason it seems not working. I am executing PHP as suphp and using php 5.2.10 version. Im using suexec too. But when I installed Wordpress, it still chmod the directories to 0777


Edited by gieathome : August 22, 2009, 1:57 am
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
I did try installing but again but softaculous makes the entire wp-content directory (including all files and subdirectories) to 0777. That's the only directory that softaculous is setting to 0777. i don't know why
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
So any fix for this problem?

I cannot start using softaculous if this will not be fixed. Otherwise I will be getting too much support tickets on plugins not working because of this problem of setting permissions to 0777 for the entire wp-content folder
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
uhmm.. no update or no fix on this problem? I really need the fix badly :(
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Can softaculous dev team find a solution for this? I cannot use this script for my servers running in suphp because of this problem. I hope you will resolve this. I cannot even correct the code because they are encoded
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
I am sorry for the late reply.
Softaculous 2.0 will have a manual override for this.

For a quick fix can you can open globals.php in your softaculous and edit 0777 to 0755
This will do the trick!

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Is this fixed now? So say when I update my softaculous or install a new one, this issue has been corrected already?
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Please use the attached globals.php and replace it in your Softaculous installation
2.0 has the manual override as mentioned.

Regards,
Alons

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Quote From : alons August 28, 2009, 2:23 pm
Please use the attached globals.php and replace it in your Softaculous installation
2.0 has the manual override as mentioned.

Regards,
Alons


Okay so in version 2.0 this has already been fixed without me having to change globals.php file? If yes, when are you going to release version 2.0 so I can upgrade?
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Version 2.0 will be out soon.
We are working day and night on it.
In the mean time please apply the patch.

There is absolutely no harm if you apply the above file.

Regards,
Alons

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
gieathome
Group: Member
Post Group: Working Member
Posts: 160
Status:
Now that version 2 is already available, i tried to do a wordpress install on another server with version 2. But it still puts permission 777 to wp-content directory!

I thought you will include the fix in version 2??

Softaculous has so many bugs unfortunately :( And it looks like you did not test new version comprehensively to servers running in suphp and suexec
IP: --   

Softaculous assigns permissions of 0777 even if server is using suphp
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Quote From : gieathome September 13, 2009, 12:33 am
Now that version 2 is already available, i tried to do a wordpress install on another server with version 2. But it still puts permission 777 to wp-content directory!

I thought you will include the fix in version 2??

Softaculous has so many bugs unfortunately :( And it looks like you did not test new version comprehensively to servers running in suphp and suexec


We have provided the alternative.
Just go to Your Softaculous Admin Panel -> Settings
There you will see Files and Folder Permissions to be assigned.
Leave blank for automatic detection or put 0755 for suPHP and suEXEC

We had to give this alternative as all environments dont show / allow detection of certain components. Hence the Admin just needs to specify the file & folder permissions once in case automatic detection is failing in your environment.

Also we test each software and Softaculous several times before the release of any version.

Regards,
Alons

Edited by alons : September 13, 2009, 5:19 am

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 26, 2024, 1:04 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.027