Setting up php / MVC on the server

I have a project in HTML / PHP and I am trying to upload everything to a server. I'm not familiar with servers other than that your first page must be a file index.php/htm

and that everything goes in a folder public_html

. I am using MVC (codeigniter) , so adding it to the server doesn't seem so easy. I have attached an image of my directories, the first file when browsing locally is the controller class which is home.php

inside /application/controllers

. If I just drag and drop everything to the server as it is, then I get 500 Internal Server Error

. Can anyone help me fix this please?

image

+3


source to share


1 answer


The problem with 500 internal server error

is that this is a generic message. Try to check:

  • File / Folder Permissions (No files or folders to be set to 777, 755 should be the maximum permission settings.)
  • If you use short tags: short_open_tag=On

    inphp.ini

  • Invalid syntax in .htaccess file

    (Try to delete - test - recreate)
  • check error.log

    for more details.


Hope this helps, I will keep an eye on this thread.

0


source







All Articles