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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd April 2009, 16:29
mgibson mgibson is offline
Junior Member
 
Join Date: Apr 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Make all website directories writable (by default)

Hi,

Is there a way to make all site directories writable by default instead of chmod 777 everytime?

My scenario is - joomla.

- A new domain, ftp user & mysql db will be created through ISPConfig3
- Joomla is uploaded via ftp to the /web folder.
- The Joomla setup is ran, and cannot write a configuration file in the root directory (/web).

Can this be done?

Thanks,

Mark.
Reply With Quote
Sponsored Links
  #2  
Old 22nd April 2009, 16:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

The directory permissions are all fine, there is no need to set them to 777. You just used the wrong php type. For joomla you will have to use either suphp or php-fcgi + suexec so that the php scripts run under the correct admin user of the website user instead of the apache user.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd April 2009, 17:01
mgibson mgibson is offline
Junior Member
 
Join Date: Apr 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought it might be something silly but couldn't figure this out.

thanks

mark.
Reply With Quote
  #4  
Old 22nd April 2009, 23:20
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Simple cron-job could do the trick, but messing around with world-writable rights by a knitwit admin was once the cause I managed to get myself root-rights to get my email going again.
Even world-readable is basically dangerous on a shared server. Database passwords in config files from other users are very interesting and very difficult to prevent (without suPHP, suEXEC, basedirs, safepaths, no CGI, no shell, etc, etc, etc, etc).

Paul
Reply With Quote
  #5  
Old 3rd June 2009, 00:35
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by till View Post
The directory permissions are all fine, there is no need to set them to 777. You just used the wrong php type. For joomla you will have to use either suphp or php-fcgi + suexec so that the php scripts run under the correct admin user of the website user instead of the apache user.
@ Till,

Actually really stupid but I want to be sure I understand.

For each website select fast - CGI and put a tick in SuEXEC box.

And for your information: Finally I got my FTP- SMTP and WEB server up and running.
I did not give up and succeeded ( there are a few minnor issues )

Thanks for ISPConfig !
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #6  
Old 3rd June 2009, 21:22
SamTzu SamTzu is online now
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 430
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default File/Folder permissions

I have noticed some issues with file/folder permissions on Joomla.
After migrating sites to ISPConfig3 some sites suffer from permissions issues.
New pictures on Virtuemart get incorrect file permissions etc.

umask 0022 is correct so what could cause this?
I'm using CGI, SSI, suEXEC and suPHP on Joomla sites.

Any suggestions?


Sam
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #7  
Old 3rd June 2009, 22:50
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

@ Samtzu

Just like you I am struggling with this.
Tried all kinds of php ( fast-cgi, suphp, mod-php ) and so far did not find a combination that works.
On the other hand I also tried chown on the entire directory and I have reasons to believe it works.
My joomla web is here : /var/www/clients/client1/web1/web/joomla ( client1 is me ) so i did this : cd /var/www/clients/client1/web1/web (enter)
chown -R -v -f web1:client1 joomla (enter)

maybe this works for you.
Good luck
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #8  
Old 3rd June 2009, 22:55
SamTzu SamTzu is online now
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 430
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default

I have been forced to run these commands on web folder...
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 777 tmp/ -Rf
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #9  
Old 4th June 2009, 08:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

This should both not be nescessary if you uploaded the files with FTP and then used either suexec + php-fastcgi or suphp. as the files will have the correct owners when uploaded with ftp and chowning is not nescessary as the files will get written by the cms systems under the same user. I run a lot of sites like that and never neded to chown or chmod something when using ispconfig 3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
robertlouwen (4th June 2009)
  #10  
Old 4th June 2009, 11:26
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
 
Default

@ Till,

Thank you for this !

To me it seemed easier to upload joomla.tar.gz to the website then go to my linux machine do tar xvzf and after that chown.

I go try to unzip joomla.tar.gz first and than upload all files ( takes a little longer but who cares )
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
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
How to Make my Website Known to the World llamy General 5 18th September 2009 11:54
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Debian install error jf1976 Installation/Configuration 25 19th January 2006 22:31
Where to go next? DNS questions? Default Website? NetDreamz Installation/Configuration 1 29th October 2005 11:53


All times are GMT +2. The time now is 10:59.


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