Install guide/tips for Atlassian bitbucket.
Official Bitbucket installation documentation is here.
Bitbucket requires installing MySQL and git (which will also install perl which is also required).
Install git by (yum base os):
Install git by (debian/ubuntu):
Follow this guide to install MySQL
Make sure to do (see below) to ensure service starts on reboot
To install git do:
RPM based distro
Bitbucket should be started as user
altbitbucket to ensure elasticsearch is started correctly. Starting the service as root can cause elasticsearch to fail. See here for more information.
First switch to user atlbitbucket with:
then use the following service commands to manage bitbucket
For mysql hostname (since only allowing server-side MySQL access):
Enter user and password configured when setting up database as outlined here.
The below directions for redirecting ports and setting up SSL on confluence are deprecated. Please see Apache reverse-proxy SSL to multiple server applications for a better solution to both port redirection and SSL.
Redirecting port 443 to 8443
We can iptables to route from https (443) to the confluence secured port as outlined here.
Create a certificate as outlined here.
Bitbucket, by default looks for a java keystore file like this
Rename the .keystore file that you generated and copy to match the above location and filename.
Now just need to edit file bitbucket.properties file
Add the following
Note: where <PASSWORD> is the password you created in the previous steps (when following this).