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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
finid's avatar
123
finid
asked 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

SELinux is disabled, and www symlinks to public_html.

finid's avatar finid (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)

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 (12 years ago)

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 (12 years ago)

It is Apache

finid's avatar finid (12 years ago)
see more comments