Setting up VirtualHost for Symfony Application on Ubuntu

If you are developing a Symfony application on your local machine by default you will get a localhost URL like:


Which is a bit bad looking because the actual front facing application of Symfony is in app-root/public directory. You can make it look like depending on your application name just by editing 2 files.

Let’s see how it works in Ubuntu:

The first file you will need to edit is virtual host configuration file or you can create one new. The root directory in this case would be: /etc/apache2/sites-available/

I am going to create a separate file for my app which is symfony-test-app.conf

sudo vim /etc/apache2/sites-available/symfony-test-app.conf

The content of symfony-test-app.conf file would be:

<VirtualHost *:80>
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule .* - [F]
  DocumentRoot /var/www/html/symfony/symfony-test-app/public       
  <Directory /var/www/html/symfony/symfony-test-app/public>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted

Just change the ServerName, DocumentRoot and Directory line according to your application path.

The second file you will need to edit is the hosts file. The root directory in this case would be: /etc/

sudo vim /etc/hosts

The content you need to add is just a single line like:

You can add it before or after the default localhost line like:       localhost

That’s it, You are ready to go by enabling your newly created virtual hosts configuration file and restarting your Apache like this:

sudo a2ensite symfony-test-app.conf
sudo service apache2 restart

If you did it all good then now you can visit your in development Symfony application by instead of using that old ugly URL with /public at the end.

Thanks for reading.

আমি এখন টেপ এর পানি না ফুটিয়ে পান করি!

ঢাকায় প্রথম থাকা শুরু করি ২০০৮ এর জানুয়ারি থেকে, শুরু থেকে ই বাসায় পানি ফুটিয়ে ফিল্টার করে পান করতাম যদিও পরিশুধন এর কাজটা প্রথমে কাজের খালা করতো আর পরে বউ করতো, পানি ফুটানো এর ঝামেলা নিজে তেমন নেই নাই, আর কখনো বুঝতাম ও না, তাছাড়া একরকম জন্মগত ভাবে ই মনে হত টেপ এর পানি কি আবার খাওয়া যায়? দেশের টপ লেভেল শিক্ষা গ্রহণ করেও নিজের এই অধিকারটার কথা কখনো মাথায় আসেনি যদিও কত বড় বড় কম্পিউটার প্রব্লেম / প্রোগ্রাম সল্ভ করলাম / লিখলাম জীবনে । কিন্তু জীবনে একবার এর জন্য ও মনে হয় নাই টেপ এর পানি কোনরকম পরিশুধন না করে খাওয়া যায় । ঢাকার জীবন (স্পষ্ট করে “ওয়াসা”) আমাকে এমন শিক্ষা ই দিয়েছে যে নিজের গ্রামের বাড়ী কুমিল্লা এর বানাশুরা গিয়েও কখনো টেপ এর পানি এমনি পান করি নাই, টিওব-ওয়েল এর পানি পান করতাম অথবা ডাইরেক্ট মটর এর ।

এখানে জার্মানি আসার দিন প্রথম এ পানি পান করতেছিলাম না, ভাবতেছিলাম পরে ব্যবস্থা করবো, আপাতত বাইরে থেকে মিনারেল কিনে নিব কয়েকদিন এর জন্য, পরে যখন Faisal Ibrahim ভাই রুম এ আসলো বিকালে, তখন উনি বললেন টেপ এর পানি খাওয়ার যাবে, উনি নিজে খেয়ে ও দেখালেন, তাতেও নিশ্চিত হতে পারছিলাম না, যদিও ভয়ে ভয়ে খেয়েছি, ভাবতেছিলাম উনি হয়তো আমার মত এত কেয়ারিং / সতর্ক না অথবা অবিবাহিত তাই । পরের ২য় দিন যখন অফিস এ দেখালাম সবাই টেপ এর পানি পান করে তখন নিশ্চিত হলাম । আর আমিও নিশ্চিন্তে টেপ এর পানি পান করে যাচ্ছি এখানে ।

যদিও আমি ফেইসবুক এ তেমন একটিভ না, তাছাড়া সকল রকম নেগেটিভ খবর এড়িয়ে চলি পড়তে চাইনা, শেয়ার করি না, ইদানীং কিছু খবর দেখে মাথায় আসল, আমাদের দেশে পানি নিয়ে এই সমস্যা এর একটা সমাধান হয়তো সরকার অথবা জনগণ করতে যাচ্ছে, তাই লিখলাম, ভাবলাম তাদের বোঝার সুবিধার্থে অথবা আমার মত যারা ভাবে তাদের ভুল ভাঙ্গানুর জন্য। দোয়া করি এক এক করে দেশের সকল সমস্যা এর সমাধান আসুক ।

সবাই ভাল থাকুন, ভালবাসা অবিরাম! সুদূর জার্মানি থেকে।

Flying to Munich, Germany – My first time ever Abroad Travel Experience!

For personal blogging I am still new, though I was writing technical articles or mostly programming tutorials since a decade. This is first time I am far-far-away of my home and I feel like writing it all is the only way to keep a footprint so that later in future I can spend time reading this all or my kids. That’s why writing this article late around 30 days of my travel, though for content organization I will put the date around mid of Mar, 2019. I wish in near future I will find it easy to write day to day event or stories.

The journey started at 8:30 AM from Dhaka, Bangladesh, everyone of my family already started feeling my absence. It was most painful and loving for my beloved wife, because that time she started to know how it is the meaning of absence, even on top of everything if it is the first person. On the other hand my little angel “Abiyat Tuhra – Umamah” she was a bit not much more, it’s may be because she is only 4 years old. She was feeling something only because the surroundings! But I know, she knows I am leaving them behind for a bit longer time than the usual.

I had almost everyone of my Family that day on my apartment, It was great to feel how important I was in my family and I was not alone in my family life there. My parents, siblings, mother-in-law, brother-in-law and on top of everyone Uncle Yeakub-UL Islam, the most senior Guardian of our family who came only to see-off me from 300 KM away!! Thanks everyone, I miss you all!

@Hazrat Shahjalal International Airport on 28.03.2019, I wish you can guess who is this all here 🙂

After getting inside of the Airport I was feeling like, now it’s my turn to feel what I am leaving behind!!! Yes it’s everyone and it’s one by one. On top of everyone my cute angel, my daughter!!! About my parents, first time I had that same feeling on 2001 that’s 18 years ago! when I choose to move on other city (Beanibazar, Sylhet) for my Education and Career. For my loving wife, she has the skill and passion on my Ambitions so we both need to be confident of what we are doing.

When I was in check-in counter, I had to wait for around 30 mins for my papers verification. It was a bit panic for me and my father! Why they should keep us waiting while the embassy did their job? Who they are to confirm my validity? A flight agency will verify my papers? Am I looking false? However, it was all good and the officer also explained me why they did it all 🙂

Now it’s time to start for the long journey and the lonely life. When I was hugging you all, I was really crying by heart! According to the living standard difference between Bangladesh and Germany it was not possible for me to avoid this opportunity and it’s better to feel that. and it’s better to say you all bye at-least for 4/6 months. Then I wish to see you all again on home 🙂

A shot from Singapore Airlines lounges @ Hazrat Shahjalal International Airport

Yes, it’s already started! the things I was previously used to see by television / video camera, I started seeing them everything one by one by the built-in camera of my creator my OWN Eye. Everything feeling like new and first time ever! On the other hand, I was feeling the absence of my family members on a corner of my heart! Where the are now, what they are doing, how they are thinking about me now?

My departure was 12:40 PM from DAC (Hazrat Shahjalal Internaitonal Airport) – SIN (Changi Airport Singapore) for 5 hours transit and then – MUC (Franz Josef Strauses, Germany) where the arrival time was 06:30 AM of next morning.

The plane started it’s journey in time at 12:40 PM but there was a bit flight traffic on that day, that took almost 30-45 mins to fly us up!

My Bangladeshi brother Ibrahim Bin Shake, A friendly always smiley facing person. I was glad to have him with me 🙂

I was lucky to meet my Bangladeshi brother Ibrahim Bin Shake home district Brahmanbaria, He is living in South Korea for around a decade and bachelor! Making money for his future!!! You can say we both found us special and tour guide in some cases. He has a lot of travel experiences but very little ability to speak English, so he started teaching me the pros and cons of a flight and lonely life 🙂 Also on transit time we both had same amount of time like 4/5 hours. Had dinner together and he was the only person paying all the costs. However, I honored him by one thousand Bangladeshi new notes.

This is what you will see when you left cloud behind you!

After having two different flight, one for 6 hours and another for 10 hours long, I arrived on Munich Franz Josef Strauses Airport at 7:30 AM on 29.03.2019, it took only 10-15 mins for me to complete my entry and finding my luggage’s. Both of the Airport Changi and Munich was fully armed with modern technology stuffs.

When, I was getting out of the airport, I starting feeling the Modern Age the technology world, I was looking for something will amaze me! Yet, it’s there! Just in front of the Airport I found her!

You guess who she is!!!

I knew this city Munich as the birthplace of BMW, and when I saw her, I admitted yes it is true! and I loved her way of welcoming everyone on arrival of Munich.

Yes, it’s all for now, thanks for reading.