Forgot password?
Welcome to our site!
Or Join with FTTF

Can I change the name of the www folder?


I'm having real problems just being able to 'Install' lampcms. (I'm a programmer not a sys admin guy)

I am want to get lampcms installed on my new VPS with nginx, php5-fpm, php -v 5.4.

Webmin, the softest, most lightweight control panel...But doesn't support php5-fpm :(

Ispconfig3, bulky, but has support of php5-fpm with nginx...But you can't mess with the root directive in a websites vhost file. It's set at /var/www/, and can't be changed.

So I Have to use Ispconfig3. I Have to install lampcms in the root (/web/) directory, making 'www' a subdirectory to that. When I add an nginx directive to alias the 'www' directory as something else and setup lampcms in 'sub-directory' mode, I can navigate fine...But no static files work at all (CSS, js, etc.).

If I could 'rename' the 'www' folder in lampcms, and map all necessary variables to this new folder, I wouldn't need to 'alias' the 'www' and all static files would work out of the box (at least that's what I'm hoping).

Is this possible? Anyone have other ideas?
All input muchly appreciated (I've gone way over [3 months] my time to live :(... )

Thanx in advance

asked May 17, 2013 at 5:31 AM


1 Answer

Try this: do not alias www as something else, instead just rename the www to something else.
For example, rename the www directory to 'myforum'
then just access your lampcms installation as

I'm pretty sure it will work. Aliasing does not work because the script has no way of knowing that you are accessing the www directory by a different name.

But if you actually rename the www to something else then script will pick up the real path.

Another thing you can do is define the value of
DIR = "/myforum"

in your !config.ini file
Setting up the proper value of DIR is necessary if you are hosting lampcms in a sub-directory!

You can also experiment with setting values of
in !config.ini but these will most like not be necessary if you define the value of DIR correctly.

Read the comments in !config.ini regarding these settings.

Edited May 18, 2013 08:08 AM
Added notes about DIR and CSS_SITE
answered May 18, 2013 at 7:03 AM
Thank you Dmitri, I'm taking your approach here. I ditched all control panels though and have put it all together now from scratch :).
May 23, 2013 09:34 AM

Your answer

Join with account you already have