Inherited 2.0.2 site and php-fpm 5.6 + NginX |
Dear Forum,
Please assist me in an issue I'm having with an old website made with Codeigniter. From the code I've found out, the codeigniters CI_VERSION is 2.0.2 and it is a website ment to be a facebook app. I've set up the database with a user and imported the old data into it. The server specifications are:
The PHP is running on port 9000 and since I have mupltiple websites activated on this server I know it is working properly. Here is my NginX configuration. Please note that the part of port 80, is not really relevant since the site automaticly get's forwarded to https (I have no idea how, probably in the websites code since it is a Facebook app, it needs to run on https.) Code: server { In terminal if I call the main index.php then I can see the code of the site I wish to see. However in browsers I get 403 Forbidden error messages. Log from NginX file is: Code: ==> /var/log/nginx/hu.company.website/error-443.log <== I get the same error message even if I give 777 recursive to the folder. The files are owned by the right user to be accessable by anyone coming from browser (so the same for all websites) Can you help me out by asking for file codes? I don't know Codeigniter and I don't know where to start looking. Thank you in advance! Bert
OK, now I'm getting a blank screen. Already anabled error displaying, but nothing. And whatever I write after the main domain, I get a "200 OK" status even if the file what I'm referring to is not existent. Pretty mutch like: website.company.hu/asdfasdfasdf
And I still get 200 OK If I execute in terminal php index.php, then I can see the websites source code, so it should be working. In the codeigniter log it starts logging this time and it logs this: Code: ERROR - 2017-02-09 14:38:11 --> Severity: Notice --> Undefined index: HTTP_HOST /var/www/hu.company.website/application/config/config.php 20 Is this any help? |
Welcome Guest, Not a member yet? Register Sign In |