After I changed the windosw to centos, my website became a whiteboard. The website was gb2312 encoded windosw and changed to centos. What is the situation? In windows, it is normal. if it is changed to centos, it becomes a whiteboard and no error is reported. What is the situation? Below is my website
Reply to discussion (solution)
Why? Why didn't I answer ,??
First, you need to check your PHP version. this problem may occur if it is out of the supported scope or version of your written code.
Php. ini
Display_errors = on
Turn on the error prompt function to find out why.
Display_errors = on is already set.
$url = 'http://job.ncsq.net/index2.php';print_r(get_headers($url));
Array
(
[0] => HTTP/1.1 200 OK
[1] => Server: nginx/1.0.15
[2] => Date: Mon, 15 Dec 2014 08:43:11 GMT
[3] => Content-Type: text/html; charset = gb2312
[4] => Connection: close
[5] => X-Powered-By: PHP/5.2.17p1
[6] => Set-Cookie: PHPSESSID = af64987394c7dbfabbe917ee776cad46; path =/sessionid has been issued, and it can be considered that the program has no serious errors.
[7] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[8] => Cache-Control: no-store, no-cache, must-revalidate, post-check = 0, pre-check = 0
[9] => Pragma: no-cache
[10] => Content-Length: 0 the document stream Length is 0. it may be because a certain condition is not met and the program exits directly.
)
Check if you have no execution permission for a compilation directory.
$url = 'http://job.ncsq.net/index2.php';print_r(get_headers($url));
Array
(
[0] => HTTP/1.1 200 OK
[1] => Server: nginx/1.0.15
[2] => Date: Mon, 15 Dec 2014 08:43:11 GMT
[3] => Content-Type: text/html; charset = gb2312
[4] => Connection: close
[5] => X-Powered-By: PHP/5.2.17p1
[6] => Set-Cookie: PHPSESSID = af64987394c7dbfabbe917ee776cad46; path =/sessionid has been issued, and it can be considered that the program has no serious errors.
[7] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[8] => Cache-Control: no-store, no-cache, must-revalidate, post-check = 0, pre-check = 0
[9] => Pragma: no-cache
[10] => Content-Length: 0 the document stream Length is 0. it may be because a certain condition is not met and the program exits directly.
)
I'm a Cainiao. What I don't understand is to copy the code into it?
The problem is the whiteboard.
Check if you have no execution permission for a compilation directory.
I am a free open-source php program. how do I know the permissions he needs? I think it is also a permission issue.
Check whether your program folder has the rwx permission.
Check whether your program folder has the rwx permission.
Yes. what about 777 permissions?
I am using the command chmod 777-R directory.