First time here? Check out the FAQ!
1

What directory to clone code to in VPS

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://github.com/ASKBOT/askbot-devel.git <project-name>?

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

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

finid's avatar
123
finid
asked 2012-10-14 05:57:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-10-14 19:05:48 -0500
edit flag offensive 0 remove flag delete link

Comments

SELinux is disabled, and www symlinks to public_html.

finid's avatar finid (2012-10-14 21:54:51 -0500) edit

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

Evgeny's avatar Evgeny (2012-10-14 21:57:37 -0500) 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's avatar finid (2012-10-14 22:41:10 -0500) 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's avatar Evgeny (2012-10-14 22:51:33 -0500) edit

It is Apache

finid's avatar finid (2012-10-14 22:53:27 -0500) edit
add a comment see more comments