After removing the fastcgi cache configuration, I can't access the homepage. When accessing it, the browser automatically downloaded the index.php. How can I solve this problem? @aaPanel_Jose

I am using PHP Script.

I set up a website for storing and sharing files, how do I activate the caching of my website since it is not wordpress? Or should I just use CDN?

2 months later
a month later

aaPanel_Jose Add the following to the server field
If you have ssl turned on, add it below #SSL-END

This step fails to work.

How do I go about it? (I have hidden my domain)

    deewinc

    deewinc This step fails to work.

    How do I go about it? (I have hidden my domain)

    Solved: I'm supposed to write my server IP on this like of that code. I wish you could edit your comment and mention it.

    allow "change_to_your_server_ip";

    14 days later

    aaPanel_Jose
    When I copy the config file from here to my server , I got this error :

    I add my ip address in allow "change_to_your_server_ip"; and in /www/server/panel/vhost/nginx/mysite.com.conf:68

    second question : I'm running php 8 , is need to change 73 to 8 ?
    in this line :
    fastcgi_pass unix:/tmp/php-cgi-73.sock;

      Now the config saved whiteout error but in testing with browser, I couldn't find any FastCGI cache

        25 days later

        I am trying to setup my second site for fastcgi-cache
        So I can just use the same directory ?
        mkdir /dev/shm/fastcgi-cache
        or I need to create new directory for new site ?
        mkdir /dev/shm/fastcgi-cache2

        and new config site
        define('RT_WP_NGINX_HELPER_CACHE_PATH', '/dev/shm/fastcgi-cache2');

        ????

          lucius100 Caching on local disk is not as fast as putting it in an in-memory database like Redis|MongoDB|Memcached. You can try using

            aapanel_power
            With all due respect, that is not what @lucius100 is asking. I also would like to know the answer to his question.
            Besides that, I don't believe that Redis should be used for full page caching, but Fastcgi.

            Kind greetings,
            Jimmy

              JimmyBobsa I think we can mix the folder for both site, but purge cache sure will clear the cache for 2 sites, that's why we need to create second folder maybe ?

              @aapanel_power I just want to use fastcgi on local disk, no enough memory for redis,etc.

                Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com