Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th May 2009, 22:31
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 6 Times in 6 Posts
Default Strange folder permissions from PHP scripts.

PHP Version - 5.2.4-2ubuntu5.5
MySQL Version - 5.0.51a-3ubuntu5.4
Server API Version - apache2handler
OS Version - Ubuntu 8.10
ISPConfig 2.2.x

So several sites that I have use PHP scripts to create folders in an uploads gallery. However, once these folders are created they aren't writable by the site.

The scripts are set to chmod the folders to 777 but these created folders have the following permissions:

owner:
www-data
permission:
755

The owner should be obviously webX where X is the number of the site.
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2009, 01:50
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 156
Thanks: 47
Thanked 13 Times in 11 Posts
Default

You need to use install suphp if you want the server to create folders as webX.

I had the same issue some time ago but after suphp everything is fine there is a great tutorial here somwhere about configureing suphp on your IspConfig server.

http://http://www.howtoforge.com/ins...2.20-and-above

Last edited by bernholdt; 11th May 2009 at 01:51. Reason: link inserted
Reply With Quote
  #3  
Old 11th May 2009, 02:58
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 6 Times in 6 Posts
Default

Thank you so much...

A couple followup questions, how do I check the version of ISPconfig?

Can I add this with other sites already configured?

Lastly does it work with ISPConfig 3?
Reply With Quote
  #4  
Old 11th May 2009, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by FeraTechInc View Post
A couple followup questions, how do I check the version of ISPconfig?
Tools > Software Version

Quote:
Originally Posted by FeraTechInc View Post
Can I add this with other sites already configured?
Yes.

Quote:
Originally Posted by FeraTechInc View Post
Lastly does it work with ISPConfig 3?
ISPConfig 3 supports suPHP out of the box. All you have to do is set up your server using one of the "Perfect Server" guides for ISPConfig 3.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th May 2009, 14:37
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 6 Times in 6 Posts
Default

Thanks for the reply but the howto ended up breaking my server.

None of the PHP scripts work. I can still access ISPConfig and html pages but when I try to access a PHP site on the server it downloads a PHTML or PHP file...

Any help would be appreciated.
Reply With Quote
  #6  
Old 11th May 2009, 14:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Take a look at the logs.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
folder, permissions, www-data

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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


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


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