Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Modules #62

Open
aaro7 opened this issue Jun 17, 2014 · 17 comments
Open

Server Modules #62

aaro7 opened this issue Jun 17, 2014 · 17 comments

Comments

@aaro7
Copy link

aaro7 commented Jun 17, 2014

Hi
I'm running this code on my server

php -m

and
I received a list of installed modules


[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
Xdebug


What module does not exist?
Because I'm getting these messages in Spika-Android
spikaeror

Or why I get this error?

@jgkeightley
Copy link

What's the contents of your utils/ConstServer.java file?


I have the following modules installed

php -m

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Xdebug
Zend OPcache

@aaro7
Copy link
Author

aaro7 commented Jun 17, 2014

HI @jgkeightley


public class ConstServer {
public static final String BASE_URL = "http://MY-IP/Spika-Server/wwwroot";
public static final String INFORMATION_URL = "http://MY-IP/Spika-Server/wwwroot/page/information/";
public static final String LIST_SERVERS_URL = BASE_URL + "/" + Const.API_FOLDER + "servers";
}


@TTMTT
Copy link
Contributor

TTMTT commented Jun 17, 2014

@aaro7
hmmm, send msg (server info, like url or ip) to my email
i will try link my app to ur server

@jgkeightley
Copy link

For me it didn't work unless I had api.php at the end of base url

e.g.

package com.cloverstudio.spika.utils;

public class ConstServer {

/* Change to your server address 
 * Spika admin dashboard instructs to add: public static final String BASE_URL = "http://ip/Spika-Server/wwwroot";
 * BASE_URL requires /api.php at the end of the URL
 * */
public static final String BASE_URL = "http://ip/Spika-Server/wwwroot/api.php"; 
public static final String INFORMATION_URL   = "http://ip/Spika-Server/wwwroot/page/information/";
public static final String LIST_SERVERS_URL = BASE_URL + "/" + Const.API_FOLDER + "servers";

}

@TTMTT
Copy link
Contributor

TTMTT commented Jun 19, 2014

@jgkeightley

becoz you have some errors in ur apache..

@jgkeightley
Copy link

Any suggested fix then?

@TTMTT
Copy link
Contributor

TTMTT commented Jun 19, 2014

@jgkeightley
try open:
http://ip/Spika-Server/wwwroot

and tell me what you see..

@jgkeightley
Copy link

@TTMTT
Sorry, the page you are looking for could not be found.

2/2NotFoundHttpException: No route found for "GET /"
in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 144
at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(EventDispatcher)) in /var/www/Spika-Server/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch(array(array(object(SessionServiceProvider), 'onEarlyKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), object(Closure), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in /var/www/Spika-Server/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 107
at HttpKernel->handleRaw(object(Request), '1') in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 66
at HttpKernel->handle(object(Request), '1', true) in /var/www/Spika-Server/vendor/silex/silex/src/Silex/Application.php line 516
at Application->handle(object(Request)) in /var/www/Spika-Server/vendor/silex/silex/src/Silex/Application.php line 493
at Application->run() in /var/www/Spika-Server/wwwroot/index.php line 5
1/2ResourceNotFoundException:
in /var/www/Spika-Server/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php line 96
at UrlMatcher->match('/') in /var/www/Spika-Server/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php line 30
at RedirectableUrlMatcher->match('/') in /var/www/Spika-Server/vendor/silex/silex/src/Silex/LazyUrlMatcher.php line 51
at LazyUrlMatcher->match('/') in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 126
at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(EventDispatcher)) in /var/www/Spika-Server/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch(array(array(object(SessionServiceProvider), 'onEarlyKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), object(Closure), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in /var/www/Spika-Server/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 107
at HttpKernel->handleRaw(object(Request), '1') in /var/www/Spika-Server/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 66
at HttpKernel->handle(object(Request), '1', true) in /var/www/Spika-Server/vendor/silex/silex/src/Silex/Application.php line 516
at Application->handle(object(Request)) in /var/www/Spika-Server/vendor/silex/silex/src/Silex/Application.php line 493
at Application->run() in /var/www/Spika-Server/wwwroot/index.php line 5

@TTMTT
Copy link
Contributor

TTMTT commented Jun 19, 2014

@jgkeightley
my friend ..you don't have (vendor) or you don't enable mod_write..
send your server info to my email i will fix this problem ..
ttmtt-team@hotmail.com

@burakkya
Copy link

hi, i install this code to my server and same problem when try open http://ip/Spika-Server/wwwroot
And other problem,i download from appstore spika app,i write my server adress in app, when i try to sign in or sign up there is error that username or password incorrect,but i check my database new user added

Edit: i solved the problem, chance open_basedir value: none in php settings

@bipinct
Copy link

bipinct commented Mar 7, 2015

Hi, I did enabled mod_rewite but still getting error

screenshot from 2015-03-07 10 34 48

@KojoePi
Copy link

KojoePi commented Mar 24, 2015

So i installed spika on my Raspberry. Made a mysql database. I get the same two errors as bipin000 when i try to open my-ip/Spika-Server/wwwroot. Did anyone have a solution? I am running nginx not apache!

@bipinct
Copy link

bipinct commented Mar 24, 2015

@KojoePi hi the above error you will have to fix but you can access client and server module by
configure your ip in config>init.php
http://your-ip/spika-server/wwwroot/client/login
http://your-ip/spika-server/wwwroot/admin/login

@KojoePi
Copy link

KojoePi commented Mar 24, 2015

I will test it later and leave a reply if it works. Anyway: Are you using it to chat eith friends? Whats your experience?

@KojoePi
Copy link

KojoePi commented Mar 24, 2015

doesnt work. the Urls you dont work too, because there are no folders like admin or client in wwwroot!

@bipinct
Copy link

bipinct commented Mar 25, 2015

@KojoePi , then you have to built dependencies by using command > php composer.phar

@snetts
Copy link

snetts commented Jan 20, 2016

@KojoePi The URLS work fine. Just @Bipin000 says, you have to build the dependencies using composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants