Hello World plugin example 404?

HeyDev

Verified User
Joined
Aug 4, 2011
Messages
7
Hello everyone,

Today I was looking up docs on plugins for DirectAdmin and saw the hello-world example.


I went ahead and installed it on my server and I see that it 404s in the admin panel and I am not quite sure why?

Bash:
[root@host helloworld]# pwd
/usr/local/directadmin/plugins/helloworld
[root@host helloworld]# ll
total 32
drwxr-xr-x 3 diradmin diradmin 4096 May  4 13:45 admin
-rw-r--r-- 1 diradmin diradmin    3 May  4 13:45 available_version.txt
drwxr-xr-x 2 diradmin diradmin 4096 May  4 13:45 hooks
drwxr-xr-x 2 diradmin diradmin 4096 May  4 13:45 images
-rw------- 1 diradmin diradmin  534 May  4 13:45 plugin.conf
drwxr-xr-x 3 diradmin diradmin 4096 May  4 13:45 reseller
drwxr-xr-x 2 diradmin diradmin 4096 May  4 13:45 scripts
drwxr-xr-x 3 diradmin diradmin 4096 May  4 13:45 user
[root@host helloworld]# cd admin/
[root@host admin]# ll
total 12
-rwxr-xr-x 1 diradmin diradmin  186 May  4 13:45 index.html
-rwxr-xr-x 1 diradmin diradmin  185 May  4 13:45 mars.html
drwxr-xr-x 4 diradmin diradmin 4096 Jan  3  2019 widgets
I'm using the evolution skin and I think the permissions are okay. Is there anything I missed?
 

Attachments

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
149
what is the complete url of the admin plugin button?And the url that opens when you click it?
 

HeyDev

Verified User
Joined
Aug 4, 2011
Messages
7
what is the complete url of the admin plugin button?And the url that opens when you click it?
https://<hostname>:2222/CMD_PLUGINS_ADMIN/hello_world

Is the link that appears for the plugin and that's where I am redirected.
 

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
149
This only happens for admin and no other user?
Do you have any other plugins installed that are accessible for admin?
 

HeyDev

Verified User
Joined
Aug 4, 2011
Messages
7
This only happens for admin and no other user?
Do you have any other plugins installed that are accessible for admin?
I only have 1 admin user that can access the admin portal. If you install the hello world plugin do you have any issues with it?

It happens with any user at any level.
 

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
149
I just installed a test hello_world and it seems to be working fine. I'm using perms 711 on plugins directory with ownership diradmin.diradmin

Is anything logged in the DA logs (/var/log/directadmin/)?

What if you run the panel in debug mode while trying to load the plugin?

https://help.directadmin.com/item.php?id=293
 
Top