# How to see the logs

If you have a problem with the first time to check the log, a program if you run the error does not write the log, then the program is failing!
It is best to ask questions with error logs, otherwise the gods can not help you. There are mainly the following logs to check.

  • NexusPHP's own logs, located by default in the /tmp/ directory and generated by date, such as nexus-2022-03-24.log
  • PHP-FPM error log
  • Nginx error log

No error logs, all bets are off!

If you really can't find the relevant log, you can display the error on the page and turn off the error display after you solve the problem.

# Normal page

//include/core.php line 3, display_errors value changed from 0 to 1
ini_set('display_errors', 1);

# Install/upgrade

//nexus/Install/install_update_start.php line 3, value of display_errors changed from 0 to 1
ini_set('display_errors', 1);

# Too many logs to fill up the hard drive

The default log level of NexusPHP is info, which means that all general logs are recorded, if there are too many, you can change it to error to log only errors, change LOG_LEVEL to error in the .env file.


Also the error logging level of PHP-FPM can be changed to error to reduce its log output.


Logging helps to restore the scene and is crucial for troubleshooting problems. It is not recommended to modify it.
You can choose to keep the logs from the last few days and delete the old logs regularly.
Here's an example: delete logs 7 days old at 03:00 am every day (note the replacement of your own filter keywords)

0 3 * * * * find /tmp/ -mtime +7 |grep -E 'nexus' |xargs rm -rf

# Mail cannot be sent

Please refer to configuration section for correct settings, ensuring that.

  • [Site Settings]->[Main Settings]->[Site Email Address] is the same as the username in SMTP
  • SMTP address should not have a protocol like ssl:// at the beginning, only the host address.
  • Choose the right encryption method, if you don't choose none, refer to your mail service provider

# White screen on the admin backend

Make sure the js/css-related location rule in the nginx configuration is after the [admin backend] rule.

Cannot create soft links. This is usually due to insufficient PHP permissions, so make sure you set the ROOT_PATH owner to PHP_USER, or just set the 777 permissions. If this does not work, you can create it manually by

ln -s /your ROOT_PATH path/bitbucket /your ROOT_PATH path/public
ln -s /your ROOT_PATH path/attachments /your ROOT_PATH path/public

If they already exist, try to delete both directories and the program will automatically recreate them.

Popular modules need to show the cover, please make sure the imdb link is filled in, or the description contains the poster image.

Last Updated: 5/14/2022, 5:24:26 PM