puppeteer setup needed to run plugin

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 11 replies, 2 voices, and was last updated 3 years, 11 months ago by Szabi – CodeRevolution.

Viewing 11 reply threads
  • Author
    Posts
    • #2550


      cng1
      Participant
      Post count: 11

      I am running on plesk.  Seems to use plesk for node.js your have to create subdomains or full domains that are standalone and can not run wordpress.

      So I have two possible configurations:

      1.

      example.com – wordpress

      hba.example.com – running node.js puppeteer

      Currently I believe the current puppeteer 5.5 won’t run using the plesk extensions that are using node 12.6 and npm 1.6 are failing to create a working example

      2.

      The other is to install node.js and puppeteer behind plesk directly on my centos 7 server.

      I have installed to a directory using steps like this article https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/

      The test script works

       

      What do you need for the plugin to use peppeteer on my server?

      thank you

    • #2551


      cng1
      Participant
      Post count: 11

      I purchase url to rss around 12/1/2020

    • #2552


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hello,

      I can offer this tutorial video showing how to install Puppeteer on Linux: https://www.youtube.com/watch?v=XkVfYWRZpko

      I hope this helps. if not, let me know.

      Regards,

      Szabi – CodeRevolution.

    • #2553


      cng1
      Participant
      Post count: 11
      This reply has been marked as private.
    • #2554


      cng1
      Participant
      Post count: 11
      This reply has been marked as private.
    • #2555


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hello,

      Please check this tutorial for CentOS 7: https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/

      Yes, after I finished the video, puppeteer is installed and available on the server. However, if you don’t install puppeteer globally, using the -g flag in the install command

      npm install -g puppeteer

      than, it will be available only in the folder where you install it. So, if you don’t want to install it globally, you will have to place it in the folder where you wish to use it (in the case of the Crawlomatic plugin, in the \wp-content\plugins\crawlomatic-multipage-scraper-post-generator\res\puppeteer folder.

      Regarding Plesk, I am not an expert in it, I can recommend this tutorial with info on installing nodejs on it: https://www.plesk.com/blog/product-technology/node-js-plesk-onyx/

      If you don’t manage to install it, I can recommend migrating your site to a server where Linux bash will be available (Google Cloud Hosting or DigitalOcean droplets).

      I hope this info helped.

      Regards.

    • #2560


      cng1
      Participant
      Post count: 11

      Ok thank you. The plesk stuff seems to be oriented around the node express server and not a node library, like puppeteer.

      So I have done npm install -g puppeteer

      ~#npm -g list
      /usr/lib
      ├── n@7.0.0
      ├── npm@7.4.0
      └── puppeteer@5.5.0

      So when I install your rss to url plugin it will immediately be able to use puppeteer without doing anything else?

      thank you

    • #2561


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hello,

      Yes, if there are no server side or WordPress side restrictions, than puppeteer should be available instantly also on your WordPress site.

      You can use the WPTerm plugin on your WordPress site to check if it is available: https://wordpress.org/plugins/wpterm/ – it will emulate a terminal inside of WordPress, where you can test it.

      Regards.

    • #2565


      cng1
      Participant
      Post count: 11

      Thank you for the notes.

      After npm -g install puppeteer, seems it did not complete something but I don’t know what that is.

      If I try to run one of the puppeteer examples/screenshot.js from the examples dir it fails in both

      wpterm and linux term thro same error

      $ node screenshot.js
      node:internal/modules/cjs/loader:928
      throw err;
      ^

      Error: Cannot find module ‘puppeteer’

       

    • #2566


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hosting provider’s support might be needed to be asked for help on this, they might require some settings from their part to make puppeteer available for you site.

    • #2567


      cng1
      Participant
      Post count: 11

      This is a dedicated  server. I control it. No support. That is why i use plesk.

      What does not make any sense is that i have installed and removed other packages on the server and have not had any problems. Those apps ran listening on ports. Ie voip etc.

      Looking over a dozen sites explaining npm simple install i see others having issues with puppeteer recent version.

      What are you running?

       

    • #2570


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      I am running puppeteer 6.14.6 on my local testing environment.

      But on other servers I installed also latest puppeteer versions available and for me, they worked.

      If possible, please send me temporary admin login credentials to your site + access to your server console and I will try to make puppeteer work for you. My email is kisded@yahoo.com

      However, I cannot promise I will manage to make it work, I am not a Linux/Plesk expert, but I can try.

      Regards.

Viewing 11 reply threads

The topic ‘puppeteer setup needed to run plugin’ is closed to new replies.