I have a PHP web application. This application works on Windows server, but it doesn’t work on a Linux server. I think this is about php.ini or file permissions. What can be other reasons for this situaion? What must be the basic php.ini configurations for this situation?
I have a PHP web application. This application works on Windows server, but it
Share
Never ask “What can be other reasons”. We are not weather forecasters here. We are programmers. And we have tools to be certain, what particular problem we are experiencing now.
The only thing you need is to ask PHP to tell you, what’s the problem.
The easiest way is to put these lines into your configuration file,
and see what your app will say. It can be permissions or
php.ini. All will be told.Quite easy, eh? 😉
If these magic lines won’t help, there are several other ways, the manual has a good manual in it: http://php.net/manual/en/configuration.changes.php
When your server goes public, don’t forget to change these lines to
and see error messages in the error log, not revealing it to the possible hackers and innocent users.