<?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 Punith Bm on Medium]]></title>
        <description><![CDATA[Stories by Punith Bm on Medium]]></description>
        <link>https://medium.com/@punithbm?source=rss-c377bcbed66b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZzTd9x0J5w5nHbf3.</url>
            <title>Stories by Punith Bm on Medium</title>
            <link>https://medium.com/@punithbm?source=rss-c377bcbed66b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 20:08:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@punithbm/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[Quick Reference on how to setup a Linux, Apache, PHP Laravel & MSSQL in CentOS]]></title>
            <link>https://medium.com/@punithbm/quick-reference-on-how-to-setup-a-linux-apache-php-laravel-mssql-in-centos-6297c908083?source=rss-c377bcbed66b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6297c908083</guid>
            <category><![CDATA[mssql]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[centos]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Punith Bm]]></dc:creator>
            <pubDate>Sat, 23 Jun 2018 00:04:49 GMT</pubDate>
            <atom:updated>2018-06-23T01:08:19.237Z</atom:updated>
            <content:encoded><![CDATA[<p>Quick reference of commands to setup Linux, Apache, PHP Laravel &amp; MSSQL stack — Contains list of commands for quick setup in CentOS@7.2</p><p><strong>Step 1 — Login to your server through terminal —</strong></p><pre>sudo ssh -i {your pem file path} root@{your public IP} </pre><p><strong>Step 2 — Setup APACHE</strong></p><pre>sudo yum update<br>sudo yum install httpd</pre><p>Enable &amp; Restart <strong>APACHE</strong></p><pre>systemctl start httpd<br>systemctl enable httpd</pre><p><strong>Step 3— Install PHP 7.1</strong></p><p>Install extra package enterprise linux</p><pre>yum install epel-release</pre><p>Through Red Hat Package manager download Webtatic yum repository</p><pre>rpm -Uvh <a href="https://mirror.webtatic.com/yum/el7/webtatic-release.rpm">https://mirror.webtatic.com/yum/el7/webtatic-release.rpm</a></pre><p>Download yum repolist</p><pre>yum repolist</pre><p>Yum install PHP 7.1 dependencies and package manager</p><pre>yum install php71w php71w-common php71w-gd php71w-phar php71w-xml php71w-cli php71w-mbstring php71w-tokenizer php71w-openssl php71w-pdo php71w-pear php71w-devel</pre><p><strong>Step 4 — </strong>Download Composer</p><pre>curl -sS <a href="https://getcomposer.org/installer">https://getcomposer.org/installer</a> | php</pre><p>Move Composer file to global location</p><pre>mv composer.phar /usr/local/bin/composer</pre><p><strong>Step 5 — </strong>Create new laravel project or clone your project inside /var/www/ file path by installing GIT</p><pre>sudo yum install git<br>cd /var/www/<br>git clone path_to_repo</pre><p><strong>Step 6-</strong> Composer install</p><pre>cd project_folder<br>composer install</pre><p><strong>Step 7-</strong> Setup environment file .env file with nano editor or Vim</p><pre>yum install nano<br>nano .env </pre><p>paste the content and save it by pressing `Ctrl + X` then `Y` to save and exit</p><p>Generate PHP artisan key and clear cache with storage link</p><pre>php artisan config:cache<br>php artisan key:generate<br>php artisan storage:link</pre><p>Now go and change your root directory path in Apache configuration file</p><pre>nano /etc/httpd/conf/httpd.conf</pre><p>Find this line — DocumentRoot “/var/www/html”<br>Change it to DocumentRoot “/var/www/html/project_folder/public”</p><p>Now give permission for storage folder and project folder to access it through Apache</p><pre>chown -R apache:apache /var/www/project_folder<br>chmod -R 755 /var/www/project_folder/storage<br>chcon -R -t httpd_sys_rw_content_t storage</pre><p><strong>Step 8-</strong> Setup SQLSRV to connect MSSQL for Database connection</p><pre>export LC_CTYPE=en_US.UTF-8<br>export LC_ALL=en_US.UTF-8<br>pecl install sqlsrv pdo_sqlsrv</pre><p><strong>Step 9</strong>- Download MSSQL package for CentOS here</p><pre>curl <a href="https://packages.microsoft.com/config/rhel/7/prod.repo">https://packages.microsoft.com/config/rhel/7/prod.repo</a> &gt; /etc/yum.repos.d/mssql-release.repo</pre><p>Setup basprofile</p><pre>sudo yum remove unixODBC-utf16 unixODBC-utf16-devel<br>sudo ACCEPT_EULA=Y yum install msodbcsql17<br>sudo ACCEPT_EULA=Y yum install mssql-tools<br>echo ‘export PATH=”$PATH:/opt/mssql-tools/bin”’ &gt;&gt; ~/.bash_profile<br>echo ‘export PATH=”$PATH:/opt/mssql-tools/bin”’ &gt;&gt; ~/.bashrc<br>source ~/.bashrc</pre><p>Now restart Apache</p><pre>systemctl restart httpd</pre><p>Check your IP in .env file it should be pointed to MSSQL server, Also check for the database name and credentials</p><p>Now if you visit the link it should load the project and connect to MSSQL database</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6297c908083" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Principles to adhere to while designing mobile app’s]]></title>
            <link>https://medium.com/@punithbm/principles-to-adhere-to-while-designing-mobile-apps-50be3daadf83?source=rss-c377bcbed66b------2</link>
            <guid isPermaLink="false">https://medium.com/p/50be3daadf83</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Punith Bm]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 01:48:31 GMT</pubDate>
            <atom:updated>2017-01-02T01:48:31.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yTXYuPiW6_A7qj0F.png" /></figure><p>In mobile app development, the UI (user interface) and UX (user experience) play the most significant roles in a mobile app’s success</p><ul><li><strong>Consistency of the design layout: </strong>Different sections of the app must be coherent in the design, and there must be a consistent flow of the layout throughout the app.</li><li><strong>Unambiguous Interactive Elements: </strong>The design elements that are interactive in nature must be clearly depicted. Ambiguity should be avoided to make sure that the users are going to access such elements when required by them. Options hidden in menus may sometime be forgotten.</li><li><strong>Single Trial Learning Experience: </strong>The term ‘Intuitive’ is often used to describe mobile apps when suggesting that they are very user-friendly.</li><li><strong>Anticipate and Answer Users’ Queries: </strong>When a users tap a button, they want to know whether the process has started and how long will it take. As technology abstracts these actions, the users are usually kept in the dark while the process is going on. Use Toast in Android and notifications in iOS so users will be notified when a process has completed.</li><li><strong>Layered User Experience: </strong>The UX should be layered. Layered here refers that all the features of an app must not be exposed at once. It should surface out as the users delve deeper into the app and discover new things. This would help in keeping the users’ interest intact for a longer time.</li></ul><h3>Mobile structure</h3><p>This structure includes a permanent app bar and floating action button. An optional bottom bar can be added for additional functionality or action overflow. Side nav menus overlay all other structural elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IIWCXCFr6DqrkMPg.png" /></figure><p>Top left to right: Side nav, app bar/primary toolbar, content area (below the app bar/primary toolbar), and right nav<br>On the bottom: bottom bar</p><h3>Baseline Grids</h3><p>All components align to an 8dp square baseline grid for mobile, tablet, and desktop. Iconography in toolbars align to a 4dp square baseline grid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*MzS6LcFvSFeGHLjb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*R5YQATfJxbmIS6PM.png" /></figure><p>Type aligns to a 4dp baseline grid. See detailed information on typography</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JH7ctxAKfIHmpTRO.png" /></figure><p><strong>List</strong></p><p>A two-column, left-aligned list with a 56dp floating action button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*ZH7g-VhU58D8v5Lf.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*boucR3bnDjeVeKNX.png" /></figure><p>Screen edge left and right margins: 16dp</p><p>Content associated with an icon or avatar left margin: 72dp<br>Horizontal margins on mobile: 16dp</p><p>Vertical spacing</p><ol><li>Status bar: 24dp</li><li>Toolbar: 56dp</li><li>Subtitle: 48dp</li><li>List item: 72dp</li></ol><p><strong>Detail view</strong></p><p>A detail card with a 56dp floating action button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*SLEyOv7Vv3OBRfBl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*bPNWumUGY7nu6Mlx.png" /></figure><p>Screen edge left and right margins: 16dp<br>Content left margin from screen edge: 72dp<br>Right-side icons align 32dp from the right edge to coordinate with the floating action button.</p><ol><li>Status bar: 24dp</li><li>Toolbar: 56dp</li><li>Space between content areas: 8dp</li><li>List item: 72dp</li></ol><p><strong>Navigation drawer</strong></p><p>A side navigation menu with icons, avatars, and text aligned on the left. Other icons align on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*zwWS2ZG-t2OFHPM8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*3LmhNzsW9YCSKuAs.png" /></figure><p>Screen edge left and right margins: 16dp<br>Content associated with an icon or avatar left margin: 72dp<br>Side nav width: The screen width minus the height of the action bar. Here, the width is 56dp from the right screen edge.</p><ol><li>Account menu and list items: 48dp</li><li>Space between content areas: 8dp</li><li>Navigation right margin: 56dp</li></ol><p><strong>Density-independent pixels (Dp)</strong></p><p>Density-independent pixels (pronounced “dips”) are flexible units that scale to uniform dimensions on any screen. When developing an Android application, use dp to display elements uniformly on screens with different densities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EAyiY7XxmsPuPvTi.png" /></figure><p>Screen densityScreen width in pixelsScreen width in density-independent pixels120180 px 240 dp160240 px240360 px</p><p><strong>Image scaling</strong><br>Images can be scaled to look the same across different screen resolutions by using these ratios:</p><p><strong>Screen resolution dpi Pixel ratio Image size (pixels)<br> </strong>xxxhdpi 6404.0400 x 400xxhdpi4803.0300 x 300xhdpi3202.0200 x 200hdpi2401.5150 x 150mdpi1601.0100 x 100</p><p>Designing for mobile has some really exciting challenges and big opportunities ahead of it. The fast development of technology and the constant changing of user contexts means that today’s constraints may not exist in the next few years. Innovative thinking and creativity will help us explore new ways of looking at these challenges, and allow us to continue to find new, beautiful and usable solutions to the design problems in front of us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50be3daadf83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Reference to Setup LEMP stack (Linux, Nginx, MySQL, PHP) for Ubuntu 18.10]]></title>
            <link>https://medium.com/@punithbm/quick-reference-to-setup-lemp-stack-linux-nginx-mysql-php-for-ubuntu-18-10-48e4ee14191b?source=rss-c377bcbed66b------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e4ee14191b</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Punith Bm]]></dc:creator>
            <pubDate>Sat, 10 Dec 2016 17:40:19 GMT</pubDate>
            <atom:updated>2019-03-04T03:14:01.832Z</atom:updated>
            <content:encoded><![CDATA[<p>Quick reference of commands to setup LEMP stack</p><p>Contains a list of commands for quick setup of the LEMP stack in ubuntu@18.0</p><p><strong>Step 1 — Login to your server through terminal —</strong></p><pre>sudo ssh -i {your pem file path} ubuntu@{your public IP} // if pem <br>sudo ssh root@{your IP}</pre><p>For more reference — <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04">https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04</a></p><p><strong>Step 2 — Setup NGNIX</strong></p><pre>sudo apt-get update sudo apt-get install nginx</pre><p>Start <strong>NGNIX</strong></p><pre>sudo systemctl start nginx</pre><p>Check <strong>NGNIX</strong> status</p><pre>sudo systemctl status nginx</pre><p>Type one of the addresses that you receive in your web browser. It should take you to Nginx’s default landing page:</p><pre><a href="http://server_domain_or_ip/">http://server_domain_or_IP</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>Step 3 — Install MYSQL</strong></p><pre>sudo apt-get install mysql-server mysql-client</pre><p>Continue and add password for the root user</p><p>Check Mysql status</p><pre>sudo systemctl status mysql</pre><p>Start or Restart Mysql</p><pre>sudo /etc/init.d/mysql start sudo start mysql</pre><pre>sudo /etc/init.d/mysql restart</pre><p><strong>Step 4 — Install PHP</strong></p><pre>sudo apt-get install php-fpm php-mysql</pre><p>Now Check PHP status</p><pre>sudo systemctl status php7.2-fpm</pre><p>Now restart it</p><pre>sudo systemctl restart php7.2-fpm</pre><p><strong>Step 4 — Install PHPMyAdmin</strong></p><pre>sudo apt-get install phpmyadmin</pre><p>Select apache2 when prompted and configure database by choosing dbconfig-common yes<br> Continue and add a password for the root user</p><p>Now restart Nginx</p><pre>sudo service nginx restart</pre><p>To increase post_max_upload_size in phpMyAdmin</p><pre>sudo vim /etc/php/7.2/fpm/php.ini</pre><p>then change value of post_max_size to</p><pre>post_max_size = 25M</pre><p>And upload_max_size to</p><pre>upload_max_filesize = 24M</pre><p>Then restart php by</p><pre>sudo systemctl restart php7.2-fpm</pre><p><strong>Step 5 — Configure Nginx to use the PHP Processor</strong></p><pre>sudo vim /etc/nginx/sites-available/default</pre><p>replace it by — and update it for yourserver — host name</p><pre>server {<br>    listen 80 default_server;<br>    listen [::]:80 default_server ipv6only=on;<br>    #if you are using laravel php clone your git repo to /var/www and add the path below<br>    root /var/www/git_repo_name/public/;<br>    index index.php index.html index.htm;<br><br>    server_name name_of_your_web_host_name;<br><br><br><br><br>     location / {<br>        try_files $uri $uri/ /index.php?$query_string;<br>    }<br><br>    location ~ .php$ {<br>        try_files $uri /index.php =404;<br>        fastcgi_split_path_info ^(.+.php)(/.+)$;<br>        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;<br>        fastcgi_index index.php;<br>        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>        include fastcgi_params;<br>    }<br>    location /phpmyadmin {<br>               root /usr/share/;<br> index index.php index.html index.htm;<br>                location ~ ^/phpmyadmin/(.+.php)$ {<br>                       try_files $uri =404;<br>                       root /usr/share/;<br>                        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;<br>                       fastcgi_index index.php;<br>                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br> include /etc/nginx/fastcgi_params;<br>               }<br>               location ~* ^/phpmyadmin/(.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {<br>                       root /usr/share/;<br>               }<br>        }<br><br>}</pre><p>Test your configuration file for syntax errors by typing:</p><pre>sudo nginx -t</pre><p>Reload Ngnix</p><pre>sudo systemctl reload nginx</pre><p>Now the setup for LEMP is complete</p><p><strong>Step 6 — Configure PHP Laravel composer<br> </strong>Clone your git repo to /var/www/ path</p><pre>sudo git clone your_git_repo_path</pre><p>Now, Change you path to cloned repo</p><pre>sudo cd /var/www/your_repo_name</pre><p>Install PHP Composer</p><pre>sudo apt-get install curl php-curl php-mcrypt php-mbstring php-gettext</pre><pre>curl -sS <a href="https://getcomposer.org/installer">https://getcomposer.org/installer</a> | php sudo mv composer.phar /usr/local/bin/composer</pre><p>Install gZip for helping composer install</p><pre>sudo apt-get install zip unzip</pre><p>Now, Run Composer install</p><pre>sudo composer install</pre><p>Now, Create .env file and copy and paste it from you local host repo</p><pre>sudo cp .env.example .env</pre><p>Change your storage path permission following clearing cache</p><pre>sudo php artisan cache:clear</pre><pre>sudo chmod -R gu+w storage sudo chmod -R guo+w storage sudo chmod -R 777 storage</pre><p>Now, Restart Ngnix by</p><pre>sudo systemctl restart nginx</pre><p>If you want to host the database in different instansce</p><p><strong>Step 7 — Configure PHPMyAdmin Setup in new instanse</strong></p><p>Log into your new instance and repeat step 4<br> Now,</p><pre>sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf</pre><p>and search for bind-address and replace it with</p><pre>bind-address = 0.0.0.0</pre><p>And add the rule to allow All-Traffic in your inbound of a database instance<br> restart MySql</p><pre>sudo /etc/init.d/mysql start</pre><p><strong>In Server</strong> Also in Server instance add a rule to allow MYSQL/Aurora in inbound</p><p>Now,</p><p><em>Originally published at </em><a href="https://www.designstring.com/quick-reference-setup-linux-nginx-mysql-php-lemp-stack-ubuntu-16-04/"><em>www.designstring.com</em></a><em> on December 10, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e4ee14191b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>