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, 21:31
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 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, 00: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 00:51. Reason: link inserted
Reply With Quote
  #3  
Old 11th May 2009, 01:58
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 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, 13:30
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 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, 13:37
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 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, 13:40
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 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
  #7  
Old 11th May 2009, 13:50
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 Posts
Default

It works. There was some information missing in the howto.

I needed to remove php_admin entries from my /etc/apache2/vhosts/Vhosts_ispconfig.conf file.

Man I hate technology, lol.

I was getting scarred because I have a very big client that uses a couple of my sites on a daily bases.

Thanks, I appreciate it.
Reply With Quote
  #8  
Old 11th May 2009, 14:33
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 156
Thanks: 47
Thanked 13 Times in 11 Posts
Default

As always there is a fix here on howtoforge

please read here http://www.howtoforge.com/forums/sho...ighlight=suphp

When i get home i can pm you the fix that solved the same prop on my server.
Reply With Quote
  #9  
Old 11th May 2009, 15:03
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Well I got the server back up and running. PHP scripts are running fine.

However, a new problem. While uploading files was a bit sketchy before. Sometimes it would work and others not. Now uploading doesn't work at all.

I can't upload anything.

2 questions, are there some configuration settings that need changing?

Can whatever I did be simply undone?
Reply With Quote
  #10  
Old 11th May 2009, 16:16
FeraTechInc FeraTechInc is offline
Senior Member
 
Join Date: Feb 2007
Posts: 138
Thanks: 3
Thanked 5 Times in 5 Posts
 
Default

I have tried messing around with suPHP settings to no avail. I can't seem to get any file uploads to work at all.

Any help would be greatly appreciated. I tried researching the issue and there doesn't seem to be any solution.
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 17:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


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


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