Showing 8 Result(s)

How to Set AllowOverride all

AllowOverride directive is used to allow the use of .htaccess within the web server to allow overriding of the Apache config on a per directory basis. To allow it for apache on Ubuntu, edit the file /etc/apache2/apache2.conf. An example has been given below: Once you have changed the file as given above, restart the apache server by running the …

cpanel

Cannot access cPanel/WHM after reboot

I faced this problem when I had to change the instance type of one of my EC2 instances in AWS. I had to stop the instance, change the instance type, then restart it. But when the system was up and running, I couldn’t access my cPanel, WHM, and the site itself. Running this URL in …

Plugin install asks for FTP details on WordPress

After setting up WordPress on your server (local or remote) and while trying to install a plugin, sometimes WordPress asks you to enter FTP details.  Generally, we don’t want it. So what is the problem and how to solve this? Most of the time the issue is with the ownership of the folder you are …

Understanding z-index

Z-index is a CSS property that is used to cascade overlapping elements in HTML. This property can be applied to those elements which have been positioned (relative, absolute, fixed). It takes integer values. Let’s see an example: You can view the codes and experiment with them in Codepen. First, let’s have two divs with two id’s; …

How to UNDO ‘git add’ before commit

Sometimes we might add files in the git to be committed which we actually don’t want to. In such a case before committing the changes we would want to undo the add or remove the file(s) from the list which we don’t want. Here is how we do it: this particular line removes the one file …