Coder Social home page Coder Social logo

Comments (2)

TheSkyHeart avatar TheSkyHeart commented on September 13, 2024

Hi again,

I'm still not able to figure out where the speed is coming from, by just doing those few command:

# php7.3-fpm
apt update && apt install php7.3-fpm php7.3-xml php7.3-bz2 php7.3-zip php7.3-mysql php7.3-intl php7.3-gd php7.3-curl php7.3-soap php7.3-mbstring php7.3-bcmath -y

# copy php-fpm pools & php.ini configuration
cp -rf $HOME/ubuntu-nginx-web-server/etc/php/7.3/fpm/* /etc/php/7.3/fpm/
cp -rf $HOME/ubuntu-nginx-web-server/etc/php/7.3/cli/* /etc/php/7.3/cli/
service php7.3-fpm restart

git -C /etc/php/ add /etc/php/ && git -C /etc/php/ commit -m "add php7.3 configuration"
# copy all common nginx configurations
cp -rf $HOME/ubuntu-nginx-web-server/etc/nginx/conf.d/* /etc/nginx/conf.d/

# commit change with git
git -C /etc/nginx/ add /etc/nginx/ && git -C /etc/nginx/ commit -m "update conf.d configurations"
cp -rf $HOME/ubuntu-nginx-web-server/etc/nginx/common/* /etc/nginx/common/

# commit change with git
git -C /etc/nginx/ add /etc/nginx/ && git -C /etc/nginx/ commit -m "update common configurations"

is this file wp-fcgi-cache-php72.conf somehow included by default some where in the configs?
I can get the site loading faster if include that file with the vhost configs and replacing it with php73.conf

server_name sitename.com   www.sitename.com;


access_log /var/log/nginx/sitename.com.access.log rt_cache;
error_log /var/log/nginx/sitename.com.error.log;


root /var/www/sitename.com/htdocs;



index index.php index.html index.htm;


include common/wp-fcgi-cache-php72.conf;

include common/wpcommon-php73.conf;
include common/locations-php73.conf;
include /var/www/sitename.com/conf/nginx/*.conf;

thanks in advance.

from ubuntu-nginx-web-server.

VirtuBox avatar VirtuBox commented on September 13, 2024

Hello @TheSkyHeart,

If you have only add php upstreams for php5.6 and php7.0, it should not make an huge difference with the previous configuration. Have you use a similar php.ini and the same php-fpm pools configuration ?
Otherwise, including my fastcgi_cache configuration is a good way to speed-up your website, it only require to preload cache to make sure pages are directly served from nginx cache.

from ubuntu-nginx-web-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.