Closed Mizukamakiri closed 10 years ago
Here is my main.xml
<?xml version="1.0" encoding="utf-8" ?>
<jappix xmlns="jappix:conf:main">
<name>Snoik Chat</name>
<desc>a free social network</desc>
<owner_name>Snoik</owner_name>
<owner_website>http://snoik.com</owner_website>
<legal>http://snoik.com/legal.htm</legal>
<language>all</language>
<resource>Snoik</resource>
<lock>off</lock>
<anonymous>off</anonymous>
<http_auth>on</http_auth>
<registration>on</registration>
<manager_link>on</manager_link>
<groupchats_join>test@muc.snoik.com</groupchats_join>
<groupchats_suggest>on</groupchats_suggest>
<encryption>on</encryption>
<https_storage>off</https_storage>
<https_force>off</https_force>
<compression>off</compression>
<caching>on</caching>
<analytics_track>off</analytics_track>
<analytics_url></analytics_url>
<analytics_id></analytics_id>
<ads_enable>off</ads_enable>
<ads_standard></ads_standard>
<ads_content></ads_content>
<gads_client></gads_client>
<gads_slot></gads_slot>
<multi_files>off</multi_files>
<developer>off</developer>
<statistics>on</statistics>
<register_api>on</register_api>
<xmppd_ctl>/usr/local/bin/metronomectl</xmppd_ctl>
<xmppd>metronome</xmppd>
</jappix>
Please check that your webserver is able to execute the metronomectl binary. This is most likely caused by www-data:www-data not being able to run metronomectl, UNIX-wise.
(check that by logging in to this user in a shell, using sudo su
).
Thank you for answering! =)
However...
root@ubuntu:~# su www-data
www-data@ubuntu:/root$ sudo /usr/local/bin/metronomectl adduser wwtest@snoik.com wwtest
User successfully added
www-data@ubuntu:/root$
and in sudoers:
www-data ALL= NOPASSWD: /usr/local/bin/metronomectl
Also, in Chrome console with Jappix in dev mode i get this when i try to register.
Name.getNick ReferenceError {stack: (...), message: "con is not defined"}
This is because Jappix couldn't connect. Can I have an access to your instance for debugging purposes? Just on the Web-side.
Sure thing, what do you need?
oh, apache error log shows
sudo: PERM_ROOT: setresuid(0, -1, -1): Operation not permitted
Getting close. Any ideas what can be causing this?
Apache is unable to execute metronomectl via PHP-CGI.
You need to allow this command in the sudoers file.
my sudoers contains:
# User privilege specification
root ALL=(ALL:ALL) ALL
www-data ALL=(ALL:ALL) NOPASSWD: /usr/local/bin/metronomectl
isnt this correct?
Ours (Jappix.com):
# metronomectl command access from PHP
www-data ALL= NOPASSWD: /usr/local/bin/metronomectl
No joy...
i even tried the now commented ones, but that didnt work either. i can run metronomectl from the command line as www-data with no problems..
# User privilege specification
root ALL=(ALL:ALL) ALL
www-data ALL= NOPASSWD: /usr/local/bin/metronomectl
# www-data ALL=(ALL) NOPASSWD: /usr/local/bin/metronomectl
# www-data ALL=NOPASSWD: ALL
running this on a test.php also gives the same error...
<?php
exec('sudo -u www-data /usr/local/bin/metronomectl adduser www2@snoik.com www2');
?>
Im sure it's running as www-data
root@ubuntu:/home/websites/snoik.com/http/server# ps aux | grep apache2
www-data 27284 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27285 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27286 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27287 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27288 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27297 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27298 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27299 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27300 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
www-data 27301 0.0 0.4 395600 8856 ? S 11:02 0:00 /usr/sbin/apache2 -k start
root 28004 0.0 0.0 13444 916 pts/0 S+ 11:13 0:00 grep --color=auto apache2
root 58128 0.0 1.0 395568 21932 ? Ss 02:39 0:02 /usr/sbin/apache2 -k start
root@ubuntu:/home/websites/snoik.com/http/server#
Running out of ideas here..... =(
Fixed:
Disabled mpm_itk module in apache.
Hi, Having trouble getting these to work together... here is my metronome config:
i can create users with metronomectl adduser, and can also login after i create them with that command. But i cant create users using Jappix. Also, the users created using metronomectl adduser don't show on Jappix - Users.
Some help?