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

    APC Cache

    Scheduled Pinned Locked Moved webGUI
    9 Posts 4 Posters 2.0k 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.
    • M
      mnslck
      last edited by

      Hi firends,

      I must disable APC for our project on /usr/local/www/X directory.

      1-I'm edited apc Off on /usr/local/etc/php.ini and /usr/local/lib/php.ini files,

      2-I write php_flag apc.cache_by_default Off code on .htaccess

      But it did not. Can you help me?

      Regards.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        There's no .htaccess with lighttpd. Plus, your project does NOT belong on firewall. Stop using this as webserver.

        1 Reply Last reply Reply Quote 0
        • M
          mnslck
          last edited by

          @doktornotor:

          There's no .htaccess with lighttpd. Plus, your project does NOT belong on firewall. Stop using this as webserver.

          Thank you for fast answer firstly. I didn't know will not work .htaccess with lighttpd. But i must disable APC.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            why must you disable apc on a firewall?  That only gui access should be from an admin workstation?

            But if you really wanted to mess with the modules loaded, I would think you would do it in this file /etc/rc.php_ini_setup

            From a quick look see if you don't have at least 512 its not enabled anyway

            MIN_REALMEM_FOR_APC=512

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • M
              mnslck
              last edited by

              @johnpoz:

              why must you disable apc on a firewall?  That only gui access should be from an admin workstation?

              But if you really wanted to mess with the modules loaded, I would think you would do it in this file /etc/rc.php_ini_setup

              From a quick look see if you don't have at least 512 its not enabled anyway

              MIN_REALMEM_FOR_APC=512

              Thank you for reply johnpoz. I'm disabled APC but not the result was not the way i want. I created a directory under /usr/local/www/. And ready mysqli on my pfsense hardware. I'm coded a freeradius contal panel and working under this directory. My problem is that not working web page until press f5. For example i'm doing mysql query (insert). Everything so far so good. But no listing when i'm click select query link. It is strange that working when im press f5 :)

              1 Reply Last reply Reply Quote 0
              • N
                NOYB
                last edited by

                @johnpoz:

                … if you don't have at least 512 its not enabled anyway

                More like about 545 MB to get pfSense to detect 512 MB and enable APC.

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  You do understand there is a freeradius package with "control panel" already ;)  If your interested in updating or enhancing that package.. That is where I would start - not trying to reinvent the wheel..

                  I use the freeradius package for eap-tls auth of my wifi clients and it works fine..

                  freerad.png
                  freerad.png_thumb

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • M
                    mnslck
                    last edited by

                    @johnpoz:

                    You do understand there is a freeradius package with "control panel" already ;)  If your interested in updating or enhancing that package.. That is where I would start - not trying to reinvent the wheel..

                    I use the freeradius package for eap-tls auth of my wifi clients and it works fine..

                    Thank you for reply johnpoz. But my problem not freeradius or captiveportal. My problems are php, lighttpd and mysql :) I'm wrote a script under /usr/local/www/XFOLDER for manage freeradius mySQL database.

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      "I'm wrote a script under /usr/local/www/XFOLDER for manage freeradius mySQL database"

                      WHY???  When there is already a freeradius package is my question.. Why would your script need APC disabled??  Why not just put your script on where the freeradius is running and your mysql is running - trying to run the script on a firewall that is a custom distribution of the OS and the software running like lighthttpd, php, etc..

                      Make NO sense to do what your doing..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.