Ello U

31 Mar 2011 In: Portfolio

ello-u is a social network site with a rich interface using jQuery and Object Orientated PHP. The social network has a Oracle database allowing the use of Stored Procedures. MVC is used to create simple readable links as well as a structured backend layout and a plugin system all made from scratch using jQuery as the only front end framework and no such backend framework. Its currently taken myself 4 months to get as far as it has already being the only developer having features like a fully functional profile page, jQuery image uploads, message system and also a hotdeals application as well as a fully integrated wallpost and comment system all made from a single idea.

Creating subdomain(s) in any web development environment is essential. For example, I have 2 projects going on at the same time and developement is concurrent. And subdomains were not created. So we have this scenario:

  • http://localhost/alphaproject/
  • http://localhost/betaproject/
  • http://localhost/phpmyadmin/

As you can see, I am assuming a Apache/PHP/MySql developemnt stack. 3 localhost urls that will be frequently accessed. Imagine what will happen when you want to access beta project? You “control+t” a new browser tab, and type in “localhost” only to have the url bar showing its history of the above 3 urls. Then you press the down arrow key to access the required url.

Waste of keystroke I will say. Now we create subdomains and we have:

  • http://alphaproject.localhost/
  • http://betaproject.localhost/
  • http://phpmyadmin.localhost/

 

Step1.

Edit /etc/host and add the following line

127.0.0.1 alphaproject.localhost

Step2.

gksudo gedit /etc/apache2/sites-available/alphaproject

Step3.

<VirtualHost *>
    DocumentRoot /home/username/alphaproject/
    ServerName alphaproject.localhost
    <Directory /home/username/alphaproject/>
        Options Indexes FollowSymLinks MultiViews +Includes
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Save the fuke,

Step4.

Run the following:

sudo a2ensite alphaproject

Step5.

Finally restart the Apache Server. Which I assume you should be using Apache2.

sudo /etc/init.d/apache2 restart

And by going to http://alphaproject.localhost/ you should be able to access you newly created subdomain.

About Daniel Noormohamed

I am an expert level developer focusing on both front and backend developing. Theres a huge number of languages I use to develop with the main being PHP, MySQL and jQuery. I also have experience in building with Oracle PLSQL via PHP creating more powerful applications and modules.

Partnerships

Working with a massive number of large companies I have been able to secure partnership in a company called ello-u.com a super social networking site which is about to hit the social world. features rich functionality to give the user a better more powerful experience and less clutter and hassle. Give that user the real social experience they were originally after.


Sponsors