Posts

Showing posts from October, 2012

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!