• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Is php-mysql supported by pfSense 2.0? And where to put my php cron jobs?

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 4 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    torontob
    last edited by Oct 7, 2011, 9:41 PM

    Hi everyone,

    I have just made a php file which extracts ping results to my main server and then stores data to MySQL on my main server.

    1- What directory is the best place to put this .php file on a stock pfSense 2.0 install so that it can be called and run from cron job?
    2- Does pfSense 2.0 stock has php-mysql installed? or do I have to install that as a package? please guide.

    Thanks

    1 Reply Last reply Reply Quote 0
    • L
      luke240778
      last edited by Oct 8, 2011, 3:20 AM

      I would have to guess that a stock build has got php running as the Web GUI is php..

      As far as where to put the file, i also don't know sorry.

      1 Reply Last reply Reply Quote 0
      • T
        tommyboy180
        last edited by Oct 8, 2011, 10:34 PM

        pfsense doesn't have mysql installed by default. Take a look at installed packages by running```
        pkg_info

        I don't think it is a good idea to have that file running on pfsense. You may create a vulnerability or open pfsense for attack when doing this. Good luck!

        -Tom Schaefer
        SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

        Please support pfBlocker | File Browser | Strikeback

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Oct 14, 2011, 3:51 PM

          Running the MySQL client isn't as dangerous as the server, so it's not too bad there.

          That said, you'd have to compile php52-mysql, which can be done using a pfSense builder setup (check the doc wiki), and then copy the files over to the firewall.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received