Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2007, 17:27
catalyst catalyst is offline
Member
 
Join Date: Mar 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default folder access right problem

I installed Fedora 6 with ispconfig 2.2.11 and found that my phpscript can't copy or move a file to the created folder (folder was created by php script).
Because the owner of the created folder is "apache" and access right is 644 (default). So that php script can't copy or move files into the new created folder.
Someone say that it can use suphp to solve the access right problem.
But I want to know that are there any solution can change the default access right of the folder to mod 755.
Can I modify some config. file to change the default access right?
Reply With Quote
Sponsored Links
  #2  
Old 27th March 2007, 21:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

You can change the permissions e.g.in your ftp client or on the shell.

The correct solution for the problem is to use suphp which is supported by ISPConfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th March 2007, 05:53
catalyst catalyst is offline
Member
 
Join Date: Mar 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till

It is useless for changing the permissions by ftp or shell. Because the folder is created by php script and the default owner is "apache:apache" with access right 644. So that the php script can't copy or move files in the created folder. Besides, the scripts will created a many sub-folders in the created folder too, it is impossible for me to chmod it to 777 manually.
Can I modify any configuration file and make the default owner to become "web1_user:web1" or change the access right to 777?

I know that suphp can solve this problem. Are there any instructions for setting it up with Fedora 6 (64-bit) & ispconfig?
Thank you!

Last edited by catalyst; 28th March 2007 at 05:58.
Reply With Quote
  #4  
Old 28th March 2007, 07:54
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Quote:
Can I modify any configuration file and make the default owner to become "web1_user:web1" or change the access right to 777?
My answer is the same then in my 1st post:

The correct solution for the problem is to use suphp which is supported by ISPConfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th March 2007, 18:18
catalyst catalyst is offline
Member
 
Join Date: Mar 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
My answer is the same then in my 1st post:

The correct solution for the problem is to use suphp which is supported by ISPConfig.
Hi Till

Could you post a tutorial about how to install suphp for Fedora 6 and ISPConfig?
I only find that I can use "yum install mod_suphp", but don't know how to continue to setup the suphp!
Thanks!
Reply With Quote
  #6  
Old 29th March 2007, 09:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Quote:
Originally Posted by catalyst
Could you post a tutorial about how to install suphp for Fedora 6 and ISPConfig?
Generally yes, but I'am not able to write this in the next few days.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 29th March 2007, 09:48
catalyst catalyst is offline
Member
 
Join Date: Mar 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till
Generally yes, but I'am not able to write this in the next few days.
Ok! Hope that you will post it earlier.
Hope that you can give a hand on this matter. Many thanks!

I try to use yum install mod_suphp, but there is no document on Fedora 6 with ispconfig, so that I can't setup it successfully.
I have read other post about suphp but can't find out the exact step and procedure to use it. After I used "yum install mod_suphp, the system already load it automatically.

Now I can copy files or create folder occasionally (in fact, seldom) in the php scripts and the created folder will have access right with 755 but sometimes 644.....

Last edited by catalyst; 29th March 2007 at 10:02.
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
Problem Installing ISPConfig on a Debian System xyhfna Installation/Configuration 17 6th February 2007 14:09
Install Problem... roy_wiz678@yahoo.com.ph Installation/Configuration 2 15th July 2006 13:19
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
FTP access problem... ctroyp General 7 12th October 2005 17:07


All times are GMT +2. The time now is 00:32.


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