Skip to main content

Posts

Showing posts from February, 2018

Laravel: How to protect .env files?

.env files: If you develop your applications using Laravel, you probably use .env files every day in your development life. We use these files to store the most secret information of our application. Be it database credentials, the application key or any third-party service credentials. So simply put: We do not want anyone to get access to these files! But the truth is: quite a few .env files are accessible. And I don’t mean that they are accessible by some hackers, but by Google. To search for public .env files, all you need to do is google for one of these terms: DB_USERNAME filetype:env DB_PASSWORD filetype:env APP_DEBUG filetype:env Secure your .env files The reason that these .env files are accessible and also get scraped is because of two things: Misconfigured shared hosting The .env file has the wrong access rights Shared hosting If you use shared hosting, please make sure that the root folder of your Laravel application is not accessib...

How To Configure Apache Virtual Hosts on CentOS 7

Introduction Virtual Hosts are used to run more than one domain off of a single IP address. This is especially useful to people who need to run several sites off of one virtual private server. Requirements A desktop machine running Linux A static IP address. Set Up sudo yum update sudo yum install httpd (for Centos ) sudo apt-get install httpd (for Ubuntu ) start Httpd service /etc/init.d/httpd start ( Centos ) /etc/init.d/apache2 start  ( Ubuntu ) Create a New Directory First,make a directory structure where we will keep the new website’s information. mkdir -p /var/www/html/www.sam.com Grant Permissions chown -R apache:apache /var/www/html/www.sam.com\ chmod -R 755 /var/www/html Create the Page We need to create a new file called index.html within our configurations directory. Vim /var/www/html/www.sam.com/index.html Add the following content. <html> <head> <title>www.sam.com</title> </head> <body> <...

SVG

Let’s have a quick look in SVG means   Scalable Vector Graphics . Generally it is used for the web purpose like images, animated images, vector etc. SVG is similar to Canvas but both has minor differences. SVG is   XML based vector 2d graphics   which is can be used for simple image and as well as animated image also and we can insert JavaScript and css also init for any element handle. It is resolution independent vector graphics means there’s not matter whatever its height width you define. I n latest designing and development related stuffs people are moving to SVG instead of jpeg and png or gif. With use of   svg images   the site can be   faster and more beautiful   instead of using jpeg and pngs. There are many reasons why people are moving to SVGs. It is help to developers to use the   same image multiple times with different height width   and every time we can see the same results for all. It also helps to load the page qui...

About Marketing:

* What is marketing? * There are many definition of “Marketing”  1.        Marketing is the Management process for identifying, anticipating, and satisfying customer requirements profitably. 2.        The management process through which goods or services move from concept to the customers. It includes co-ordination of four elements called the 4 P’s of marketing. a.        Identification, selection and development of Product b.       Determination of its price c.        Selection of a distribution channel to reach the customer’s place d.       Development and implementation of a promotional strategy So, overall marketing is the process to reach at the customer’s needs. Marketing is the relationships between Company and Customers. Company : Create the value for customers and try to find ...