Srilatha Marru's Blog
Cakephp 500 Internal Server Error

The first step in cakephp installation is setting up the .htaccess file. Without proper configuration of .htaccess file we can run into 500 internal server error.

The most common fix for the .htaccess is use the RewriteBase. Add the following line to your .htaccess file in the cakephp root folder.

RewriteBase /

Some other notes I found regarding the issues causing this error are:

Incorrect file/directory permissions: 766 or 777.
The webserver does not process php/cgi scripts with higher permissions than 755. Change the permissions of your file/directory to 755 in order to solve this issue.

Incorrect Apache directives inside .htaccess file.
In case custom Apache directives have been added to the .htaccess file, the Internal Server Error means these directives are either not supported and should be removed or are incorrect and should be re-written.

Php directives set in the .htaccess file instead of the php.ini files.
All custom php settings (e.g. php_flag) must be placed inside a php.ini file. For each separate directory you should create its own php.ini file.

Srilatha Marru's Blog
Flash rocking on mobile devices

I have little bit of experience with Flash running flash videos, installing flash objects and helping our designers with some tips in action script if any. Flash was going great until Iphone had plans to crush it down without supporting it and having no plans to support in future. Flash or adobe never deterred and with the help of Android and many other non ios mobile devices out their in the market in started to rock again. And Adobe max 2010 was a platform where adobe has showed its power and determination to stay strong in application market. Below are some of the videos from adobe max 2010 conference. I am real excited to try Flash apps that would work on most non ios devices.

About the video: Real-world profiles. See how businesses use the Flash Platform to create compelling content and applications that run consistently across browsers, operating systems, and devices.

More videos from this show –

Srilatha Marru's Blog
Cakephp relative file path

In cakephp relative file paths are little tricky. Unless they are defined in the routes or in the actions/functions a file will not be rendered as you are expecting it to.   So many a times  or always you can use absolute paths to point to a file like an image or a video.

In  my scenario using the relative paths for a file was mandatory.  I was given a pre compiled swf file with relative paths encoded in it.  And the cakephp didn’t understand the filename in the url as it was.  So here is what I found in cakephp documentation which solved my problem of rendering the relative urls.

Media Views (From Cakephp site):

Media views allow you to send binary files to the user. For example, you may wish to have a directory of files outside of the webroot to prevent users from direct linking them. You can use the Media view to pull the file from a special folder within /app/, allowing you to perform authentication before delivering the file to the user.

To use the Media view, you need to tell your controller to use the MediaView class instead of the default View class. After that, just pass in additional parameters to specify where your file is located.

 class ExampleController extends AppController {
function download () {
$this->view = 'Media';
$params = array(
'id' => '',
'name' => 'example',
'download' => true,
'extension' => 'zip',
'path' => APP . 'files' . DS

Hope you will find it useful too and will save your time.

Srilatha Marru's Blog
Facebook Vs Google

An Infographic from

Srilatha Marru's Blog
How to edit all hyperlinks in MS WORD at once?

I had a huge ms word document with full of hyperlinks to a given site.  Our client has asked us to update the word document with new hyperlinks.


I cannot use search and replace to replace all old hyperlinks with new hyperlinks as these hyperlinks are  hidden or encoded in the document.


Here is a easy way to do it-

Use alt + F9 key on MS Doc. It will make all the hyperlinks editable. Then search and replace the hyper links at once.

Hope you will find it useful too. This saved me lot of time.


profileWeb Developer working in advertising agency.

Recent tweets

The Twitter REST API v1 is no longer active. Please migrate to API v1.1.