Saturday 20 April 2013

Switching Apache MPM Prefork to Apache MPM Worker simply

The drawback to doing everything with processes is that Apache prefork can be a bit of a memory hog, especially under load. Another precompiled flavor of Apache can be installed as an alternative:Apache MPM worker. "Worker" differs from "prefork" in that worker's processes are multithreaded, giving them the ability to service more requests with fewer system resources. This can translate into faster pages served with less RAM and CPU. However, because some Apache modules don't necessarily work well when run under multithreaded Apache, you have to specifically select this version to install on Ubuntu and on other GNU/Linux distros with package management.
Apache comes by default as mpm-prefork.
But you will want to instead use mpm-worker, as it will use less memory and be more efficient.
To use the “worker” MPM with PHP, do the following:
Step 1. Stop the apache2 daemon
sudo /etc/init.d/apache2 stop
Step 2.  Uninstall apache2-mpm-prefork
sudo aptitude remove apache2-mpm-prefork
Step 3.  Install apache2-mpm-worker and apache2-threaded-dev
sudo aptitude install apache2-mpm-worker apache2-threaded-dev
Step 4. Enable CGI and mod_actions (may already be enabled)
sudo a2enmod cgid2sudo a2enmod actions
Step 5.  Create a file in /etc/apache2/conf.d with the following content (I called mine php5-cgi.conf):
<IfModule mod_actions.c>2 Action application/x-httpd-php /cgi-bin/php53</IfModule>
Step 6.  Start the apache2 daemon
sudo /etc/init.d/apache2 start

Another way is this way by PCJonathan











Wednesday 10 April 2013

Installing Flash and Java in Raspbian On Raspberry Pi

Using midori it doesn’t show flash or java and deems the plugin missing.
To install flash first load your terminal
and insert the following code:
sudo apt-get install browser-plugin-gnash
image
Give it time it may take a while to install so have plenty of paitience.
Next you need to install Java
So enter the following code:
sudo apt-get install icedtea-plugin
image
The two plugins are compatible with all browsers that supports loading NPAPI browser plugins.
Famous browsers like Firefox, Chromium and Moidori do support NPAPI.
and in result the flash starts to load the chat box on Doctor Who Media
image
Please share and comment I'm open to helping the best i can.









Wednesday 3 April 2013

Fixing MP4 when you can hear but not see a Embedded Online Video

A while ago I got a problem when trying to watch videos on my favourite Doctor Who Site Doctor Who Media. Videos would play but i couldn’t see them only hear them which wasn’t good as i looked into it everyone who had this issue had Google Chrome browser. But i found a fix that was quick and simple
In chrome you have something called Hardware Accelerated Video because there wasn’t an update in chrome to fix it yet i disabled this and it fixed my problem so it might fix yours.
To start open chrome and in the address bar type the following
chrome://flags/
image
Once this page has loaded you need to scroll down the page and find Disable Hardware Accelerated Video Decode by default its disabled.
image
image
Click enable to disable the Hardware-accelerated video decode. and restart your browser.
Try the video player and see if it fixed your problem.
Disclaimer – May not work for all Issues.