Ask Your Question
1

What directory to clone code to in VPS

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

finid gravatar image finid flag of United States
129 4 2 10
http://linuxbsdos.com/

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?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

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

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

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.

link publish delete flag offensive edit

Comments

SELinux is disabled, and www symlinks to public_html.

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 ( 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 ( 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 ( 2012-10-14 22:51:33 -0500 )edit

It is Apache

finid ( 2012-10-14 22:53:27 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 55 times

Last updated: Oct 14 '12