HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Stats directory permission is denied on write? (http://www.howtoforge.com/forums/showthread.php?t=37746)

Code5 26th July 2009 03:44

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.

till 27th July 2009 13:00

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.

Code5 27th July 2009 19:05

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

Code5 28th July 2009 19:22

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.

NdK 30th July 2009 12:48

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.

till 3rd August 2009 10:07

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.

NdK 3rd August 2009 14:01

Quote:

Originally Posted by till (Post 200024)
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.

NdK 19th August 2009 01:34

Quote:

Originally Posted by till (Post 200024)
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.

SamTzu 27th August 2009 22:16

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

astewart 1st September 2009 22:15

Quote:

Originally Posted by SamTzu (Post 202315)
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 :(


All times are GMT +2. The time now is 13:52.

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