HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   /web to /htdocs change for web-root (apache/nginx) (http://www.howtoforge.com/forums/showthread.php?t=61184)

ispcomm 28th March 2013 11:38

/web to /htdocs change for web-root (apache/nginx)
 
Hello,

This might be a silly question, but I'l looking to moving some sites to being managed with ispconfig.

These sites are not owned by me so I must replicate all database users/passwords and directory paths (or they break).

I need to change the default web root from /some/path/web to /some/path/htdocs

That is... web root must be in a directory called "htdocs" and not "web".

I can change all path with ispconfig, except the final "web" dir.

I did some grepping in ispconfig and so far I seem to have found that the relevant paths are hard-coded in apache2_plugin.inc.php and nginx_plugin.inc

For example here we have:
$app->system->chmod($data['new']['document_root'].'/web';

Falko: can I proceed with a patch? Shall I create a new placeholder defaulting to "web"?

Thank you

till 28th March 2013 12:33

This folder is called "web" in ispconfig and we dont plan to chnage it or make it configurable in the nextreleases. Just add a symlink "htdocs" in the web root that points to the "web" folder and your sites should work.

> Falko: can I proceed with a patch? Shall I create a new placeholder defaulting to "web"?

I'am not Falko, but I'am the maintainer of ispconfig.

ispcomm 28th March 2013 14:16

Quote:

Originally Posted by till (Post 294868)
This folder is called "web" in ispconfig and we dont plan to chnage it or make it configurable in the nextreleases. Just add a symlink "htdocs" in the web root that points to the "web" folder and your sites should work.

This is why I asked if it's something you would "like".
Quote:

> Falko: can I proceed with a patch? Shall I create a new placeholder defaulting to "web"?

I'am not Falko, but I'am the maintainer of ispconfig.
:eek::eek::eek: Must have been smoking something :)

Till... Till Tilll Tilll... I'll remember it now (I hope).


All times are GMT +2. The time now is 17:57.

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