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.
In my previous post, Installing LAMP Stack on Ubuntu and Debian in Just 3 Steps, you’ve learned how to install LAMP Stack on Ubuntu.
In this post we’ll:
- learn what is Root Directory
- check whether PHP5 Engine is working correctly or not.
- learn about and install some useful PHP5 Extension Modules such as mcrypt.
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”.
In this post you’ll learn how to install WordPress. I’m sure that after this tutorial you’ll say yourself how easy that was! 🙂
Step 1 – Downloading WordPress:
- First of all you need to download WordPress from the wordpress.org.
- Unzip the .zip file to your server’s www (for WAMP users) or htdocs ( for XAMPP users) directory.
Step 2 – Select Language:
- Browse to the wordpress folder from your browser (click here if you are using WAMP or XAMPP)
- You should see the following window:
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:
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.
I’m using a “Learn by Example” approach. So, first of all have a look at the code of our example (you can see it’s Live Demo as well!) and then we’ll go through the code line by line.
Part 2.1: Download and Installing Laravel 5.x
Please Note: If you haven’t yet installed Composer please install it according to the instructions given in my previous post Installing Composer in 7 Steps as you can’t install Laravel 5.x without first installing the Composer.
Let’s start installing Laravel 5.x by following these 3 steps.
Part 2: Downloading and Installing Yii 2
Please Note: If you haven’t yet installed Composer please install it according to the instructions given in my previous post Installing Composer in 7 Steps as you can’t install Laravel 4.2 without first installing the Composer.
Let’s start installing Yii 2 by following these 3 steps.
Installing PHP, Apache Server and MySQL seems to be very difficult and almost tiresome for the beginners and some times for average developers as well. But don’t worry we have a three in one like solution, the WAMP (Windows, Apache, MySQL, and PHP) Server. You just need to download WAMP Server and install it like other Windows Applications.
Don’t bother how to do all that, I’ve explained each and every step below. Just follow step by step instructions and you’ll end up with the installation of PHP, MySQL and Apache Server.
Step 2: Browsing the Local Server on your Web Browser
Now to make sure that the WAMP Server has been installed successfully follow the following steps.
Double click the WAMP Server icon on the desktop. You’ll see a new icon is added in your system tray which changes its color as give below:
- Orange to Red
- Red to Green