500 Internal Server Error


I downloaded Yii app from one server and uploaded it to another server (both Unix’es). On first it runs OK.

On second server I chmod’ed myapp/protected/runtime to 777:

But still cannot open default app page:

Do I have to chmod another directories?

Thanks in advance.

Yes, myapp/assets also need write permission.

It worked! Thanks.

I went through the setup process on a local server all was fine.

I must say the install instructions brought me back to uni setting path variables…

So then I tried the face book plugin tried for some time could not get it to work.

So I thought I would start fresh on my server cpanel/centos.

Made a sub domain (yii)

uploaded all the files to the root dir www/public_html

ssh into the server

run the php command to install in yii (the same dir as the sub domain I made in cpanel)

chomded all the files

Internal Server Error 500

Now I have just chomded all the files to 777 inside the yii dir with file zilla recursively

and and as a last resort chomded all the files in framework to 777 also

Still have Internal Server Error 500

and yes rewrite is enabled

httpd -l | grep -i rewrite


and no error_log files

any ideas would be helpful thanks

I had a similar problem with GoDaddy share host. And it turned out the problem was with the .htaccess

In the WebRoot folder the .htaccess looks like this:

Options +FollowSymLinks

IndexIgnore */*

RewriteEngine on

# for GoDaddy

Rewritebase /

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php

RewriteRule . index.php

Note the ‘for GoDaddy’ line, that’s what has to be added to make that error 500 go away though I did’t need it on my dev server.

Thank you for the .htaccess solution, worked brilliantly for me. I also have a GoDaddy setup