Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd February 2008, 15:37
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default suPHP, Joomla! 1.5, file & diretory permissions

Joomla! 1.5 is officially released, so I decide to use it for my next website. Unfortunately I ran into a file & directory permission problem I also ran into using Joomla! 1.0.13. The problem has to do with suPHP and the default file & directory creation permissions of Joomla! and it first appeared when I tried to get WYSIWYG editors to work. For Joomla! 1.x the problem could be solved by changing the default creation permissions in the "Global Configration - Server" section of the Joomla! administrator back-end (thanks to Hans for the tip). Changing the default directory permissions to 0775 instead of the default 755 (and applying them to existing directories) solved the problem.

In Joomla! 1.5 that administrator section doesn't exist anymore and so I'm stuck once again. Is there an alternative Apache and/or ISPConfig way of solving this problem? I don't know if Joomla! explicitly sets permissions or uses the system default umask. If it does use the system umask however, I would like to know how to change that for my Apache + suPHP setup. I would also like to know if it's possible to have a different umask for file and directory creation.
Reply With Quote
Sponsored Links
  #2  
Old 3rd February 2008, 00:53
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default

I think, on the moment there are 2 possibilities:

1) If you use php5 as a module, you can make use of the new FTP-layer function within Joomla 1.5.
When you add the FTP-account of your web in there, problems with permissions should be solved.
This is the case on a default ISPConfig server (without suPHP).

2) You can use Joomla 1.5 with php5-cgi+suPHP but then you have to make the right permissions manually. This is the case if you use ISPConfig with suPHP enabled.

By the way, it is possible to use php5 as a module as well on an ISPConfig server with php5-cgi+suPHP, so you can make use of the new FTP-layer feature in Joomla 1.5. (If you prefer this).
For this do the following:

On the Linux shell as root:

a2enmod php5

/etc/init.d/apache2 force-reload

Within the Apache directives field of the site within ISPConfig:

suPHP_Engine off
RemoveHandler .php
php_admin_flag engine on
__________________
Hans

MrHostman | Managed Hosting

Last edited by Hans; 3rd February 2008 at 15:45.
Reply With Quote
The Following User Says Thank You to Hans For This Useful Post:
Toucan (18th March 2010)
  #3  
Old 7th February 2008, 11:38
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default

Thanks for the response Hans. For the time being, I don't see any other solution either. Disabling suPHP is not an option though, because it's exactly for sites like these, using a CSM like Joomla! or other PHP based sites, that I'm using suPHP.

Anyone else with clever alternatives?
Reply With Quote
  #4  
Old 21st February 2008, 10:41
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Thumbs up

As could have been expected, the problem has nothing to do with Joomla! itself, but with suPHP. Changing the default umask of 0077 in /etc/suphp/suphp.conf to 0022 solved the problem.
Reply With Quote
The Following 2 Users Say Thank You to pjdevries For This Useful Post:
Hans (21st February 2008), SamTzu (18th May 2008)
  #5  
Old 29th February 2008, 17:44
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default

During an ISPConfig update (version 2.2.20 and up), the /etc/suphp.conf will be overwritten.

If the umask 0022 setting within /etc/suphp is important to you, you must change the umask setting from 0077 into 0022 manually after every ISPConfig update!
__________________
Hans

MrHostman | Managed Hosting
Reply With Quote
  #6  
Old 29th February 2008, 17:53
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Thumbs up

Thanks you very much Hans. I'm going to update ISPConfig to the latest version this weekend, so your tip comes just in time.

I think it's rather careless though, that an update of ISPConfig overwrites these kind of system files, without checking, warning and/or asking for permission to do so. Without this helpful tip, I wouldn't have known this and woul probably pull out my hair out of pure agony and frustration, as soon as the permission problems started to manifest themselves once again.
Reply With Quote
  #7  
Old 13th March 2008, 14:35
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Hans,
I've been encountering this same issue. I'm quite surprised that when you install Joomla 1.5 in ISPConfig everything is 777. Isn't it a security issue?

paolo
Reply With Quote
  #8  
Old 13th March 2008, 15:18
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default

@brunus,
Do you use php5-cgi+suPHP or php5mod on your ISPConfig server?
__________________
Hans

MrHostman | Managed Hosting

Last edited by Hans; 13th March 2008 at 15:20.
Reply With Quote
  #9  
Old 16th June 2008, 00:01
bluethunder82 bluethunder82 is offline
Member
 
Join Date: Sep 2006
Posts: 92
Thanks: 0
Thanked 9 Times in 5 Posts
Default

Hi Guys,
I'm experiencing the same problem with file/directory permissions with a Joomla 1.5 install.

I installed Joomla1.5 successful and I am able to log into the system. The problem starts when I try to add a template. I get the JFTP::write message. I have traced this to being a permission problem. Therefore I am not sure if I need to move to suphp or if I can stay with the default.

I am able to use the media manager and upload pictures and remove pictures, create articles, etc. The only thing I cannot seem to do at this time is upload a template form a zip file.

The tutorial posted for Joomla/ISPConfig is only for the first version. Any thoughts would be appreciated.
Reply With Quote
  #10  
Old 16th June 2008, 00:27
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
 
Default

Please have a look here for the solution: http://www.howtoforge.com/forums/showthread.php?t=23436

Hope that the new upcoming version of ISPConfig uses the right settings for suphp as described by Vogelor.
__________________
Hans

MrHostman | Managed Hosting
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29


All times are GMT +2. The time now is 03:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.