HOW GOOGLE CLOUD PLATFORM HELPED CREATE WORDPRESS (BY STEPS)
Updated: Jul 22, 2021
Google Cloud Platform is a cloud computing service provided by Google that provides hosting on the support infrastructure that Google uses internally for user products such as Google Search and YouTube. A cloud platform that provides products that allows the developer to create a suite of programs ranging from simple websites to complex applications.
Why Google Cloud Platform?
Google Cloud Platform has three things:
1- Safe infrastructure safe, universal, efficient, profitable and constantly improving. 2- Take your data analysis seriously It allows you to leverage Big Data to find faster answers and create better products.
3- Servers : Grow from prototype to global production On the public scale, without having to think about potential, reliability and performance.
How much does it cost to create a Google Cloud Platform account?
The first 60 days are free, but later the cost will be based on the capacity used by the cloud platform and on average, $ 25 will be deducted for each month, which equates to $ 300 per year.
First: you need to create a new Gmail email account for the project other than the one you are using. Why? Because the mail in which you make your project will be public with all the information it contains.
Second: you connect to https://console.cloud.google.com and choose to try it.
Third: After filling in the necessary information, we will create the first project as follows
1.Create a project:
Choose: Create a project
After creating the project, go to the Compute Engine menu and then to the VM instancesto start configuring the virtual machine instances
Update project instances
Choose SSH and write the following code
First: (to give the order as super user) * Whenever we want to update or modify an order, we must first write the entry as super user.
Second: to download the latest instance update
We have now updated, and We can now adjust the values of the php parameters :
First: by writing:
sudo nano /etc/php5/apache2/php.ini
Then we start by changing the memory limit and the response speed. I suggest changing the values as follows:
Resource Limits ;
Maximum execution time of each script, in seconds http://php.net/max-execution-time Note: This directive is hardcoded to 0 for the CLI SAPI max_execution_time = 180
Maximum amount of time each script may spend parsing request data. It's a good idea to limit this time on productions servers in order to eliminate unexpectedly long running scripts. Note: This directive is hardcoded to -1 for the CLI SAPI Default Value: -1 (Unlimited) Development Value: 60 (60 seconds) Production Value: 60 (60 seconds) http://php.net/max-input-time max_input_time = 180
Maximum input variable nesting level http://php.net/max-input-nesting-level max_input_nesting_level = 64
How many GET/POST/COOKIE input variables may be accepted max_input_vars = 1000 Maximum amount of memory a script may consume (128MB) http://php.net/memory-limit memory_limit = 1024M Data Handling ; Maximum size of POST data that PHP will accept. Its value may be 0 to disable the limit. It is ignored if POST data reading is disabled through enable_post_data_reading. http://php.net/post-max-size post_max_size = 512M File Uploads ; Maximum allowed size for uploaded files. http://php.net/upload-max-filesize upload_max_filesize = 512M Maximum number of files that can be uploaded via a single request max_file_uploads = 1000
To save the new values: ctrl + X
Then, you must write this command to update the version of apache2 with the new parameters and values that you defined:
sudo service apache2 restart
We will install Wordpress:
First: go to the side menu: API Manager > Library Choose Google Cloud APIs > Cloud Deployment Manager API as shown in the image :
Then: choose ENABLE
Then: Choose: Start with a prebuilt solution to continue
Second: in the side menu, choose Cloud Luancher
Find WordPressfrom the CMS menu or the platform on which you want to work
Click on Launch on Compute Engine
After that, you also follow the steps and choose Deploy, and a form will appear to allow you to fill in information about your site and what you need from him and others, here is what he suggested to you:
Choose Deploy WordPress to start the download
When the download is complete, the page will take you to deployment information that contains information about your site from:
WordPress administrator username and password
MySQL administrator password
You can now start building your site successfully.