***Current: ******Server Info: nginx/1.14.0PHP Version: 7.0.33-14+ubuntu16.04.1+deb.sury.org+1 ***
I have already used google but in this constellation, but i haven’t figured it out clear -
How is the right way?
Would be very happy if someone could give me a tip
many thanks in advance
You can type!ref in this text area to lớn quickly tìm kiếm our full phối of tutorials, documentation và marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer lớn help others.
Bạn đang xem: Check php configuration
NginxRegarding Nginx, upgrading is fairly easy and usually doesn’t break anything. You need to địa chỉ a new repo, then Nginx can be upgraded every time you run your sudo apt nâng cấp command.
The first steps you’ll want to vị is backing up your current NGINX configs. You can run these two commands to lớn create a backup directory & copy your config files over lớn it:
sudo mkdir /etc/nginx-backup/sudo cp -r /etc/nginx/* /etc/nginx-backup/Next we need to địa chỉ the repository. For this, you’ll need khổng lồ install software-properties-common if it’s not already installed. Run this command khổng lồ make sure it is installed:
sudo apt-get install software-properties-commonNow we’ll showroom the NGINX repo by running these commands:
nginx=stablesudo add-apt-repository ppa:nginx/$nginxOnce done, you’ll need to update your system lượt thích so
sudo apt-get updatesudo apt-get full-upgradeYou’ll be prompted khổng lồ use a new config files twice, you’ll want lớn answer N lớn those for now lớn keep your current version.
Now when you run sudo nginx -v you should see a new version.
Finally, you’ll want to edit your /etc/nginx/nginx.conf tệp tin and add this line just below the pid line near the top:
include /etc/nginx/modules-enabled/*.conf;Next, run sudo nginx -t to test the new config và make any changes you need in order for it lớn pass the test.
Then restart your nginx service and you are good to go.
In this case rather than updating, you’ll just install a higher PHP version on your droplet.
Here are the steps, if you are on an Ubuntu.
Make sure your Ubuntu hệ thống is having the latest packages by running the following command.
sudo apt updatesudo apt upgradeAdd a repository for PHP 7.3
sudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt updatesudo apt install php7.3-fpmExtensions
PHP with it’s extensions is useless so you’ll need to install them regardless which website Service you are using. The next command will include the most common extensions
sudo apt install php7.3-common php7.3-mysql php7.3-xml php7.3-xmlrpc php7.3-curl php7.3-gd php7.3-imagick php7.3-cli php7.3-dev php7.3-imap php7.3-mbstring php7.3-opcache php7.3-soap php7.3-zip php7.3-intl -y If you need to địa chỉ another one, just type in
sudo apt install php7.3-nameofextensionAnd you are ready, you now have the latest PHP version on your droplet.