HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   web folder privileges are getting reset by ISPConfig (http://www.howtoforge.com/forums/showthread.php?t=44416)

wpwood3 29th March 2010 06:45

web folder privileges are getting reset by ISPConfig
 
I have munin installed on my ISPConfig3 box with output directed to this folder:
Code:

/var/www/clients/client1/web1/web/monitor
munin will not write anything to the monitor folder unless the parent folder, web, has chmod 0755 permissions.

The problem is that ISPConfig3 keeps setting the permissions for the parent folder back to 0710. This happens whenever any changes are made in the ISPConfig3 admin control panel to that web domain.

What to do?

till 29th March 2010 18:24

There are several options:

a) Create a custom vhost file in the sites enabled folder for munin.
b) Use a subfolder within the apps vhost for munin (/var/www/apps)

wpwood3 29th March 2010 23:17

My solution
 
Thanks for your quick reply, Till. You got me pointed in the right direction.

Here's what I did. Please let me know if you see any problems with my approach.

Create a new Apache config file for munin:
Code:


vi /etc/httpd/conf.d/munin.conf

Insert the following lines into the file:
Code:


Alias /munin /var/www/munin
<Directory "/var/www/munin">
    Options Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Restart Apache:
Code:


/etc/init.d/httpd restart

Create a new folder and give ownership to munin:
Code:


mkdir /var/www/munin
chown -R munin:munin /var/www/munin

Edit the munin config file to point to the new folder:
Code:


vi /etc/munin/munin.conf

change htmldir to point to /var/www/munin:
Code:


htmldir /var/www/munin

Secure /var/www/munin with .htaccess

Now I can access munin from http://www.mytestsite.com/munin

till 29th March 2010 23:59

I dont see any problems with that, except that you have now a /munin/ url for every site on your server. Not sure if thats intended.


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

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