sibyperiyar / Easy-HotSpot

Easy HotSpot is a super easy WiFi hotspot user management utility for Mikrotik RouterOS based Router devices. Voucher printing in 6 ready made templates are available. Can be installed in any PHP/MySql enabled servers locally or in Internet web servers. Uses the PHP PEAR2 API Client by boenrobot.
http://hotspot.helloperiyar.com
58 stars 48 forks source link

initialization #4

Open PRINCE-MOSE opened 5 years ago

PRINCE-MOSE commented 5 years ago

please help me out during initialization theres an error saying Error connecting to RouterOS

sibyperiyar commented 5 years ago

Dear Prince,

Thank you for your interest in EasyHotSpot.

It is a WiFi hotspot user management application for MikroTik based routers.

First you should have a working Mikrotik router setup in your environment.

The application can be installed in a webserver (Eg. Apache) like any other web application.

Install LAMP (Linux)/Wamp(Windows)/Xamp or a similar one in your local PC or Internet webserver. (Localhost)

Copy the extracted files to the document root ot tothe subfolder of the webserver, (like C:\Bitnami\Wampstack\Apache2\httpdocs...)

Create a MySql database using the PHPMyAdmin and give the Database connection details in the db_config.php file.

Specify the Hotspot credentials (IP, user login details etc) in the hotspot config.php file.

Run/Browse the folder using any web browser(Eg Chrome)

Or

If you are facing any difficulty installing the application, kindly send a mail to jaisonkmly@gmail.com (From configuring Mikrotik Router to making the application work) specifying the difficulty you are facing.

Kindly contact us for any support requires,

Please specify your details, Hardware & Software configuration specification etc while asking support.

Thank you for contacting Us.

Siby P Varkey, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

THANKS FOR THE REPLY BUT ITS STILL COMPLICATED SIR......LETS HAVE A MORE DETAILED COMMUNICATION PLEASE mosejnr.biz@gmail.com whatsapp: +254796773698 thanks

sibyperiyar commented 5 years ago

Please use these set of files included in the zip file. This is the latest version of the Easy HotSpot application.

You just need to remove all the files from the folder and put the extracted files from the attached zip file in the folder.

On Thu, Nov 22, 2018 at 7:49 PM PRINCE_MOSE notifications@github.com wrote:

THANKS FOR THE REPLY BUT ITS STILL COMPLICATED SIR......LETS HAVE A MORE DETAILED COMMUNICATION PLEASE mosejnr.biz@gmail.com whatsapp: +254796773698 thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441044179, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGkLdNFz1NJh0_PvY8a9jXM8UPq_0ks5uxrJegaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

i have done that for the second time....... this is the error it gives on the login page


Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\hotspot2\header.php:983) in C:\xampp\htdocs\hotspot2\login.php on line 2

sibyperiyar commented 5 years ago

Please remove all files from the folder C:\xampp\htdocs\hotspot2\ and replace with the files from the new zip file sent to you.

On Thu, Nov 22, 2018 at 8:16 PM PRINCE_MOSE notifications@github.com wrote:

i have done that for the second time....... this is the error it gives on the login page

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\hotspot2\header.php:983) in C:\xampp\htdocs\hotspot2\login.php on line 2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441051661, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGqoMz4xIRu6WN7vqOfd_AJne6UEOks5uxrjRgaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

have you sent me an updated version or i just download it once more from this repository....? it would be better if you sent the zip directly to me

sibyperiyar commented 5 years ago

Sending again the latest version. (Google Cloud Attached). Remove all older files from the folder and put the extracted files from the new .zip file, link attached herewith. New version of Easy HotSpot https://drive.google.com/open?id=1HQfM8wGnYUEyCbxqJoNkzKVTbk5KMUID

On Thu, Nov 22, 2018 at 8:49 PM PRINCE_MOSE notifications@github.com wrote:

have you sent me an updated version or i just download it once more from this repository....? it would be better if you sent the zip directly to me

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441060500, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGpBSW5RU9wUZ-NxIKBb0ehB7OOSeks5uxsBogaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

yeah got it......i think that one has worked but then theres this error still coming up after i login as admin there are some files missing in the ajax folder eg the settings_db.php help me with this


Warning: include(ajax/settings_db.php): failed to open stream: No such file or directory in C:\xampp\htdocs\hotspot2\login.php on line 26

Warning: include(): Failed opening 'ajax/settings_db.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\hotspot2\login.php on line 26

Notice: Undefined variable: DB_con in C:\xampp\htdocs\hotspot2\login.php on line 29

Fatal error: Call to a member function prepare() on a non-object in C:\xampp\htdocs\hotspot2\login.php on line 29

sibyperiyar commented 5 years ago

Use this link to download the zip file with the settings_xx.php files in the JS folder. Easy Hotspot with all settings files in the JS folder https://drive.google.com/open?id=1BMGvRF0gNME6frS4vp1hbyGKI3tmwy7R Remove all files from the folder and replace with the extracted files from the downloaded zip file. (You may just insert the [1) settings_app.php, 2) settings_db.php, 3) settings_hs.php, 4) settings_mail.php, 5) settings_sms.php] files only to the JS folder also will work. If you want , you may edit those files manually to assign your values, if not working)

Regards

On Fri, Nov 23, 2018 at 4:51 AM PRINCE_MOSE notifications@github.com wrote:

yeah got it......i think that one has worked but then theres this error still coming up after i login as admin there are some files missing in the ajax folder eg the settings_db.php help me with this

Warning: include(ajax/settings_db.php): failed to open stream: No such file or directory in C:\xampp\htdocs\hotspot2\login.php on line 26

Warning: include(): Failed opening 'ajax/settings_db.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\hotspot2\login.php on line 26

Notice: Undefined variable: DB_con in C:\xampp\htdocs\hotspot2\login.php on line 29

Fatal error: Call to a member function prepare() on a non-object in C:\xampp\htdocs\hotspot2\login.php on line 29

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441132913, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGi5F1VbpAUgVr6kpb9e6WQFPLbsVks5uxzFogaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

Hello today i really appreciate your help sir and proud of you.... but help me in configuring the hotspot setup.... the ip we using, username and password belongs to the microtick router or what....?

sibyperiyar commented 5 years ago

You need to give the IP, username and password of the MikroTik router setup.

On Fri, Nov 23, 2018 at 1:19 PM PRINCE_MOSE notifications@github.com wrote:

Hello today i really appreciate your help sir and proud of you.... but help me in configuring the hotspot setup.... the ip we using, username and password belongs to the microtick router or what....?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441172864, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGvWQMhWDITxhoyWvry954Uz8_5W_ks5ux6ilgaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

But what if the router lacks a password at the moment

On Fri, Nov 23, 2018, 11:53 Siby P Varkey <notifications@github.com wrote:

You need to give the IP, username and password of the MikroTik router setup.

On Fri, Nov 23, 2018 at 1:19 PM PRINCE_MOSE notifications@github.com wrote:

Hello today i really appreciate your help sir and proud of you.... but help me in configuring the hotspot setup.... the ip we using, username and password belongs to the microtick router or what....?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441172864 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AX2AGvWQMhWDITxhoyWvry954Uz8_5W_ks5ux6ilgaJpZM4Yu1gL

.

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441183189, or mute the thread https://github.com/notifications/unsubscribe-auth/AfakYM6p2VVrdzrQmOPfQLZ3GaMdrO_Nks5ux7dtgaJpZM4Yu1gL .

sibyperiyar commented 5 years ago

You should configure the MikroTik router for the EHS system to function. Consult MikroTik documentation for the purpose.

On Fri, Nov 23, 2018 at 3:57 PM PRINCE_MOSE notifications@github.com wrote:

But what if the router lacks a password at the moment

On Fri, Nov 23, 2018, 11:53 Siby P Varkey <notifications@github.com wrote:

You need to give the IP, username and password of the MikroTik router setup.

On Fri, Nov 23, 2018 at 1:19 PM PRINCE_MOSE notifications@github.com wrote:

Hello today i really appreciate your help sir and proud of you.... but help me in configuring the hotspot setup.... the ip we using, username and password belongs to the microtick router or what....?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441172864

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AX2AGvWQMhWDITxhoyWvry954Uz8_5W_ks5ux6ilgaJpZM4Yu1gL

.

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441183189 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AfakYM6p2VVrdzrQmOPfQLZ3GaMdrO_Nks5ux7dtgaJpZM4Yu1gL

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441204432, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGr8SpsGkJsCBQQQCclKiqTTpIrwgks5ux82ogaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

PRINCE-MOSE commented 5 years ago

hello i have configured my mikrotik but still gives me this error


Fatal error: Uncaught exception 'PEAR2\Net\Transmitter\SocketException' with message 'stream_socket_client(): unable to connect to tcp://192.168.1.254:8728 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )' in C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\TcpClient.php:225 Stack trace: #0 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\Stream.php(145): PEAR2\Net\Transmitter\TcpClient->createException('stream_socket_c...', 0) #1 [internal function]: PEAR2\Net\Transmitter\Stream->handleError(2, 'stream_socket_c...', 'C:\xampp\htdocs...', 165, Array) #2 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\TcpClient.php(165): stream_socket_client('tcp://192.168.1...', 10060, 'A connection at...', '60', 4, Resource id #10) #3 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\RouterOS\Communicator.php(167): PEAR2\Net\Transmitter\TcpClient->__construct('192.168.1.254', 8728, false, NULL, 'admin in C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\RouterOS\Communicator.php on line 169

sibyperiyar commented 5 years ago

Ok, you manually put the IP, username and password in the 'settings_hs.php' file. Instead of 192.168.1.x you need to place your hotspot's IP address. Username & Password are the ones you used to access the mikrotik user manager(Created by you when configuring your MikroTik Hotspot setup)

On Sat, Nov 24, 2018 at 7:09 PM PRINCE_MOSE notifications@github.com wrote:

hello i have configured my mikrotik but still gives me this error

Fatal error: Uncaught exception 'PEAR2\Net\Transmitter\SocketException' with message 'stream_socket_client(): unable to connect to tcp:// 192.168.1.254:8728 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )' in C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\TcpClient.php:225 Stack trace: #0 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\Stream.php(145): PEAR2\Net\Transmitter\TcpClient->createException('stream_socket_c...', 0)

1 https://github.com/sibyperiyar/Easy-HotSpot/pull/1 [internal

function]: PEAR2\Net\Transmitter\Stream->handleError(2, 'stream_socket_c...', 'C:\xampp\htdocs...', 165, Array) #2 https://github.com/sibyperiyar/Easy-HotSpot/pull/2 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\Transmitter\TcpClient.php(165): stream_socket_client('tcp://192.168.1...', 10060, 'A connection at...', '60', 4, Resource id #10) #3 https://github.com/sibyperiyar/Easy-HotSpot/pull/3 C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\RouterOS\Communicator.php(167): PEAR2\Net\Transmitter\TcpClient->__construct('192.168.1.254', 8728, false, NULL, 'admin in C:\xampp\htdocs\hotspot2\ajax\PEAR2\Net\RouterOS\Communicator.php on line 169

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-441368624, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGvgwewpFhPSxIEzAV1-kT-GFw_wYks5uyUwjgaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com

fettha commented 5 years ago

Hi sebyperiyar, can you help me please? it's urgent. I downloaded the latest version of Easy hotspot as you have given in previous comments but after i login as admin i have this error.

( ! ) SCREAM: Error suppression ignored for

( ! )Notice: Undefined variable: DB_con in C:\wamp\www\EHS\login.php on line 29

1 | 0.0009 | 155424 | {main}( ) | ..\login.php:0 ( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to a member function prepare() on a non-object in C:\wamp\www\EHS\login.php on line 29

sibyperiyar commented 5 years ago

Hello,

Thank you for contacting us.

Kindly check whether PDO is enable/installed in your PHP installation, please.

Thanks & Regards,

Siby P Varkey

On Fri, Mar 29, 2019 at 1:01 AM fettha notifications@github.com wrote:

Hi sebyperiyar, can you help me please? it's urgent. I downloaded the latest version of Easy hotspot as you have given in previous comments but after i login as admin i have this error. ( ! ) SCREAM: Error suppression ignored for ( ! )Notice: Undefined variable: DB_con in C:\wamp\www\EHS\login.php on line 29 1 | 0.0009 | 155424 | {main}( ) | ..\login.php:0 ( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to a member function prepare() on a non-object in C:\wamp\www\EHS\login.php on line 29

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sibyperiyar/Easy-HotSpot/issues/4#issuecomment-477739741, or mute the thread https://github.com/notifications/unsubscribe-auth/AX2AGgmSBe5iGkG7DPSx6uPV4l6WZEymks5vbRiSgaJpZM4Yu1gL .

-- Zetozone Technologies (India) Pvt. Ltd Karippayil Building, Holiday Home Junction N.H. 183, Kumily P.O., Idukki District Kerala - 685 509 Ph:04869 224691, 09020 150 150 Web: www.zetozone.com E-Mail: mail@zetozone.com, sibyperiyar@gmail.com