Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 2nd November 2008, 16:06
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

I've changed the ownerships with chown -R www-data /var/clients/client1/web1/trac and chown -R www-data /var/clients/client1/web1/svn . It works fine for me. I just tested it to add a new project to another client, and it works great. I'll rework the guide so it's in the pieces for server install, then for each client. That'll come later though.
Reply With Quote
Sponsored Links
  #12  
Old 2nd November 2008, 16:07
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Quote:
Originally Posted by till View Post
Either that or make it world redable.

Another solution might be to use python as cgi (if thats possible) instead of mod_python together with suexec so the file can be owned by the web user and nobody else needs permissions to this file.
That's a good idea. I know trac can be run as cgi. I'll look into that.


http://trac.edgewall.org/wiki/TracFastCgi

Last edited by quentusrex; 2nd November 2008 at 16:10.
Reply With Quote
  #13  
Old 16th November 2008, 00:37
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Kalua, and all:

This will be very helpful to anyone who is trying to install drupal, and other software on the same client website:

==================================================


<VirtualHost *:80>
DocumentRoot /var/clients/client1/web4/web

ServerName mydomain.com
ServerAdmin webmaster@mydomain.com

ErrorLog /var/clients/client1/web4/log/error.log

ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html

<Directory /var/www/mydomain.com/web>
Options FollowSymLinks Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# suphp enabled
<Directory /var/clients/client1/web4/web>
suPHP_Engine on
# suPHP_UserGroup web4 client1
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
DirectoryIndex drupal/index.php
</Directory>

<Directory /var/clients/client1/web4/web/drupal>
suPHP_Engine on
# suPHP_UserGroup web4 client1
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
DirectoryIndex drupal/index.php
RewriteEngine on
RewriteBase /drupal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>



php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mydomain.com"
#php_admin_value open_basedir /var/clients/client1/web4:/usr/share/php5
#php_admin_value upload_tmp_dir /var/clients/client1/web4/tmp
#php_admin_value session.save_path /var/clients/client1/web4/tmp

<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/clients/client1/web4/web/trac/
PythonOption TracUriRoot /trac
PythonOption PYTHON_EGG_CACHE /tmp
</Location>

<Location /trac/[[:alnum:]]+/login>
AuthType Basic
AuthName "MyDomain Trac Development"
AuthUserFile /var/clients/client1/web4/web/trac/.passwd
Require valid-user
</Location>


<Location /svn>
DAV svn
AuthType Basic
AuthName "My Trac"
AuthUserFile /var/clients/client1/web4/svn/.passwd
#AuthzSVNAccessFile /var/local/svn/svn.example.com/conf/authz
SVNPath /var/clients/client1/web4/svn/
Require valid-user
</Location>



</VirtualHost>
Reply With Quote
  #14  
Old 16th November 2008, 00:39
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
 
Default

Pay special attention to the DocumentIndex setting on the root /web/ directory. This will forward all requests for 'www.mydomain.com' to 'www.mydomain.com/drupal/index.php'

This way you have all of the drupal stuff in one single directory.... Very useful.... This way drupal rewrite settings won't screw up other software on your server, like Trac, or something.
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
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 19:03
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12
http://www.domain.com/ shows login.php instead of index file mtoom Installation/Configuration 20 27th February 2007 15:56
Webmin docs missing namit Server Operation 11 5th January 2006 10:51


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


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