Google Cloud Google Cloud Server Configuration LNMP Environment PHP+Mysql+Nginx Installation Detailed Explanation

Google Cloud Server Configuration If you want to do your job well, you must first sharpen your tools. Sharpening the knife makes the work easier. First build the server LNMP environment, then build the web site. Without a good PHP environment, there will be more trouble later. I have talked about manually installing and deploying the PHP environment before. Today, I will talk about how to use the dnf command on the Google Cloud Server to manually install the PHP+Mysql+Nginx environment without using a third-party panel.

Nginx HTTP Server

Nginx is an asynchronous web server that can also be used as a reverse proxy, load balancer, and HTTP cache.

Nextcloud network disk security and file configuration optimization

Recently, I need to build a network disk to store and publish files. After screening, I found nextcloud is not bad and easy to install. After installing PHP online and setting the user password and database connection, it is OK. The most important thing is that it supports WebDAV, which is a good thing. Nextcloud supports clients on mobile phones or computers, and both Android and Apple support it. You can also download other network disk file management tools. After the connection is successful, you can directly read and use files.

Example of installing GD library in PHP7

The above command will install the gd library extension. Check the phpinfo page to see if GD is supported.
However, if the PHP version is installed manually, installing the GD extension is quite troublesome. After several big pits, I have found a simpler way.