Yii Framework Forum: Yii 500 Internal Server Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii 500 Internal Server Error Rate Topic: -----

#1 User is offline   vinoth.mohan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 08-June 13
  • Location:Malaysia

Posted 11 December 2013 - 09:14 PM

Hi ,

Recently i was uploading the yii framework project into online shared webhosting server.
The server throw this error message: -

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@osa.minang.com.my and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



so far i check in internet the suggestion given was modify the htaccess and i did modify it.

this is my htaccess file : -


RewriteEngine on

# 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

RewriteBase /
php_value upload_max_filesize 10M
php_value post_max_size 10M



apache error log

Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration



unfortunately im still facing the same issue.

please guide where i am doing the mistake.
0

#2 User is offline   Maciej Li┼╝ewski 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 862
  • Joined: 02-July 10
  • Location:Central Poland

Posted 12 December 2013 - 04:31 AM

remove "php_value" from htaccess. it is either prohibited to override php configuration this way or your webserver configuration is not based on mod_php (php_value works only for mod_php)
red
0

#3 User is offline   yii_king 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 110
  • Joined: 05-August 12

Posted 12 December 2013 - 11:14 AM

There are a couple of folders which you need to give write access, e.g. the runtime folder. Have you done that?
0

#4 User is offline   vinoth.mohan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 08-June 13
  • Location:Malaysia

Posted 13 December 2013 - 02:02 AM

yup finally its working after i removed the php_value n give 755 permissions to allthe files.


In addition i dint notify that the server hosting also got its own .htacces where it was hidden.

i modify the .htaccess such as - Rewrite /.


thanks alot.
0

#5 User is offline   Commun 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 184
  • Joined: 17-September 15

Posted 21 June 2017 - 06:04 AM

@vinoth.mohan when speaking of all the file, are you talking of the content of public_html?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users