Giter Club home page Giter Club logo

moess's Introduction

moeSS

moeSS is a front end for https://github.com/mengskysama/shadowsocks/tree/manyuser

Thanks to ss-panel https://github.com/orvice/ss-panel

Demo: https://ss.qaq.moe

Install

  • 中文安装说明
  • Wiki
  • Import shadowsocks.sql to your database. May delete your existing data!
  • Rename config-sample.php and database-sample.php in application/config/, then change the settings.
  • Use admin/admin12345 to login the admin dashboard, and change settings in http://your.domain.com/admin/system_config.html
  • To prevent spam register, users need to click a link to activate the account. So you need to set a method to send e-mail. Currently support php mail(), sendmail, SMTP and SendGrid Web API. (Send test E-mail function will be added soon)
Method option_value
php mail() mail
sendmail sendmail
SMTP smtp
SendGrid sendgrid

Only change this is not enough. You also need to change other values need by the method you choose.

  • Invite only is default on. You need to generate invite code before anyone can registe.
  • Because I don't use any encrypt function when post the data, you are suggesting to secure your site by using SSL certs.
  • Many notices and sentences are written directly in the view files, so you need to edit the file to change them. They may moved to database in the future.

Upgrade

If database structure has been changed after update, I will upload a sql file in update folder. Just use that sql file to update database structures.

License

The license under which the moeSS is released is the GPLv3 (or later) from the Free Software Foundation. A copy of the license is included with every copy of moeSS, but you can also read the text of the license here. In addition, I request anyone who uses this software do not change the CopyRight information.

Requires

  • This system is using CodeIgniter 3.0 to build, so you need PHP 5.4 or newer, MySQL (5.1+), curl to run.
  • Apache is the best one because it support .htaccess file, which is needed to rewrite the request uri to index.php.

moess's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moess's Issues

如何修改管理员密码

管理员默认密码admin,如果要修改,需要输入原密码,但是输入原密码后,会提示“Please enter at least 6 characters.”。那该如何修改管理员密码呢?

关于流量重置的问题

不知道是我设置的问题还是作者您特意的,我这里用户每月的流量是没有清除的。。。是需要自行设置吗?还是我的部署有问题?

我现在每月流量重置我是通过在mysql中设定event实现的:
CREATE EVENT monthly_reset
ON SCHEDULE EVERY 1 MONTH
STARTS '2015-05-01 00:01:00'
DO UPDATE user SET u = '0', t = ‘0’ WHERE plan = '3G' OR plan = '5G' OR plan = '10G'

登录提示错误

POST http://moe.com/user/login_check.html 404 (Not Found)
网站是可以跑起来的,但是往后台post数据就说404,但是直接访问链接是可以找到的,后台调试$_POST里面是空的,什么问题呢?

一个moeSS如何管理多台VPS上的shadowsocks manyuser

VPS A 搭建了moeSS + shadowsocks manyuser
VPS B 只搭建了shadowsocks manyuser ,数据库配置的是用VPS A的
现在想通过把VPS B上shadowsocks manyuser接入到VPS A上的 moeSS面板进行管理
VPS A的Config.py 中的配置:

Config

MYSQL_HOST = 'localhost'
MYSQL_PORT = 3306
MYSQL_USER = 'shadowsocks'
MYSQL_PASS = 'password'
MYSQL_DB = 'shadowsocks'

MANAGE_PASS = '123456'

if you want manage in other server you should set this value to global ip

MANAGE_BIND_IP = '107.170.250.196'

make sure this port is idle

MANAGE_PORT = 23333

VPS B的Config.py 中的配置:(VPS A IP=107.170.250.196)

Config

MYSQL_HOST = '107.170.250.196'
MYSQL_PORT = 3306
MYSQL_USER = 'shadowsocks'
MYSQL_PASS = 'password'
MYSQL_DB = 'shadowsocks'

MANAGE_PASS = '123456'

if you want manage in other server you should set this value to global ip

MANAGE_BIND_IP = '107.170.250.196'

make sure this port is idle

MANAGE_PORT = 23333

python server.py启动 VPS B 上的出现以下错误:

INFO: loading config from config.json
shadowsocks 2.6.8
2015-02-27 16:02:00 ERROR [Errno 99] Cannot assign requested address
Traceback (most recent call last):
File "/home/shadowsocks/shadowsocks/server_pool.py", line 64, in _loop
mgr.add_to_loop(loop)
File "/home/shadowsocks/shadowsocks/asyncmgr.py", line 49, in add_to_loop
self._sock.bind((Config.MANAGE_BIND_IP, Config.MANAGE_PORT))
File "", line 1, in bind
error: [Errno 99] Cannot assign requested address
Unhandled exception in thread started by <function _loop at 0xb72d6bfc>
Traceback (most recent call last):
File "/home/shadowsocks/shadowsocks/server_pool.py", line 71, in _loop
os.exit(0)
AttributeError: 'module' object has no attribute 'exit'

求问,该如何解决

又来一个~!~

A PHP Error was encountered

Severity: Error

Message: Call to undefined method User_model::get_goods()

Filename: controllers/User.php

Line Number: 929

Backtrace:

报的这个错,应该是get_goods()没这个方法~~

关于启用ssl的问题

shadowsocks这类的东西最好还是使用ssl比较好,特别是牵涉到多用户的时候。
所以我尝试直接开启ssl,但是发现直接启用ssl的话会不能正常显示,现在正在尝试修改中。希望John能尽快将这个的ssl解决方案发布出来,期待~~

MoeSS SS NODE

#1146 - Table '1044678.ss_node' doesn't exist

That is only one error that i found..

How do i fix this one?

管理套餐和购买流量界面都打不开

首先解释一下,本人不懂代码,github也不太会用,小白之处还望体谅,你这个项目蛮好的,我拿来做前端跟几个朋友分享,感谢您的劳动。
sql已经正常导入了,也能看见goods的表了,下面是问题的描述。
管理界面:admin/goods.html
报错:The page you requested was not found.
购买界面:user/view_goods.html
报错:
Fatal error: Call to undefined method User_model::get_goods() in /webroot/application/controllers/User.php on line 902

A PHP Error was encountered

Severity: Error

Message: Call to undefined method User_model::get_goods()

Filename: controllers/User.php

Line Number: 902

Backtrace:

然后我简单做了个grep,大概是这个样子的
grep -ri get_goods ./*
./application/controllers/User.php: $data['goods'] = $this->user_model->get_goods();
不懂代码,但是感觉这个get_goods就出现了一次怎么都不对吧?

用户名不合法

用户名为jyang2时注册提示

用户名不合法!

还有其他的某些组合也提示不合法。不知道是什么原因。

Message: touch(): Unable to create file

A PHP Error was encountered

Severity: Warning

Message: touch(): Unable to create file moess_session/asiass_session{this is an example} because No such file or directory

Filename: drivers/Session_files_driver.php

Line Number: 228

Backtrace:


在绝大多数管理后台和用户登录、后台出现。
已将session目录权限设为777

config-sample.php文件笔误

在创建数据库语句里面是moess_sessions
CREATE TABLE IF NOT EXISTS moess_sessions (
id varchar(40) NOT NULL,
ip_address varchar(45) NOT NULL,
timestamp int(10) unsigned DEFAULT 0 NOT NULL,
data blob DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY ci_sessions_timestamp (timestamp)
);
但是config-sample.php文件中写的是
$config['sess_save_path'] = 'moess_session';

系统邮件smtp参数错误

application/helpers/comm_helper.php

173,174行:
$config['crlf'] = '\r\n';
$config['newline'] = '\r\n';
value应该改成双引号,不然不能识别转义符。

修改后已测试连接腾讯企业邮通过。

SS server的连接如何配置呢?

能成功的运转moeSS了。
但是不明白moeSS如何控制ss server?

比如新用户注册了,得到了ss server的地址和端口号,moeSS是怎么更新ss server的配置呢?

在中文教程中提醒启用Rewrite

Apache Config Guide中提醒了启用Rewrite,但evernote上的中文教程中没有提及,建议加一句,防止一些用户直接用Apache默认的,没有开启Rewrite的配置 :)

Readme.md关于升级状态描述不明晰

没有说清楚sql升级patch是否是各版本通用的。
比如说我现在的情况是

commit 684dc4b2f4e2e557f5b005feac8b9f27c91eb512
Merge: d9fa5f0 6fe2ac6

我就不知道update用的sql是否可用。

建议使用commit的id来命名升级用的sql,比如从[旧commit id][新id].sql

关于时区设定的问题

A PHP Error was encountered

Severity: Runtime Notice

Message: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead

Filename: views/index_footer.php

Line Number: 42

Backtrace:

File: /var/www/moeSS/application/views/index_footer.php
Line: 42
Function: date

File: /var/www/moeSS/application/views/site_index.php
Line: 99
Function: view

File: /var/www/moeSS/application/controllers/SiteIndex.php
Line: 45
Function: view

File: /var/www/moeSS/index.php
Line: 292
Function: include

配置文件出错

这个是需要把config-sample 改为config.php吗?我没改之前说配置不存在,改了之后说提示

Parse error: syntax error, unexpected 'base_url' (T_STRING) in /home/wwwroot/shadow/application/config/config.php on line 67

我的67行是这个

$config['base_url'] = 'http://ss.apkdv.com/';

php错误

Uploading DFB2ACB8-A0D8-4A9C-B102-7841439780F3.png…
除主页外所有页面都显示这个错误,请问是什么回事?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.