APC Cache



  • 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.


  • Banned

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



  • @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.


  • LAYER 8 Global Moderator

    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



  • @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 :)



  • @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.


  • LAYER 8 Global Moderator

    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..




  • @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.


  • LAYER 8 Global Moderator

    "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..


Log in to reply