TheLord45 / amxpanel

Emulator for AMX panels
GNU General Public License v3.0
13 stars 1 forks source link

Cannot get this to work #56

Open Willyarma opened 4 years ago

Willyarma commented 4 years ago

This looks like an amazing project, I was thinking about doing this myself and had already made a start but gave up when I realised how complex it was! I appriciate all the effort you have put in.

I am using Ubuntu 20.04 and I have successfully compiled from source, (I had to build libxml++-3.0 from source and register it with pkg-config)

I have installed Apache2 (along with the php mod) and have linked the sites-available file, I can browse to http://127.0.01/amxpanel/scripts/amxpanel.js as a test and it comes up so thats working.

I have used FSFReader and extracted the panel to /usr/share/amxpanel using the t option so everything is in the right folders.

No matter what I do and I've been through the config many times, it will not show up a panel in Netlinx Studio and whenever I browse to http://127.0.0.1/amxpanel I just get Not Found.

I noticed theres no html file, so i'm not sure how this is supposed to work.

I know amxpanel is doing something as I have debug enabled and it creates an amxpanel.log, but all it says is that Deamon is starting and its done changeToUser on GID, group and UID and then thats it.

I have tried running amxpanel with and without sudo.

What can I do to get this up and running?

Willyarma commented 4 years ago

2020-05-21 15:13:15+0100: { Entry: main(int / argc /, const char **argv) 2020-05-21 15:13:15+0100: Info: amxpanel v1.2.3 2020-05-21 15:13:15+0100: Info: (C) Copyright by Andreas Theofilu andreas@theosys.at. All rights reserved! 2020-05-21 15:13:15+0100: Info: Daemon is starting ... 2020-05-21 15:13:15+0100: { Entry: Daemonize::Daemonize() 2020-05-21 15:13:15+0100: { Entry: daemonize.cpp: 63: Daemonize::daemon_start (bool ignsigcld) 2020-05-21 15:13:15+0100: Daemonize::daemon_start: forking ... 2020-05-21 15:13:15+0100: Daemonize::daemon_start: Parent exit! 2020-05-21 15:13:15+0100: Daemonize::daemon_start: Child goes on ... 2020-05-21 15:13:15+0100: } Exit: daemonize.cpp: 63: Daemonize::daemon_start (bool ignsigcld) 2020-05-21 15:13:15+0100: { Entry: daemonize.cpp: 140: Daemonize::changeToUser(const std::string &usr, const std::string &grp) 2020-05-21 15:13:15+0100: Daemonize::changeToUser: GID=33 2020-05-21 15:13:15+0100: Daemonize::changeToUser: Group changed. 2020-05-21 15:13:15+0100: Daemonize::changeToUser: UID=33

Willyarma commented 4 years ago

Listen=127.0.0.1 HTTP_Root=/usr/share/amxpanel PidFile=/var/run/amxpanel.run LogFile=/home/will/amxpanel.log ClientLog=/home/will/clientlog.log FontPath=/usr/share/amxpanel/fonts WebLocation=/amxpanel WEBSocketServer=localhost AllowedNets=0.0.0.0/24 SidePort=11012 AMXPanelType=Android AMXController=192.168.5.103 AMXPort=1319 AMXChannel=10001 AMXChannel=10002 AMXSystem=1 SSHServer=/etc/amxpanel/server.pem SSHDH=/etc/amxpanel/dh.pem WSStatus=false Debug=1 User=www-data Group=www-data

Willyarma commented 4 years ago

I've just found the internals part of the wiki, it wasnt obvious there is a menu when its on the right! It says that the html file should be auto generated, but it isnt, nor are any javascript files being created and there is no .parsed file.

What am I doing wrong?

Willyarma commented 4 years ago

There is no project.xma only prj.xma, ive renamed the file but still nothing

Willyarma commented 4 years ago

I've moved everything out of /usr/share/amxpanel into my home folder and updated all configs and now its creating the JS and HTML files and I can now bring it up in the browser. Its still not showing in Netlinx Studio as a device though.

Willyarma commented 4 years ago

now im getting wsocket is null in firefox, the websocket port is open though, i can telnet to it.

Willyarma commented 4 years ago

I've found lots more issues, but I will wait for a reply before I post any more.