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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th July 2009, 03:44
Code5 Code5 is offline
Member
 
Join Date: Jun 2008
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
Question Stats directory permission is denied on write?

:::: Regarding ISPConfig 3.0.1.3 ::::

Hi all, im trying to upload some files into one of my domains /stats folder but i keep getting the error "permission denied" on write.

Ive tried to login and create the files manually within the stats directory under the main root user of the system. I tried using vi-editor and then went to save the script and, the same, could not write to folder please change permissions.

Now ive looked at the permissions of the folder and from Cuteftp all other folders have the owner name "5004" which is wierd, and the stats folder has the owner of 0, no other folder has the "0" ownership.

Now within ispconfig ver.2, the owner name from within Cuteftp brings back the right name which is the user of the domain, not a number.

My question is, how do i modify the stats folder so that files can be uploaded or even created within that directory?

Hope you can understand what i mean here, and thanks for any help as im finding this very tedious.

Last edited by Code5; 26th July 2009 at 04:01.
Reply With Quote
Sponsored Links
  #2  
Old 27th July 2009, 13:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,794
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

The stats directory in ispconfig 3 shall not be accessble for uploads by the user, thats why it is owned by the root user. If you want to change that, you will have to change the code of the apache plugin and / or the code in the cron-daily.php script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th July 2009, 19:05
Code5 Code5 is offline
Member
 
Join Date: Jun 2008
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
Question Thanks.

I am a bit of a novice when it comes to Linux based systems, is there any chance you can provide me with some form of informational guide on how to do this?


Many thanks.


OS = Ubuntu 9.04 Server & ISPConfig 3.0.1.3
Reply With Quote
  #4  
Old 28th July 2009, 19:22
Code5 Code5 is offline
Member
 
Join Date: Jun 2008
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
Question

Please could you tell me where i can find either the Apache plugin, or cron-daily.php files?

Thanks.

------------------

Found the file cron_daily.php in location

/usr/local/ispconfig/server

Which part of this file do i need to modify, and if im adding code what code should i add?

Many thanks.

Last edited by Code5; 28th July 2009 at 19:30. Reason: Found location.
Reply With Quote
  #5  
Old 30th July 2009, 12:48
NdK NdK is offline
Member
 
Join Date: Jul 2009
Location: Bologna, ITA
Posts: 41
Thanks: 1
Thanked 3 Times in 1 Post
Default Regarding stats...

Is it possibl to disable statistics generation from panel just for some sites?

Since it seems I can't access stats/ dir when Drupal is installed, it's quite useless to generate them.
Reply With Quote
  #6  
Old 3rd August 2009, 10:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,794
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Quote:
Is it possibl to disable statistics generation from panel just for some sites?
no.

Quote:
Since it seems I can't access stats/ dir when Drupal is installed, it's quite useless to generate them.
I guess thats a problem with a .htaccess file from drupal. You can try to change the .htaccess file so that it excludes the stats directory.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 3rd August 2009, 14:01
NdK NdK is offline
Member
 
Join Date: Jul 2009
Location: Bologna, ITA
Posts: 41
Thanks: 1
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by till View Post
I guess thats a problem with a .htaccess file from drupal. You can try to change the .htaccess file so that it excludes the stats directory.
It's strange. Expecially since the rewriting starts with
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
so it should automatically exclude from rewrite existing files and directories.
Tried adding
RewriteCond %{REQUEST_FILENAME} !^/stats/
w/o success.
Reply With Quote
  #8  
Old 19th August 2009, 01:34
NdK NdK is offline
Member
 
Join Date: Jul 2009
Location: Bologna, ITA
Posts: 41
Thanks: 1
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by till View Post
I guess thats a problem with a .htaccess file from drupal. You can try to change the .htaccess file so that it excludes the stats directory.
Sorry to up this thread. But I still can't access stats/ if drupal's htaccess is in place, and can't figure out WHY!
Rewritecond should detect that I'm requesting existing files, so it shouldn't rewrite.
Tried disabling stats access control, but still no luck.
Tried changing permissions: nada.
Don't know where to bang my head next...

Any hint?

Tks.
Reply With Quote
  #9  
Old 27th August 2009, 22:16
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I'd like to find an answer to this one too since it's affecting our Joomla sites SEF / .htaccess files.
__________________

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
  #10  
Old 1st September 2009, 22:15
astewart astewart is offline
Member
 
Join Date: Feb 2007
Posts: 95
Thanks: 1
Thanked 7 Times in 7 Posts
 
Default

Quote:
Originally Posted by SamTzu View Post
I'd like to find an answer to this one too since it's affecting our Joomla sites SEF / .htaccess files.
Please let me know if you find a solution for this.
I had sh404sef installed for Joomla but was unable to access the stats folder.

I have no idea how to get this to work and I got no repsonse over at the sh404sef forums either
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
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 11:46
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26


All times are GMT +2. The time now is 19:39.


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