Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th August 2010, 04:19
chillifire chillifire is offline
HowtoForge Supporter
 
Join Date: Oct 2007
Posts: 75
Thanks: 3
Thanked 3 Times in 3 Posts
Default Change document root for a single website to accomodate Zend Framework

Hi,

I am using ISPConfig to host my website www.chillifre.net and related sites news.chillifire.net and support.chillifire.net. The website www.chillifire.net is making use of the Zend Framework and thus needs a document root of /var/www/www.chillifire.net/web/public in stead of the usual /var/www/www.chillifire.net/web I cannot make an overall and generic change as the two other sites are based on opensource packages that do not use Zend Framework and thus have to point to the normal /var/www/xxx/web document root. Currently I have to manually alter the configured file which only works until the next change of configuration 9as it is then of course overwritten.

PS: Others may be interested in how the set up for Zend Framework on ISPConfig3 works - a lot of other add-on directives are required to make this work. Happy to post it on this forum once this document root issue has been resolved.
Reply With Quote
Sponsored Links
  #2  
Old 26th August 2010, 10:02
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,009
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

The zend framework should work fine with the directory /var/www/www.chillifire.net/web as well. So there is no need to change a directory path in the vhost and you can not change the path.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th March 2011, 12:16
4F2E4A2E 4F2E4A2E is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Thanks: 2
Thanked 1 Time in 1 Post
Question change document root of any hosted web

i did currently install redmine with ispconfig 3 and just one left problem over:
i know i should not edit the vhost manually if i am using ispconfig but only this way it is working:
Code:
<Directory /home/www/xxx.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /home/www/xxx.com/web/redmine/public

    ServerName xxx.com
    ServerAlias *.xxx.com
    ServerAdmin webmaster@xxx.com

    ErrorLog /var/log/ispconfig/httpd/xxx.com/error.log


    <Directory /home/www/xxx.com/web/redmine/public>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /home/www/clients/client4/web38/web/redmine/public>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_ruby.c>
      <Directory /home/www/clients/client4/web38/web/redmine/public>
        Options +ExecCGI
      </Directory>
      RubyRequire apache/ruby-run
      #RubySafeLevel 0
      <Files *.rb>
        SetHandler ruby-object
        RubyHandler Apache::RubyRun.instance
      </Files>
      <Files *.rbx>
        SetHandler ruby-object
        RubyHandler Apache::RubyRun.instance
      </Files>
    </IfModule>
<Directory /home/www/xxx.com/web/redmine/public>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /home/www/php-fcgi-scripts/web38/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        <Directory /home/www/clients/client4/web38/web/redmine/public>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /home/www/php-fcgi-scripts/web38/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
after a time ispconfig alters it again back to:
Code:
<Directory /home/www/xxx.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /home/www/xxx.com/web

    ServerName xxx.com
    ServerAlias *.xxx.com
    ServerAdmin webmaster@xxx.com

    ErrorLog /var/log/ispconfig/httpd/xxx.com/error.log


    <Directory /home/www/xxx.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /home/www/clients/client4/web38/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_ruby.c>
      <Directory /home/www/clients/client4/web38/web>
        Options +ExecCGI
      </Directory>
      RubyRequire apache/ruby-run
      #RubySafeLevel 0
      <Files *.rb>
        SetHandler ruby-object
        RubyHandler Apache::RubyRun.instance
      </Files>
      <Files *.rbx>
        SetHandler ruby-object
        RubyHandler Apache::RubyRun.instance
      </Files>
    </IfModule>
<Directory /home/www/xxx.com/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /home/www/php-fcgi-scripts/web38/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        <Directory /home/www/clients/client4/web38/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /home/www/php-fcgi-scripts/web38/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
how can i set this in ispconfig?

ispconfig settings:
PHP open_basedir:
/home/www/clients/client4/web38/web/redmine/public:/home/www/clients/client4/web38/tmp:/home/www/xxx.com/web/redmine/public:/srv/www/xxx.com/web/redmine/public:/usr/share/php5:/tmp:/usr/share/phpmyadmin

please help
Reply With Quote
  #4  
Old 4th March 2011, 13:21
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,009
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Reinstall redmine so that it is installed in the web folder and not in web/redmine/public_html/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 4th March 2011, 14:30
4F2E4A2E 4F2E4A2E is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Thanks: 2
Thanked 1 Time in 1 Post
Default /

i need it on xxx.com/

and not on anythings else after it.
a new install would mean xxx.com/[X]

i can't tell ispconfig either to use something _instead_ of web like:
/home/www/xxx.com/web /home/www/xxx.com/X

because then i would take redmine up and public would be the _public_ folder like:
/home/www/xxx.com/public
Reply With Quote
  #6  
Old 4th March 2011, 14:59
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,009
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

According to your vhost file changes, you simply installed redmine in a wrong folder. So the fix is not to change the vhost file, the fix is to install redmine into the correct folder.

Quote:
and not on anythings else after it.
a new install would mean xxx.com/[X]
Thats clear of course and the changes that I proposed does not mean that you have to use a different URL.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
document root, public, zend framework

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
Update failed, lost client information (not the files) joosimol Installation/Configuration 10 25th January 2010 16:27
monit howto Jamesk5 HOWTO-Related Questions 11 5th August 2008 16:10
ISPConfig not resolving web pages TheBirdMan Installation/Configuration 15 8th May 2008 22:59
Add Webmin to the system sushestvo Installation/Configuration 44 21st August 2007 17:52
index.html make eror planet_fox Installation/Configuration 46 28th March 2007 10:10


All times are GMT +2. The time now is 14:44.


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