Following command are used to install curl via command line:
sudo apt-get install php5-curl
sudo service apache2 restart
the above code is used to installs the curl for php5 and after successful installation restart the Apache web server.
First install backlight
sudo apt-get install xbacklight
Find which video card is installed in your system by typing the following command.
For me it’s intel.
Create a configuration file:
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
and copy the following into the the configuration file:
Option "Backlight" "intel_backlight"
Save the configuration file.
Now logout and then log back into the system and the brightness control would be working through the function keys.
That’s it. Simple :).
Recently, I was working on a WordPress website for a client. For the development version I hosted that website on personal website ituri.net as a sub-domain and after completing the website, client asked me to upload the site to his domain in-order to make it live.
When I checked the client hosting server: it was a windows based hosting with IIS 6 having PHP support. So when I transferred all of the data to this server… later I found out that except the main home page, no other page was working… I as was getting IIS 404 error page. The reason for this was: I used WordPress permalinks to make the url understandable. Upon contacting the hosting provider they said: I have to use httpd.ini to make this work.
After spending some quality time, finally I have solved the problem and below is the httpd.ini code for WordPress:
RewriteCond Host: domain-name\.com
RewriteRule (.*) http\://www.domain-name.com$1 [I,RP]
RewriteRule ^/wp-admin/?$ /wp-admin/index.php [I,L]
RewriteRule /(?!index\.php)([^.]+?)/? /index.php/$1 [I,L]
I hope, this will help you save your time and focus your energy on more important things 🙂