How to install jira in cPanel VPS

Rusan Mihai September 15, 2013

Hello, i try to install Jira from .bin on VPS with cPanel.

Location of jira install /home/user/public_html/

location of data files /var/atlassian/application-data/jira

when try to start jira from /home/user/public_html/bin/start-jira.sh i get :

To run JIRA in the foreground, start the server with start-jira.sh -fg

executing using dedicated user: jira

./startup.sh: line 62: /home/user/public_html/bin/catalina.sh: Permission denied

./startup.sh: line 62: exec: /home/user/public_html/bin/catalina.sh: cannot execute: Permission denied

i have tried to change owner and permissions, but not results.
thanks,
Mihai

5 answers

1 accepted

1 vote
Answer accepted
Rusan Mihai September 15, 2013

any sugestions ?

1 vote
Rusan Mihai September 15, 2013

yes

1 vote
Rusan Mihai September 15, 2013

here's an example

all files and folders from /home/user/public_html/jira/ (install folder changed from previos post) have owner jira:jira

./start-jira.sh

To run JIRA in the foreground, start the server with start-jira.sh -fg

executing using dedicated user: jira

./startup.sh: line 62: /home/linuxzon/public_html/jira/bin/catalina.sh: Permission denied

./startup.sh: line 62: exec: /home/linuxzon/public_html/jira/bin/catalina.sh: cannot execute: Permission denied

SELinux status: disabled

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2013

Just to clarify: are you doing this within a web folder that's under cPanel itself?

1 vote
Rusan Mihai September 15, 2013

-rwxr-xr-x 1 jira jira 19189 Aug 28 09:53 catalina.sh - not working , same messege:

To run JIRA in the foreground, start the server with start-jira.sh -fg

executing using dedicated user: jira

./startup.sh: line 62: /home/user/public_html/bin/catalina.sh: Permission denied

./startup.sh: line 62: exec: /home/user/public_html/bin/catalina.sh: cannot execute: Permission denied

-rwxr-xr-x 1 root root 19189 Aug 28 09:53 catalina.sh - same error
-rwxr-xr-x 1 user user 19189 Aug 28 09:53 catalina.sh - same error, "user" is cPanel user
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2013

You've used three different user-owners and two different login users there and not explained what combinations you've tried.

The first file looks right to me, because it's owned by the Jira user. So you need to run it as the Jira user. Or change it to another appropriate user. Make sure you have done this for ALL the files in the Jira installation though.

Once you've got the permissions lined up correctly, then the other thing that may throw "permission denied" type errors is SELinux - you might need to look into telling that to let it run.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2013

You say you've tried to change owner and permissions - could you explain what you've done there? Might be easiest to show us the results of "ls -l catalina.sh" and tell us who the current user is, the one you're running Jira as.

Suggest an answer

Log in or Sign up to answer