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

  • Screenshot from 2020-05-04 13.56.17.png
    Screenshot from 2020-05-04 13.56.17.png
    26.7 KB · Views: 8
what is the complete url of the admin plugin button?And the url that opens when you click it?
 
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.
 
This only happens for admin and no other user?
Do you have any other plugins installed that are accessible for admin?
 
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.
 
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
 
Back
Top