Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Getting blank page when hitting php pages
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Getting blank page when hitting php pages

Been trying to get this right for days, this is why php shouldn't exist : /

Literally getting no errors.
Heck, if you see weird comments on this config it's because I tried a lot of combinations trying to figure out whats wrong.

Can anyone tell me whats wrong with this config? I used tuxlite for the installation.
Running with php-fpm + nginx
Example url with fluxbb: http://www.hypercandy.net/bb/index.php

http://pastebin.com/raw.php?i=JSsAMwtd

nginx conf: http://pastebin.com/raw.php?i=JSsAMwtd

Comments

  • anything on error_log file?

  • nothing, afaik that was pointed out @DalComp

  • Oh sorry, sometimes people just see that blank page = no error, without actually checking the error_log file.

  • mikhomikho Member, Host Rep

    Who owns php5-fpm-nenel.sock

  • telephonetelephone Member
    edited August 2015

    @duckeeyuck said:
    Been trying to get this right for days, this is why php shouldn't exist : /

    People code shitty software in all languages, not just PHP ;) Besides your problem appears to be with nginx/php-fpm.

    1. Try removing your location block denying access to hidden files (at a glance it just doesn't look right). The standard blocking method is "location ~ /\.".
    2. Anything in the access log?
    3. Does 404.html exist? (Is it just a blank file)
    4. If you have access to the source, try forcing errors on with "error_reporting(-1);" (probably try in your index.php).
  • probably a php error and not web server, perhaps an undefined directory? or php.ini?

  • AbdussamadAbdussamad Member
    edited August 2015

    You have to explicitly configure php-fpm/nginx to log errors. Try some of the things suggested here. Make sure php-fpm can write to the log file i.e. log file permissions are correct for the user it is running as.

    Also if your distro is still rocking an older version of php then you need to upgrade:

    http://stackoverflow.com/a/11250412

  • When ever there is an error and php error reporting is off..it gives you a white screen of death....simply put the php code in an online php syntax checker....

  • Try making php-fpm listening on 127.0.0.1:9000 (and configure nginx to send php files to this adress) instead of using a socket. Already had problems with this as well.

    Listen adress for fpm can be set in /etc/php5/fpm/pool.d/www.conf (on Debian / Ubuntu and php installed using apt).

Sign In or Register to comment.