Jump to content
Get 20% off with our White Friday Deal🥳 ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

On 9/19/2024 at 5:16 AM, Magd Almuntaser said:

you can use your ip or your domain..
It all depends on the hosting you use and I will explain some points:

1- If you use shared hosting, you will face the problem that the IP is not for you alone, but for several people, and you will not be able to use the IP in the WhatsApp server, so you will have to use the domain.

2- Some hosting can use one IP for several sites, but they allow sharing ports, meaning that you can use the IP in the WhatsApp server, but these hosting companies are rare.

3- If you use VPS, you have your own IP and you can use it as a WhatsApp server.

Note: Even if you are using VPS or shared hosting, you may face a problem that if you put the IP or domain in the WhatsApp server, it will not work because some shared hosting or VPS settings use IPv6, and this is the biggest problem for the socket, as IPv4 must be used for external connection, and you can solve it in two ways (the first is to contact the hosting company to stop IPv6 on your site or VPS) (the second is to modify the server.js file to connect to the external IP, which is 0.0.0.0, and IPV4 will be used automatically).

In your situation, your problem was that your site uses IPV6, and when you put your site's IP, the socket knows that it must connect using IPv4.

========================

Final note: Videos will be uploaded soon for the steps to install the script in aapanel, cpanel and vps.. and video to fix your problem with your site yourself.. As version 8.5.1 is free of any errors or problems in installation and running except if there is a bug in the design ..


The most important advice for users of shared hosting:
Try before paying a site and before you search for the cheapest hosting in the world that you will use a script to send and receive and link several numbers and your messages may reach thousands of advertising messages to your customers per minute.. Think before you choose and you can contact the company before paying in order to know whether the hosting specifications are suitable for you or not.. I do not want to mention the names of hosting companies to avoid them, but the most important point you can ask your company about is virtual ram for processes (nodejs) that it is equal to more than 4MB, for example 32MB and above. You can tell the hosting company to tell you how much the result is for (ulimit -v) command if it is greater than 4914304 because this is the default value that most hosting companies leave as is without change and the user falls into their trap as this number will not even run a txt file in the node..

Hello, here is the error in my aapanel pm2 manager, after setting it up, it's not running and showing this error.

[PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set! [PM2][Initialization] Defaulting to /etc/.pm2 [PM2][ERROR] Script not found: /www/server/panel/ndoepunke ,please take a look

  • Like 1
Link to comment
Share on other sites

28 minutes ago, Johnson Liu said:

Hello, here is the error in my aapanel pm2 manager, after setting it up, it's not running and showing this error.

[PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set! [PM2][Initialization] Defaulting to /etc/.pm2 [PM2][ERROR] Script not found: /www/server/panel/ndoepunke ,please take a look

This problem come from aapanel itself.

Try using node project, or use pm2 on terminal. Aapanel buggy bro

  • Like 1
Link to comment
Share on other sites

1 hour ago, Johnson Liu said:

Hello, here is the error in my aapanel pm2 manager, after setting it up, it's not running and showing this error.

[PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set! [PM2][Initialization] Defaulting to /etc/.pm2 [PM2][ERROR] Script not found: /www/server/panel/ndoepunke ,please take a look

May I ask bro, what version do you using mpwa? Lates?

 

If yes, this mpwa have modified can running without pm2, if you consent it a stabillity for the apps, you just run the node js without pm2. For the case if stopped running, it can set cron job for 1 hour to restrat the node js.

May this help you.

Link to comment
Share on other sites

1 hour ago, kecoamumet said:

pake script absensi apa bang? boleh share?

   $url = $link . "?api_key=" . $token . "&sender=" . $sender . "&number=" . $nomorwa . "&message=" . urlencode($isipesan);

                curl_setopt($curl, CURLOPT_URL, $url);
                curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);

                $response_wa = curl_exec($curl);
                if (curl_errno($curl)) {
                  $error_msg = curl_error($curl);
                  error_log('cURL error: ' . $error_msg);
                }
                curl_close($curl);
                error_log('MPWA response: ' . print_r($response_wa, true));
              }
            }


itu mas, saya pake php

Edited by Supriyatna
Link to comment
Share on other sites

5 hours ago, Enno The Explorer said:

buat pakai google appsheet aja bang, mudah klo absensi, tinggal dihubungkan dengan mpwa

gmn bang flownya? boleh di share appsheetnya mas?

Edited by kecoamumet

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

@Magd Almuntaser

Hello sir, I'm having a little trouble with "Waiting for node server". I'm using cPanel with Node.js version 20.14.0. I just encountered this problem today. A few days ago, everything was fine. But now, all my users are complaining about this.

I've also read some similar problems on this forum but my problem still hasn't been resolved.

Can you give me a solution to my problem, sir?

Screenshot2024-09-20213154.thumb.png.62dd0573d567714b028bf670b47fe017.png

Screenshot2024-09-20213628.png.8aba3e007ffc383cf307c1c089fd993d.png

Link to comment
Share on other sites

  • DW Members
10 minutes ago, Ilhamstore said:

@Magd Almuntaser

Hello sir, I'm having a little trouble with "Waiting for node server". I'm using cPanel with Node.js version 20.14.0. I just encountered this problem today. A few days ago, everything was fine. But now, all my users are complaining about this.

I've also read some similar problems on this forum but my problem still hasn't been resolved.

Can you give me a solution to my problem, sir?

Screenshot2024-09-20213154.thumb.png.62dd0573d567714b028bf670b47fe017.png

Screenshot2024-09-20213628.png.8aba3e007ffc383cf307c1c089fd993d.png


Make sure that the node is working by typing your site link in the browser with the port number, for example:

http://yoursite.com:3100


If your site opens normally, it means that the node is working, but if it doesn't open, there is a problem with the node..
Since you are using cpanel, you can open the terminal and write these commands and send a screenshot so I can know what your problem is:
 

cd wa.yoursite.com

ulimit -v

/opt/alt/alt-nodejs20/root/usr/bin/node server.js

You can send the screenshot to my private messages if you do not want your site link to appear here.

  • Like 1
Link to comment
Share on other sites

19 minutes ago, Magd Almuntaser said:


Make sure that the node is working by typing your site link in the browser with the port number, for example:

http://yoursite.com:3100


If your site opens normally, it means that the node is working, but if it doesn't open, there is a problem with the node..
Since you are using cpanel, you can open the terminal and write these commands and send a screenshot so I can know what your problem is:
 

cd wa.yoursite.com

ulimit -v

/opt/alt/alt-nodejs20/root/usr/bin/node server.js

You can send the screenshot to my private messages if you do not want your site link to appear here.

As requested, sir, I have sent you a private message with a screenshot of my terminal. Kindly review it. Thank you.

Link to comment
Share on other sites

  • DW Members
26 minutes ago, Ilhamstore said:

As requested, sir, I have sent you a private message with a screenshot of my terminal. Kindly review it. Thank you.

I replied to you and told you that your problem was that you using https not http.. because you do not have SSL on your site..

Link to comment
Share on other sites

4 hours ago, kecoamumet said:

gmn bang flownya? boleh di share appsheetnya mas?

try my app for attendance for school,
it support RFID, Fingerprint, Barcode, and QR Code. also with notification to orang tua melalui WA.
 

Edited by angga turki
add some word
Link to comment
Share on other sites

7 hours ago, angga turki said:

try my app for attendance for school,
it support RFID, Fingerprint, Barcode, and QR Code. also with notification to orang tua melalui WA.
 

wow.. awesome boleh di share bang?

11 hours ago, Enno The Explorer said:

via wa aja bang, nnti ngobrol cari waktu sy remote anydeskan cara pembuatannya dengan google appsheet

siyap.. nanti japri

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...