Ask Your Question

What directory to clone code to in VPS

asked 2012-10-14 05:57:17 -0600

finid gravatar image

I have a new VPS account, and want to install the development version of askbot. In what dir. should I be in, relative to my public_html, when I run the git clone git:// <project-name>?

Note: I want to run the forum in a subdomain of an active site, so the final would be something like

Do I have to be in the folder of the subdomain in the root of the main site?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-14 19:05:48 -0600

Evgeny gravatar image

In principle it does not matter, because you can configure your web server to run the application from any directory. However, some hosting providers ask you to use specific directories, because their web server expects that due to their custom configuration (ask them in that case).

There may be another catch - if SElinux is enabled (security enhanced linux), you will have less choice on where to put your application, static and log files. Type getenforce to see if selinux is on.

With root access, common locations to install webapps are /srv/ or /var/www. If you do not have the root access - ask your server administrator.

edit flag offensive delete link more


SELinux is disabled, and www symlinks to public_html.

finid gravatar imagefinid ( 2012-10-14 21:54:51 -0600 )edit

Looking into your webserver configuration if you have access to those files - then you won't need to be guessing.

Evgeny gravatar imageEvgeny ( 2012-10-14 21:57:37 -0600 )edit

At the root-level, I have access to /srv and /var, but there is no /var/www. At the user-level, which may also be assigned root privileges, www is a symlink to public_html

finid gravatar imagefinid ( 2012-10-14 22:41:10 -0600 )edit

If you have root access to your machine then look into the webserver configs - they have all the answers to this question. Do you know what webserver software runs on your vps? You can test by netstat -nap | grep ':80' - that should help you find name of the process bound to port 80. Then find config files to that process. You might in the future edit those files to configure askbot.

Evgeny gravatar imageEvgeny ( 2012-10-14 22:51:33 -0600 )edit

It is Apache

finid gravatar imagefinid ( 2012-10-14 22:53:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-14 05:57:17 -0600

Seen: 136 times

Last updated: Oct 14 '12