Require_once in ubunto does not work and does not return error

0

Hello, I use the code below in windows and it works perfectly, but when I use it in ubunto, the only error that returns is GET http://site.com/ 500 (Internal Server Error) , already in windows it works perfectly.

index.php

include 'home.php'

home.php

require_once DIR_FUNCS.'func.php';
    
asked by anonymous 07.04.2017 / 18:38

2 answers

0

By the end go to the folder where the project is example: cd / var / www / site make sure you are root (obs: sudo su to log in as root) apply the commands

 find . -type d -exec chmod 0755 {} \;

and

 find . -type f -exec chmod 0644 {} \;

If you continue try to find * instead of find.

Try and talk about what you gave, I think it will solve

    
07.04.2017 / 19:15
0

I was able to solve by putting the absolute path of everything.

    
07.04.2017 / 19:27