<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by vengadesh s on Medium]]></title>
        <description><![CDATA[Stories by vengadesh s on Medium]]></description>
        <link>https://medium.com/@vengat0691?source=rss-c386f91a731e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hZnldfkW7s_MFNIS.</url>
            <title>Stories by vengadesh s on Medium</title>
            <link>https://medium.com/@vengat0691?source=rss-c386f91a731e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:52:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vengat0691/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to share the Google Cloud Platform(GCP) project to another GCP account to copy the full…]]></title>
            <link>https://medium.com/@vengat0691/how-to-share-the-google-cloud-platform-gcp-project-to-another-gcp-account-to-copy-the-full-20981df4045?source=rss-c386f91a731e------2</link>
            <guid isPermaLink="false">https://medium.com/p/20981df4045</guid>
            <category><![CDATA[instance]]></category>
            <category><![CDATA[google-compute-engine]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[vengadesh s]]></dc:creator>
            <pubDate>Fri, 09 Aug 2019 10:54:50 GMT</pubDate>
            <atom:updated>2019-08-09T12:52:14.521Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to share/access GCP project and it’s VM Instances between Google Cloud Platform (GCP)</h3><h4>Using Identity and Access Control Management in GCP — Share the GCP account old( which is already configured with all settings) to the new GCP account to copy/move the Google Compute Engine(VM Instances/Computer).</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*y6rL1JSDPCYB-lpZVi6R8A.jpeg" /></figure><p>Currently, there is no one-line command to move a Linux VM instance between Google Cloud Platform projects/accounts, but I have created an easy to follow step-by-step guide that you can use.</p><p>Here I am going to explain how my GCP account shares to another GCP account. Which is very useful when you need the same configuration of the instance/computer to another GCP account or you are going to disable the billing of current GCP account but you don’t want to stop your hosted website from this GCP account.</p><p>In my case, I want to create an instance in my another GCP account which requires lots of configuration such as multiple PHP versions installed like php5.6,7.0,7.2 etc.. and auto-backup configuration of database and files and memory alert of the instance. To configure the above things in new instance it will take more time and it requires more software installations and troubleshooting.</p><p>So to solve this problem we can just share the GCP account old( which is already configured with all settings) to the new GCP account.</p><p><strong>1.Login to your old google cloud platform account</strong></p><p>Select the project you want to share to another account, if project not selected default.</p><p><strong>2. Take a snapshot of the instance you want to create by following instructions.</strong></p><p>2.A)Go to menu <strong><em>Compute Engine →Snapshots →Create Snapshot</em></strong>.</p><p>2.B)Enter the snapshot name, Enter a description if required and select the source disk(Instance or Computer)you want to take a snapshot, Then click <strong><em>Create</em></strong> button no need to change other options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwvX9tQ7qnYu1ZY20EgQpQ.jpeg" /><figcaption>1.Image shows the snapshot create page</figcaption></figure><p>After snapshot created next to create the image, Using the image only we can able to copy the instance or computer in another account after shared.</p><p><strong>3. Create the Image of the Instance or Computer using Snapshot by following instructions.</strong></p><p>3.A)Go to menu <strong><em>Compute Engine →Images →Create Image</em></strong>.</p><p>3.B)Enter the image name, Select the source as a snapshot and select the source disk from the dropdown list of the snapshot, Then click <strong><em>Create </em></strong>button no need to change other options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vv08I4-Gu3t_oDzHItLCwg.jpeg" /><figcaption>2.Image shows image create page</figcaption></figure><p><strong>4. Share the Google Cloud Platform(GCP) project to another GCP account by following instructions.</strong></p><p>4.A)Go to menu <strong><em>IAM &amp; admin → IAM →+ADD</em></strong>.</p><p>4.B)Enter the email in the New member&#39;s text box and select the email(Email will be the account you want to share).</p><p>4.C)To share the project select a role from the dropdown. <strong><em>Project →Editor </em></strong>and click <strong><em>Save. </em></strong>Now your project is shared to the entered email of the GCP account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFBteA8j_drc23IQA78Z-Q.jpeg" /><figcaption>3.Image shows adding member to your project</figcaption></figure><p><strong>5. Login to your new google cloud platform account</strong></p><p>Select the project if project not selected default.</p><p><strong>6. Create Instance by following instructions.</strong></p><p>6.A)Go to menu <strong><em>Compute Engine →VM Instances→+Create Instance</em></strong>.</p><p>6.B)Enter instance name and select the region and zone by your requirement.</p><p>6.C)Select Machine type</p><p>6.D)Select Boot disk, Here only we are going to copy the instance or computer from a shared account. Click <strong><em>Change</em></strong> in boot disk option and click <strong><em>Custom Images</em></strong>.</p><p>6.E)Select the project which is already you shared by <strong><em>Show images from</em></strong> dropdown.</p><p>6.F)Choose the image you want a copy and click <strong><em>Select</em></strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQK2HQVoVVulqlSSvbG0aQ.jpeg" /><figcaption>4.Image shows the instance create option using custom image</figcaption></figure><p>6.G)Choose the Access Scope and Firewall by your requirements. In my case, I am using google cloud backup of database and secured website so choose to <strong><em>Allow full access to all Cloud APIs</em></strong> in Access Scope option and click both checkboxes in firewall option. And click the <strong><em>Create</em></strong> button.</p><p>Now the full instance is created with all configuration, source code and folders. Just copy the IP address and change it to your domain hosting like GoDaddy.</p><p>Just go to your old GCP account and stop or delete the instance and also delete the image once you created an instance in new GCP account to avoid the extra billing. Now check your website it will works as same as before.</p><p>That’s All. Thank you now enjoy and feel free to share the GCP computer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20981df4045" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Increase Mysql Group Concat Max.Length on Ubuntu]]></title>
            <link>https://medium.com/@vengat0691/increase-mysql-group-concat-max-length-on-ubuntu-bf41cd1ab8ba?source=rss-c386f91a731e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf41cd1ab8ba</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[laravel-homestead]]></category>
            <category><![CDATA[mysql-server]]></category>
            <dc:creator><![CDATA[vengadesh s]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 07:25:59 GMT</pubDate>
            <atom:updated>2019-04-25T12:17:20.298Z</atom:updated>
            <content:encoded><![CDATA[<p>I am facing group_concat_max_length issue in my laravel framework web app to resolve that i have made following changes and its works fine now.</p><h4>Step 1: Go to mysql path</h4><pre>cd /etc/mysql/conf.d<br>nano mysql.cnf</pre><p>or you can edit directly by entering below command</p><pre>nano /etc/mysql/conf.d/mysql.cnf</pre><h4>Step 2: And add the following line below [mysqld] as shown below</h4><pre>[mysql]</pre><pre>group_concat_max_len = 1000000</pre><h4>Step 3: Save and restart apache</h4><pre>sudo service apache2 restart</pre><p>If suppose still not works, restart mysql seperately</p><pre>sudo /etc/init.d/mysql restart</pre><p>That’s it!</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf41cd1ab8ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Run/Enable Many/different PHP Versions(7.0]]></title>
            <link>https://medium.com/@vengat0691/how-to-run-or-enable-many-php-versions-php7-0-and-php7-2-and-etc-in-one-instance-on-ubuntu-16-04-db66685279f8?source=rss-c386f91a731e------2</link>
            <guid isPermaLink="false">https://medium.com/p/db66685279f8</guid>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[virtual-host]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[php-hosting]]></category>
            <dc:creator><![CDATA[vengadesh s]]></dc:creator>
            <pubDate>Wed, 24 Apr 2019 13:07:14 GMT</pubDate>
            <atom:updated>2019-06-03T11:27:49.445Z</atom:updated>
            <content:encoded><![CDATA[<h3>How To Run/Enable Many/different PHP Versions(5.6,7.0 ,7.2 etc… ) In One Instance On Ubuntu/Apache 16.04</h3><p>In mycase i want to use PHP7.0 and 7.2 in same instance,PHP7.0 is available in default,PHP 7.2 isn’t available on Ubuntu 16.04 default repositories… in order to install it, you will have to get it from third-party repositories.</p><h4>Step 1: Update Apache2 and install FastCGI</h4><pre>sudo apt update<br>sudo apt install apache2</pre><p>After installing Apache2, the commands below can be used to stop, start and enable Apache2 to always start up when the server boots.</p><pre>sudo systemctl stop apache2.service<br>sudo systemctl start apache2.service<br>sudo systemctl enable apache2.service</pre><p>Above steps are not necessary but upcoming steps are necessary, <strong>First install Apache2 FastCGI module by entering below command</strong></p><pre>sudo apt update <br>sudo apt install apache2 libapache2-mod-fastcgi <br><br>Ubuntu 18.04 Users:<br>sudo apt install apache2 libapache2-mod-fcgid</pre><p>The commands above will error out for some candidate… In order to add that package, download it and install it manually by entering below command.</p><pre>cd /tmp &amp;&amp; wget http://mirrors.kernel.org/ubuntu/pool/multiverse/liba/libapache-mod-fastcgi/libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb<br>sudo dpkg -i libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb; sudo apt install -f</pre><h4>Step 2: Install PHP7.2 and PHP-7.2-FPM</h4><p>Run the commands below to add the below third party repository to upgrade to PHP 7.2</p><pre>sudo apt-get install software-properties-common<br>sudo apt install python-software-properties<br>sudo add-apt-repository ppa:ondrej/php</pre><p>Then update and upgrade to PHP 7.2</p><p>sudo apt update</p><p>Next, run the commands below to install PHP 7.2 and related modules.</p><pre>sudo apt install php7.2 php7.2-fpm php7.2-common <br>                 (or)<br>sudo apt-get install php7.2 libapache2-mod-php7.2 php7.2-mcrypt php7.2-cli php7.2-xml php7.2-zip php7.2-mysql php7.2-gd php7.2-imagick php7.2-recode php7.2-tidy php7.2-xmlrpc</pre><p>Enter php enable command</p><pre>sudo a2enmod php7.2<br>       or<br>sudo a2enmod php7.2-fpm</pre><p>After installation, php-fpm services will be started automatically. Use the following commands to make sure both services are running.</p><pre>sudo systemctl status php7.2-fpm</pre><h4>Step 3: Configure Apache2 PHP Settings</h4><p>Now that Apache2 and PHP are installed, you may want to configure Apache2 to use PHP properly. The default Apache2 PHP configuration file for PHP is located at <strong>/etc/php/7.2/apache2/php.ini</strong></p><p>Open PHP Apache2 configuration file by running the commands below</p><p>sudo nano /etc/php/7.2/apache2/php.ini</p><p>Then edit the file to suit your environments. Scroll down the file line by line and modify the lines for the settings below… always configure an appropriate setting for your environment.</p><pre>file_uploads = On<br>allow_url_fopen = On<br>memory_limit = 256M<br>upload_max_filesize = 100M<br>post_max_size= 100M<br>max_execution_time = 360<br>date.timezone = America/Chicago</pre><p>make the same above changes in <strong>cli/php.in</strong> and <strong>fpm/php.ini</strong> also by below path and save the file.</p><pre>nano /etc/php/7.2/cli/php.ini</pre><pre>nano /etc/php/7.2/fpm/php.ini</pre><p>After save, stop and start the php</p><pre>sudo pkill php7.2-fpm</pre><pre>sudo service php7.2-fpm start<br>          (or)<br>systemctl restart php7.2-fpm</pre><h4>Step 4: Configure Apache2 HTTP to use PHP7.2-FPM</h4><p>Now enable few modules required for the configuration of multiple PHP versions with Apache. These modules are necessary to integrate PHP FPM and FastCGI with Apache server. Now that both Apache2 and PHP7.2-FPM are installed, run the commands below to enable FastCGI module for Apache2</p><pre>sudo a2enmod actions fastcgi alias proxy_fcgi</pre><pre>Ubuntu 18.04 Users:<br>sudo a2enmod actions fcgid alias proxy_fcgi</pre><p>Next, open Apache2 default.conf configuration file.In mycase i am not using 000-default.conf i have copied default.conf file and renamed to other names like example.com.conf and example.com.conf1 when creating virtual host. To avoid confusion while creating virtual host make root folder name for source code and .conf file are in same name.</p><p>sudo nano /etc/apache2/sites-available/example.com.conf</p><p>Add the following lines in .conf file, then save the file</p><pre>&lt;FilesMatch \.php$&gt;<br><em># Apache 2.4.10+ can proxy to unix socket<br>SetHandler &quot;proxy:unix:/var/run/php/php7.2fpm.sock|fcgi://example.com/&quot;</em><br>&lt;/FilesMatch&gt;</pre><p>In the below line,</p><p><em>SetHandler “proxy:unix:/var/run/php/php7.2fpm.sock|fcgi://example.com/”</em> <strong>example.com</strong> represents the url domain and <strong>php7.2fpm</strong> represents php version you have to change that related to your url domain and php version.</p><p>Example .com.conf file shown below, your .conf file should look like this</p><pre>&lt;VirtualHost *:80&gt;<br>     ServerAdmin admin@example.com<br>     DocumentRoot /var/www/example.com<br>     ServerName example.com<br>     ServerAlias example.com<br><br>     &lt;Directory /var/www/example.com&gt;<br>        Options +FollowSymlinks<br>        AllowOverride All<br>        Require all granted<br>     &lt;/Directory&gt;<br>   <br> &lt;FilesMatch \.php$&gt;<br># Apache 2.4.10+ can proxy to unix socket<br>SetHandler &quot;proxy:unix:/var/run/php/php7.2fpm.sock|fcgi://example.com/&quot;<br>&lt;/FilesMatch&gt;<br><br>     ErrorLog ${APACHE_LOG_DIR}/error.log<br>     CustomLog ${APACHE_LOG_DIR}/access.log combined<br><br>&lt;/VirtualHost&gt;</pre><p>In the below line,</p><p><em>DocumentRoot /var/www/example.com</em> and <em>&lt;Directory /var/www/example.com&gt;</em> are represents the root path and folder where we kept the source code. In my case i am not using the default <em>DocumentRoot /var/www/html </em>i have using seperate folders to avoid confusion</p><p>After save enable .conf file</p><pre>sudo a2ensite example.com.conf</pre><pre>sudo a2enmod rewrite</pre><h4>Step 5: Restart Apache2 and Test</h4><pre>sudo systemctl restart apache2.service<br>           (or)<br>sudo service apache2 restart<br>           (or)<br>sudo systemctl restart apache2</pre><p>That’s it! This is how you use Apache2 with PHP-FPM (FastCGI) and many PHP versions. In this tutorial i have explained with PHP7.2, do the same things for all PHP versions like 5.6,7.3 etc..you need</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db66685279f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to change server date time in Ubuntu -16.04]]></title>
            <link>https://medium.com/to-change-server-date-time-in-ubuntu-16-04/to-change-server-date-time-in-ubuntu-16-04-fcff8e178db5?source=rss-c386f91a731e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcff8e178db5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[vengadesh s]]></dc:creator>
            <pubDate>Sat, 24 Mar 2018 06:35:42 GMT</pubDate>
            <atom:updated>2018-12-26T06:25:54.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*yAUjkgv84uer8b1r2CqHOA.png" /></figure><p><strong>Step 1</strong>:In Terminal type sudo su and give ENTER</p><p><strong>Sudo su</strong></p><p><strong>Step 2</strong>:type the below path and give ENTER</p><p><strong>cd /etc/php/7.0/apache2</strong></p><p><strong>Step 3</strong>:Type the below command and give ENTER to enter into php.ini</p><p><strong>nano php.ini</strong></p><p><strong>Step 4</strong>:After above command the php.ini file will open here search the text by below command</p><p><strong>ctrl+w</strong></p><p>In some terminal <strong>ctrl+w </strong>will not work so you can use <strong>F6 </strong>to search</p><p><strong>Step 5</strong>:Type <strong>date.timezone </strong>and give ENTER</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*LUQNDsQ8YS2F2mJbtLaXuw.jpeg" /></figure><p><strong>Step 6</strong>:date.timezone= is finded and cusrsor will goes to that text in that just enter the country/city time which is required by user.</p><p><strong>date.timezone=”Asia/Kolkata”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*joyQVf3gldIIgjvEQOoOGQ.jpeg" /></figure><p><strong>Step 7</strong>:After that save the changes by <strong>ctrl+x </strong>and to confirm give Y</p><p><strong>Step 8</strong>:Then <strong>File Name to Write: php.ini </strong>will ask to save the file name dont change just give ENTER</p><p><strong>Step 9</strong>:Now restart the server by below command to start the changes made</p><p><strong>sudo service apache2 restart</strong></p><p><strong>Step 10</strong>:Now enter below command and give ENTER to check the server date and time is changed or not</p><p><strong>date</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcff8e178db5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/to-change-server-date-time-in-ubuntu-16-04/to-change-server-date-time-in-ubuntu-16-04-fcff8e178db5">How to change server date time in Ubuntu -16.04</a> was originally published in <a href="https://medium.com/to-change-server-date-time-in-ubuntu-16-04">How to change server date time in Ubuntu-16.04</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>