Posts

Showing posts with the label Apache

How to create a virtual host in ubuntu?

When you are used to running your websites in windows envirnment, it can be a bit of pain to suddenly switch in to linux. This post will guide you towards setting up a virtual host in ubuntu. 1. Enable the virual host module and restart apache.       sudo a2enmod vhost_alias       sudo /etc/init.d/apache2 restart 2.  Goto to /etc/apache2/sites-available directory and create a copy of the default file with the name of  the virtual host you would like to create. In this case the virutal host is "my-first-host.com".       cd /etc/apache2/sites-available/       sudo cp default my-first-host.com

How to enable mod_rewrite in ubuntu?

Simply run the following command in the command line to enable mod_rewrite. sudo a2enmod rewrite The command simply adds the rewrite module to the apache configuration file as mod_rewrite is a part of apache. Now we need to restart apache to make the command take effect. sudo /etc/init.d/apache2 restart The command automatically adds file rewrite.load to the folder /etc/apache2/mods-enabled/

How to enable curl in PHP ubuntu?

To enable curl in PHP in ubuntu we simply need to install it. The following command can be used to install curl in ubuntu. sudo apt-get install php5-curl Now the next step would be restart apache using the following command sudo /etc/init.d/apache2 restart Enjoy!

How to fix "url /phpmyadmin was not found in this server" problem in Ubuntu (linux)?

Sometimes after installing LAMP, when you try to open the phpmyadmin in your browser you might get the error like this: "Not Found The requested URL /phpMyAdmin was not found on this server. Apache/2.2.12 (Ubuntu) Server at localhost Port 80" This is likely to be caused by not checking apache2 during installation. To reinstall you can use the following command:

How to install LAMP in Ubuntu (linux)

LAMP stands for Linux, Apache, MySQL and PHP/Python. Installing and configuring LAMP is not a very complicated thing in Ubuntu, its just a matter of few lines of commands via the command line. This post will show you how to install PHP5, Apache2, MySQL and phpMyAdmin in Ubuntu. Installing Apache 1. Open the terminal and type the following command.