ispCP - Board - Support
Change domain mounting point? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Change domain mounting point? (/thread-10670.html)



Change domain mounting point? - 2xmy - 05-12-2010 04:43 AM

I have some domain-alias' that I need to point to another folder. Instead of them all beeing mounted in /x.xx/ I would like them to be in /htdocs/.

I have managed to solve this task by changing this file manually:
/etc/ispcp/apache/working/ispcp.conf

Is there any more elegant way to do this? I can't seem to find any way to change the mounting point through the control panel (ispcp) after the domain has been set up initially.

Even if it is not through ispcp there might be some more elegant solution than to open ispcp.conf and changing them?


RE: Change domain mounting point? - joximu - 05-12-2010 07:21 AM

try to override the "document root" in /etc/apache2/ispcp/alias-domain.conf

In ispcp there's no solution (yet)... AFAIK

/J


RE: Change domain mounting point? - 2xmy - 05-13-2010 06:56 AM

Thank you very much for the fast suggestion.

I've now tried it but it does not seem to work. Could be a nice feature to have in future versions Smile
... and now I tried deleting the domain in the belief that I could then try to add it again with the new mounting point (can be done for those without e-mailadresses in use). Instead I get a "unkown error" for that domain... probably because of me having changed in the "/etc/ispcp/apache/working/ispcp.conf"-file?

Now I can't add e-mailadresses to that domain in the future, so don't hope that that will be necessary. Any way to get it completely deleted so that I can try again?


RE: Change domain mounting point? - 2xmy - 05-13-2010 08:28 AM

... the same problem comes when I try to add a new domain. What can I have changed that did this?
Status: Unknown error

As far as I know I have only been changing these two files:
/etc/apache2/site-enabled/ispcp.conf
/etc/ispcp/apache/working/ispcp.conf

And then the one that joximu suggest, but I changed that back agan after having seen that it did now change anything.


RE: Change domain mounting point? - joximu - 05-14-2010 01:43 AM

/etc/apache2/site-enabled/ispcp.conf
this is a symlink to /etc/apache2/site-available/ispcp.conf

check the status directly in the ispcp-db

/J


RE: Change domain mounting point? - 2xmy - 05-14-2010 08:39 PM

Thank you for keep helping joximu.

Where do I find the pass/code for the db that ispcp uses? I don't think I got it during the installation.

When I log into "System tools" and "ispCP debugger" I get the following error under "domain alias error":

domain-add-test.com - Set status to "change"
get_tag() | ERROR: '# httpd Data BEGIN. ' ne '# httpd Data END. ', '# httpd Data BEGIN. ' or '# httpd Data END. ' missing in src !

When I check the .conf files it has not been added. Even stranger is that it says the same for a domain that I deleted, which are still located in the .conf-files so it should not have any problems finding the end/begin tags for that domain.


RE: Change domain mounting point? - joximu - 05-14-2010 08:51 PM

Did you change the templates?

/etc/ispcp/apache/parts/*

maybe reset them to the original of your ispcp-release

you may need the mysql root user and password to read in the ispcp database...

/J


RE: Change domain mounting point? - 2xmy - 05-18-2010 09:01 PM

Again, thank you very much for all your help.

I did not change the templates, so I tried getting someone to help me with updating to newest version of ispcp which solved the problem. I don't know what file it was though.