Debugging PHP Using Chrome Console Tab Like JavaScript

If you are a PHP developer and want debugging PHP code like you do your JavaScript code i.e. using console.log() function and see the result in the Console tab of your Chrome then keep reading this post, it’s specially for you.

Here are the few simple steps to follow:

1. Installing “Chrome Logger” Extension

First of all you need to install the Chrome Logger extension in your Chrome browser

Continue reading

Restoring ‘apache2’ Directory on Ubuntu 15.04

This post shows you how to restore ‘apache2 directory‘ if you have accidentally removed it or modified some of its files like ‘000-default.conf‘ or any other file and now you want to restore it to its default state then you are at a right place.

I’m not making this post fatter and thinner one by adding a lot of theory and heavy amount of text. Just go straight forward and follow steps described as below.

Caution: We are using the word ‘restore’ in a loose sense, actually we will download the directory from the Ubuntu Application Repository not restore the deleted one. I am not providing any kind of guarantee if you mistakenly deleted your precious data or made any other harm for yourself by running the wrong commands instead. It would be all up to you and will be considered your mistake if something harmful happened for you by following this tutorial.

Continue reading

Changing the Root Directory on Ubuntu 15.04

In this post I am going to show you how to change your root directory in Ubuntu 15.04. If you further want to know about root directory read my blog What is Root Directory. If you are comfortable with then let’s get started with out wasting time any more!

Step 1: Opening the ‘default.conf’ File

The path for our root directory is specified in 000-default.conf file. Open your 000-default.conf file from /etc/apache2/sites-availale/ by running the following command:

sudo gedit /etc/apache2/sites-available/000-default.conf

Continue reading

Configuring php.ini File

This post is about the configuration of the php.ini file. This file contains a lot of important and useful configurations of the PHP Language which can be customized according to your needs and requirements. in Ubuntu php.ini file is located at /etc/php5/apache2/ directory. First, have a look at the file and then we’ll discuss some important configurations one by one. Run the following command in your terminal to open php.ini file in your gedit text editor:

sudo gedit /etc/php5/apache2/php.ini

Look through the file and if you can’t understand what is this all about, then don’t worry, in this section you’ll learn about the some useful directives available in this file.

Continue reading

ULAMP_1

Installing LAMP Stack on Ubuntu and Debian in Just 3 Steps

In this post you’ll learn how to setup LAMP Stack on Ubuntu and/or Debian in just 3 easy to follow steps. I’m not making the post fatter, thinner and filled with a lot of theory. I’ll just go straight forward towards the installation process. But if you want to learn a little bit of theory behind the seen then you must read my blog Understanding Root Directory, Testing PHP Engine and Installing PHP Extensions on Ubuntu after this post. For now, let’s get started!

First of all let’s define LAMP Stack for those of you who don’t know about it. LAMP Stacks means: “Storing/retrieving data in/from MySQL DBMS, on Linux Operating System, using PHP Server Side Scripting Language running on Apache Server”.

Continue reading

1409351640file-structure

Understanding the Directory Structure of Laravel 4.2

In this post I’ll try to explain the over all directory structure of Laravel 4.2. I think the understanding of the directory structure will proved to be helpful in order to create your websites and/or web applications. Let’s begin without wasting time anymore.

The general directory or application structure of laravel 4.2 is given below:

laravel 4.2
     --app
     --bootstrap
     --public
     --vendor
       composer.json
       composer.lock
       server.php

app directory

This directory is very important and we may say it the soul of our laravel application as it holds all the main and necessary components of our application which must not be public in any case. These important components are controllers, models, migrations, views, routes file, configuration files, storage and etc.

Continue reading

Page 1 of 2
1 2