I am working in a WordPress site in Linux Mint. My file and folder permission is like below

enter image description here

I used below code in wp-config.php file

define( 'WP_DEBUG', true );

define( 'WP_DEBUG_LOG', true );

define( 'WP_DEBUG_DISPLAY', true );

@ini_set( 'display_errors', 1 );

But I am getting blank white page in WordPress Home page.

I checked wp-content folder for debug.log, but there is no debug.log file. I checked apache 2 error.log file, but it is empty.

What is the solution ?

  • 1
    See my answer here wordpress.stackexchange.com/questions/357214/… regarding debug logs. You need to specify a path for the debug log file. Also your file/folder permissions are incorrect. If this is a production site folders should be 755 and files 644. This script can be used to set your permissions for Wordpress usage (gist.github.com/macbleser/9136424). – Admiral Noisy Bottom Apr 1 '20 at 8:08
  • 1
    I hope it helps you track down your issue. – Admiral Noisy Bottom Apr 1 '20 at 8:20
  • 1
    Download the script I mentioned earlier and put it into your Wordpress folder. You need to edit the script and change the WP_OWNER, WP_GROUP to www-data. Then change the WP_ROOT to path for your wordpress and WS_GROUP to www-data then save it. In a terminal window (right click & select Terminal) and type chmod +x wp-permissions-script.sh or whatever you called the script, then type ./wp-permissions-script.sh. From memory that's it. – Admiral Noisy Bottom Apr 1 '20 at 8:50
  • 1
    Here is another tutorial that might help you regarding file permissions. wpbeginner.com/beginners-guide/… – Admiral Noisy Bottom Apr 1 '20 at 8:59
  • 1
    I knew the permissions wouldn't fix your original problem, but it was worth fixing. Does the debug log give you any further information. Also, change your theme to the default and see if the issue goes away. – Admiral Noisy Bottom Apr 1 '20 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.