how can i access to tomcat manager

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

how can i access to tomcat manager

Jump to solution

HI I'm trying to access tomcat manager

I've edit the file : 

nano /opt/alfresco-community/tomcat/conf/tomcat-users.xml

and then I pasted those balise : 

<role rolename="manager-gui"/>
<user username="tomcat" password="secretpass" roles="manager-gui"/>

after a restart I still have the same message, saying me that I can't access to the manager ... 

can you help me please ? 

1 Solution

Accepted Solutions
Highlighted
Senior Member

Re: how can i access to tomcat manager

Jump to solution

Hi,

I think this link could be useful:

How to enable Tomcat Manager in an Alfresco installation – : : blyx.com : : Blog : : Toni de la Fuen... 

In my case I added the following lines to the file: "/opt/alfresco-community/tomcat/conf/tomcat-users.xml"


<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-jmx"/>
<role rolename="manager-script"/>
<user username="manager" roles="manager-gui,manager-status" password="manager"/>

In second place in "{Alfresco}\tomcat\conf\Catalina\localhost" folder I created a file named "manager.xml" with the following content:

<?xml version='1.0' encoding='utf-8'?>
< Context antiResourceLocking="false" privileged="true" useHttpOnly="true" override="true">
<Valve className="org.apache.catalina.authenticator.BasicAuthenticator" securePagesWithPragma="false" />
</Context >

After that I restarted the service and when I tried to access: http://localhost:8383/manager/status it prompt:

user: manager

password: manager

And it works in Alfresco 201704.

I've tried http://localhost:8383/manager/html  too, with the same success result.

Anyway, i'm not completely sure if it's necessary doing anymore in a production server. 

Regards,

View solution in original post

3 Replies
Highlighted
Senior Member

Re: how can i access to tomcat manager

Jump to solution

Hi,

I think this link could be useful:

How to enable Tomcat Manager in an Alfresco installation – : : blyx.com : : Blog : : Toni de la Fuen... 

In my case I added the following lines to the file: "/opt/alfresco-community/tomcat/conf/tomcat-users.xml"


<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-jmx"/>
<role rolename="manager-script"/>
<user username="manager" roles="manager-gui,manager-status" password="manager"/>

In second place in "{Alfresco}\tomcat\conf\Catalina\localhost" folder I created a file named "manager.xml" with the following content:

<?xml version='1.0' encoding='utf-8'?>
< Context antiResourceLocking="false" privileged="true" useHttpOnly="true" override="true">
<Valve className="org.apache.catalina.authenticator.BasicAuthenticator" securePagesWithPragma="false" />
</Context >

After that I restarted the service and when I tried to access: http://localhost:8383/manager/status it prompt:

user: manager

password: manager

And it works in Alfresco 201704.

I've tried http://localhost:8383/manager/html  too, with the same success result.

Anyway, i'm not completely sure if it's necessary doing anymore in a production server. 

Regards,

View solution in original post

Highlighted
Member II

Re: how can i access to tomcat manager

Jump to solution

I've followed it but it doesn't work, 

I just get an error 404

tomcat error 404

Highlighted
Member II

Re: how can i access to tomcat manager

Jump to solution

the link you sent me works perfectly ! thanks a lot ! :-)